From: Trond Myklebust Date: Wed, 30 Nov 2016 23:00:07 +0000 (-0500) Subject: pNFS: Skip invalid stateids when doing a bulk destroy X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b85f562049cc7dce0d65577427a8321197d20983;p=linux-beck.git pNFS: Skip invalid stateids when doing a bulk destroy If the layout stateid is already invalid, we have no work to do. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 550010826bdd..0b25a1c820ba 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -750,6 +750,8 @@ pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, struct inode *inode; list_for_each_entry_safe(lo, next, &server->layouts, plh_layouts) { + if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) + continue; inode = igrab(lo->plh_inode); if (inode == NULL) continue;