Introduced in cab1647c Revert "pnfs-submit: wave2: remove cl_layoutrecalls list" Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> --- fs/nfs/pnfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 5a47b76..c184e41 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -1045,7 +1045,6 @@ pnfs_layout_process(struct nfs4_layoutget *lgp) goto out; } - spin_lock(&ino->i_lock); /* decrement needs to be done before call to pnfs_layoutget_blocked */ atomic_dec(&lo->plh_outstanding); spin_lock(&clp->cl_lock); @@ -1056,6 +1055,7 @@ pnfs_layout_process(struct nfs4_layoutget *lgp) } spin_unlock(&clp->cl_lock); + spin_lock(&ino->i_lock); if (pnfs_layoutgets_blocked(lo, &res->stateid)) { dprintk("%s forget reply due to state\n", __func__); goto out_forget_reply; -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html