Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

NFS server: Record bwrite() error in nfsrv_commit.

  • Loading branch information...
commit 4294d305e14a1f7650b0ea21dd7fac3ab042be70 1 parent e020cae
Venkatesh Srinivas authored December 24, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  sys/vfs/nfs/nfs_serv.c
4  sys/vfs/nfs/nfs_serv.c
@@ -3608,7 +3608,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
3608 3608
 		}
3609 3609
 
3610 3610
 		crit_enter();
3611  
-		while (cnt > 0) {
  3611
+		while (error == 0 || cnt > 0) {
3612 3612
 			struct buf *bp;
3613 3613
 
3614 3614
 			/*
@@ -3629,7 +3629,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
3629 3629
 			if (bp) {
3630 3630
 				if (bp->b_flags & B_DELWRI) {
3631 3631
 					bremfree(bp);
3632  
-					bwrite(bp);
  3632
+					error = bwrite(bp);
3633 3633
 					++nfs_commit_miss;
3634 3634
 				} else {
3635 3635
 					BUF_UNLOCK(bp);

0 notes on commit 4294d30

Please sign in to comment.
Something went wrong with that request. Please try again.