svn commit: r359752 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Thu Apr 9 18:38:01 UTC 2020


Author: kib
Date: Thu Apr  9 18:38:00 2020
New Revision: 359752
URL: https://svnweb.freebsd.org/changeset/base/359752

Log:
  Remove extra call to vfs_op_exit() from vfs_write_suspend() when VFS_SYNC() fails.
  
  The vfs_write_resume() handler already does vfs_op_exit() for us.
  
  Reported by:	pho
  Reviewed by:	mckusick
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/vfs_vnops.c

Modified: head/sys/kern/vfs_vnops.c
==============================================================================
--- head/sys/kern/vfs_vnops.c	Thu Apr  9 18:17:07 2020	(r359751)
+++ head/sys/kern/vfs_vnops.c	Thu Apr  9 18:38:00 2020	(r359752)
@@ -1902,7 +1902,7 @@ vfs_write_suspend(struct mount *mp, int flags)
 		MNT_IUNLOCK(mp);
 	if ((error = VFS_SYNC(mp, MNT_SUSPEND)) != 0) {
 		vfs_write_resume(mp, 0);
-		vfs_op_exit(mp);
+		/* vfs_write_resume does vfs_op_exit() for us */
 	}
 	return (error);
 }


More information about the svn-src-head mailing list