From nobody Sat Jan 20 01:36:41 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TGzbt1YdMz57sm0; Sat, 20 Jan 2024 01:36:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGzbt14p4z4ZSR; Sat, 20 Jan 2024 01:36:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705714602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FLmC/4eOh6Sr6BFfABKoecbnqBbrg0loEnm8VyxQJIg=; b=dFcFbRTRuXn23eaymvqEfXfQvs8HI0StEvavKZUwpk6n02lYaZa0AbfIoGUSkIHs/9pAmB djjxjP4uQbopkQc+uKTuSVb+Vdp/2erbCvvuCrqYW+KnPZeDdW1U9wr92sS5YCsITKuvmM EIj335sqOydyAwNEZUyNbBKvpSqVuaaAvUHxxWsd++ZpwWbnsq8OI5aT6gsibRMN/UFHYp 8fmiSrwlpTFn2b1VsN1FqbBuA9QKSCIKnfB23cNKBfQ2y2kB6CX0+gsmzLf83zOyKGl8IJ lS2l8ErM+m7FGZKlEWJvgAGQczhUWXuFLw5grqxVy+2Yb8JcKEQAHQ6tqP5lrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705714602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FLmC/4eOh6Sr6BFfABKoecbnqBbrg0loEnm8VyxQJIg=; b=egGHdK9Aow1hAk9qmEqGjIO0gVTOnw5y4k7BPjqU2uj0lE5ODG0STdTiw7e0bzLcms1xrs 3Yq7DXxsaKa9z2+8oFWPuX+ljK40NkEzOcDpnJu0u2yZsG6x/CDS1NtDezy1kU22qVpSDg 8UISDBOuPHp5YIiBeW/04rddreca5e+uLZgcrhifcLT1l8C5rDHcIs0ldvdNrxGutDDPL9 0fjNVnxCAIxhhmXOoLmRq/AoFX69zW6xG2SiuHmMjoTQdwRtVYWf0q0LlUNIUdBM2b2Jex kdseBztEG0c9BQKxrzbfk4PawtNoN8C9tnzVIHHfceQIlJHsmqo+KObkxob2Pw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705714602; a=rsa-sha256; cv=none; b=KyRlUDROMtc3V/ij5UjDxxfGdDuk1YkBle4rDRCSd+/Bq3wM5ac7TPOsZlRyIEQZfW6hzL xhiugi5Xmppve8YoG0yA7XGdzbzySQEWgLnzrI//VbVJoozngMDggxjUZJ3y5ItNTbCv32 idF+lbAVW0tw4aFO0TXaL2+srSh4c7LOwX9Wnn6m8TajbH9V3KryzHxQGyRXJX5+vSmgwy KjA34Hh6941R9v0eRDJdyJBGlbdip0hmhHoOf07l7d9dZs886zM5IOA7G468DI/SbRY7xB Xr+Aot2fjKJwVW8Hs2D/rSxul96teSZyenRQ7v9+J/tZy0AFMfpvnTkTYb3m4A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TGzbt07wtzFyB; Sat, 20 Jan 2024 01:36:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40K1afds038474; Sat, 20 Jan 2024 01:36:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40K1afGj038471; Sat, 20 Jan 2024 01:36:41 GMT (envelope-from git) Date: Sat, 20 Jan 2024 01:36:41 GMT Message-Id: <202401200136.40K1afGj038471@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4b3ffc5918b9 - main - msdosfs_remount_ro(): correct vfs_unbusy() loop List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b3ffc5918b9968ea6ddee6f6cdf3538072e5ef4 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4b3ffc5918b9968ea6ddee6f6cdf3538072e5ef4 commit 4b3ffc5918b9968ea6ddee6f6cdf3538072e5ef4 Author: Konstantin Belousov AuthorDate: 2024-01-19 23:50:48 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-20 01:36:35 +0000 msdosfs_remount_ro(): correct vfs_unbusy() loop PR: 276408 Reported by: John F. Carr Fixes: 13ccb04589e2c5c840e19b407a59e44cb70ac28e Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/fs/msdosfs/msdosfs_vfsops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index 03c794bad900..258c701bd300 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -1006,9 +1006,8 @@ msdosfs_remount_ro(void *arg, int pending) } MSDOSFS_UNLOCK_MP(pmp); - do { + while (--pending >= 0) vfs_unbusy(pmp->pm_mountp); - } while (--pending >= 0); } void