pNFS: Remove spurious wake up in pnfs_layout_remove_lseg()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 18 Nov 2016 20:18:52 +0000 (15:18 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:21:43 +0000 (17:21 -0500)
There is no change to the value of NFS_LAYOUT_RETURN, so we should
not be waking up the RPC call.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c

index 471018f27c8da9ab1c8ebad1e37f69d4ce539e0a..a64d1e40dba955b10a05ad6bb9716e3d472db532 100644 (file)
@@ -420,8 +420,6 @@ static void
 pnfs_layout_remove_lseg(struct pnfs_layout_hdr *lo,
                struct pnfs_layout_segment *lseg)
 {
-       struct inode *inode = lo->plh_inode;
-
        WARN_ON(test_bit(NFS_LSEG_VALID, &lseg->pls_flags));
        list_del_init(&lseg->pls_list);
        /* Matched by pnfs_get_layout_hdr in pnfs_layout_insert_lseg */
@@ -433,7 +431,6 @@ pnfs_layout_remove_lseg(struct pnfs_layout_hdr *lo,
                        set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
                clear_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags);
        }
-       rpc_wake_up(&NFS_SERVER(inode)->roc_rpcwaitq);
 }
 
 static bool