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
This commit is contained in:
kib 2017-04-05 17:20:31 +00:00
parent d33759b51b
commit 5b0533a292

View File

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