pNFS: Remove redundant smp_mb() from pnfs_init_lseg()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 24 Jul 2016 19:14:44 +0000 (15:14 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 24 Jul 2016 20:16:43 +0000 (16:16 -0400)
It's not visible yet, and won't be until after we grab the inode->i_lock.

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

index 09b77a68422ff13cbc2a12655da363d79ebda093..1d47a845d77ac041c07fc950ed3c1651b9b187df 100644 (file)
@@ -341,7 +341,6 @@ pnfs_init_lseg(struct pnfs_layout_hdr *lo, struct pnfs_layout_segment *lseg,
        INIT_LIST_HEAD(&lseg->pls_list);
        INIT_LIST_HEAD(&lseg->pls_lc_list);
        atomic_set(&lseg->pls_refcount, 1);
-       smp_mb();
        set_bit(NFS_LSEG_VALID, &lseg->pls_flags);
        lseg->pls_layout = lo;
        lseg->pls_range = *range;