diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-22 17:25:27 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-24 22:16:40 +0200 |
commit | 5f46be049b0dfdd36188058f044c165e1d4b8f56 (patch) | |
tree | 83504ccd78e42b24cae17b07f2b756378f70aad4 /fs/nfs/nfs4proc.c | |
parent | NFS: pnfs_mark_matching_lsegs_return() should match the layout sequence id (diff) | |
download | linux-5f46be049b0dfdd36188058f044c165e1d4b8f56.tar.xz linux-5f46be049b0dfdd36188058f044c165e1d4b8f56.zip |
pNFS: Cleanup - don't open code pnfs_mark_layout_stateid_invalid()
Ensure nfs42_layoutstat_done() layoutget don't open code layout stateid
invalidation.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index dc50ba4d84ad..8c453515d98c 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -7931,8 +7931,7 @@ nfs4_layoutget_handle_exception(struct rpc_task *task, * Mark the bad layout state as invalid, then retry * with the current stateid. */ - set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); - pnfs_mark_matching_lsegs_invalid(lo, &head, NULL, 0); + pnfs_mark_layout_stateid_invalid(lo, &head); spin_unlock(&inode->i_lock); pnfs_free_lseg_list(&head); status = -EAGAIN; |