Skip to content

Commit 400417b

Browse files
author
Trond Myklebust
committed
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: d03360a ("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>
1 parent f87b543 commit 400417b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/pnfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ pnfs_update_layout(struct inode *ino,
18891889
atomic_read(&lo->plh_outstanding) != 0) {
18901890
spin_unlock(&ino->i_lock);
18911891
lseg = ERR_PTR(wait_var_event_killable(&lo->plh_outstanding,
1892-
atomic_read(&lo->plh_outstanding)));
1892+
!atomic_read(&lo->plh_outstanding)));
18931893
if (IS_ERR(lseg) || !list_empty(&lo->plh_segs))
18941894
goto out_put_layout_hdr;
18951895
pnfs_put_layout_hdr(lo);

0 commit comments

Comments
 (0)