In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
7fe2e170e4
commit
5fab60a071
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274501
@ -1881,8 +1881,10 @@ vfs_write_suspend_umnt(struct mount *mp)
|
||||
for (;;) {
|
||||
vn_finished_write(mp);
|
||||
error = vfs_write_suspend(mp, 0);
|
||||
if (error != 0)
|
||||
if (error != 0) {
|
||||
vn_start_write(NULL, &mp, V_WAIT);
|
||||
return (error);
|
||||
}
|
||||
MNT_ILOCK(mp);
|
||||
if ((mp->mnt_kern_flag & MNTK_SUSPENDED) != 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user