public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NFSD, lost nfserrno() call in nfsd_setattr()
@ 2014-02-18 15:27 J. R. Okajima
  2014-02-18 20:44 ` J. Bruce Fields
  0 siblings, 1 reply; 4+ messages in thread
From: J. R. Okajima @ 2014-02-18 15:27 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Jeff Layton, linux-kernel


There is a regression in
	208d0ac 2014-01-07 nfsd4: break only delegations when appropriate
which deletes an nfserrno() call in nfsd_setattr() (by accident,
probably), and NFSD becomes ignoring an error from VFS.

Here is a patch to fix it.

J. R. Okajima


diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 017d3cb..6d7be3f 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -449,6 +449,7 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
 	fh_lock(fhp);
 	host_err = notify_change(dentry, iap, NULL);
 	fh_unlock(fhp);
+	err = nfserrno(host_err);
 
 out_put_write_access:
 	if (size_change)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-25 20:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 15:27 [PATCH] NFSD, lost nfserrno() call in nfsd_setattr() J. R. Okajima
2014-02-18 20:44 ` J. Bruce Fields
2014-03-25  8:19   ` J. R. Okajima
2014-03-25 20:41     ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox