The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4b3ffc5918b9968ea6ddee6f6cdf3538072e5ef4

commit 4b3ffc5918b9968ea6ddee6f6cdf3538072e5ef4
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2024-01-19 23:50:48 +0000
Commit:     Konstantin Belousov <[email protected]>
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

Reply via email to