msdosfs_remount_ro(): correct vfs_unbusy() loop

PR:	276408
Reported by:	 John F. Carr
Fixes:	13ccb04589
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2024-01-20 01:50:48 +02:00
parent e0deb85065
commit 4b3ffc5918

View file

@ -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