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:
Konstantin Belousov 2017-04-05 17:20:31 +00:00
parent fc9437c886
commit b73cd4d344

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 {