| Submitter | Luis Henriques |
|---|---|
| Date | Feb. 28, 2013, 2:43 p.m. |
| Message ID | <1362062689-2567-59-git-send-email-luis.henriques@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/224034/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index c1bad65..81d51aa 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6287,7 +6287,8 @@ int nfs4_proc_layoutget(struct nfs4_layoutget *lgp, gfp_t gfp_flags) status = nfs4_wait_for_completion_rpc_task(task); if (status == 0) status = task->tk_status; - if (status == 0) + /* if layoutp->len is 0, nfs4_layoutget_prepare called rpc_exit */ + if (status == 0 && lgp->res.layoutp->len) status = pnfs_layout_process(lgp); rpc_put_task(task); dprintk("<-- %s status=%d\n", __func__, status);