diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-03-12 16:04:51 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-03-12 16:04:51 -0400 |
commit | 400417b05f3ec0531544ca5f94e64d838d8b8849 (patch) | |
tree | b956cd6142ca5692b110768c9e7bca67737440a5 /fs/nfs/pnfs.c | |
parent | f87b543af45ea217fa1d000483f9a40944c1ff73 (diff) |
pNFS: Fix a typo in pnfs_update_layout
We're supposed to wait for the outstanding layout count to go to zero,
but that got lost somehow.
Fixes: d03360aaf5cca ("pNFS: Ensure we return the error if someone...")
Reported-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | 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 8247bd1634cb..7066cd7c7aff 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -1889,7 +1889,7 @@ lookup_again: | |||
1889 | atomic_read(&lo->plh_outstanding) != 0) { | 1889 | atomic_read(&lo->plh_outstanding) != 0) { |
1890 | spin_unlock(&ino->i_lock); | 1890 | spin_unlock(&ino->i_lock); |
1891 | lseg = ERR_PTR(wait_var_event_killable(&lo->plh_outstanding, | 1891 | lseg = ERR_PTR(wait_var_event_killable(&lo->plh_outstanding, |
1892 | atomic_read(&lo->plh_outstanding))); | 1892 | !atomic_read(&lo->plh_outstanding))); |
1893 | if (IS_ERR(lseg) || !list_empty(&lo->plh_segs)) | 1893 | if (IS_ERR(lseg) || !list_empty(&lo->plh_segs)) |
1894 | goto out_put_layout_hdr; | 1894 | goto out_put_layout_hdr; |
1895 | pnfs_put_layout_hdr(lo); | 1895 | pnfs_put_layout_hdr(lo); |