Fix a bug nfs_write() related to ^C'ing during a file write on an

interruptable mount.  We were returning from inside the loop without
releasing the rslock.

Submitted by:	Mike Junk <junk@isilon.com>
MFC after:	3 days
This commit is contained in:
Matthew Dillon 2002-07-16 19:43:59 +00:00
parent 072e9cbb50
commit 8e0619c6b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100194

View File

@ -930,8 +930,10 @@ nfs_write(struct vop_write_args *ap)
if (bp->b_dirtyend > 0 &&
(on > bp->b_dirtyend || (on + n) < bp->b_dirtyoff)) {
if (BUF_WRITE(bp) == EINTR)
return (EINTR);
if (BUF_WRITE(bp) == EINTR) {
error = EINTR;
break;
}
goto again;
}