svn commit: r316531 - head/sys/fs/nfsclient

Konstantin Belousov kib at FreeBSD.org
Wed Apr 5 17:20:32 UTC 2017


Author: kib
Date: Wed Apr  5 17:20:31 2017
New Revision: 316531
URL: https://svnweb.freebsd.org/changeset/base/316531

Log:
  Handle nfs IO_ASYNC write requests asynchronously.
  
  Reviewed by:	markj, rmacklem
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	2 weeks
  X-Differential revision:	https://reviews.freebsd.org/D10241

Modified:
  head/sys/fs/nfsclient/nfs_clbio.c

Modified: head/sys/fs/nfsclient/nfs_clbio.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clbio.c	Wed Apr  5 17:17:18 2017	(r316530)
+++ head/sys/fs/nfsclient/nfs_clbio.c	Wed Apr  5 17:20:31 2017	(r316531)
@@ -1275,7 +1275,7 @@ again:
 					error = error1;
 				break;
 			}
-		} else if ((n + on) == biosize) {
+		} else if ((n + on) == biosize || (ioflag & IO_ASYNC) != 0) {
 			bp->b_flags |= B_ASYNC;
 			(void) ncl_writebp(bp, 0, NULL);
 		} else {


More information about the svn-src-all mailing list