diff mbox

NFSD: Put exports after nfsd4_layout_verify fail

Message ID 5505A14F.4090202@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kinglong Mee March 15, 2015, 3:12 p.m. UTC
Fix commit 9cf514ccfa (nfsd: implement pNFS operations).

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
 fs/nfsd/nfs4proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig March 16, 2015, 12:19 p.m. UTC | #1
On Sun, Mar 15, 2015 at 11:12:15PM +0800, Kinglong Mee wrote:
> Fix commit 9cf514ccfa (nfsd: implement pNFS operations).
> 
> Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
J. Bruce Fields March 20, 2015, 8:16 p.m. UTC | #2
On Mon, Mar 16, 2015 at 01:19:08PM +0100, Christoph Hellwig wrote:
> On Sun, Mar 15, 2015 at 11:12:15PM +0800, Kinglong Mee wrote:
> > Fix commit 9cf514ccfa (nfsd: implement pNFS operations).
> > 
> > Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
> 
> Looks good,
> 
> Reviewed-by: Christoph Hellwig <hch@lst.de>

Thanks, applying for 4.0.

--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index d30bea8..92b9d97 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1237,8 +1237,8 @@  nfsd4_getdeviceinfo(struct svc_rqst *rqstp,
 		nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb, gdp);
 
 	gdp->gd_notify_types &= ops->notify_types;
-	exp_put(exp);
 out:
+	exp_put(exp);
 	return nfserr;
 }