mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
pNFS: Fix a typo in pnfs_update_layout
commit400417b05fupstream. We're supposed to wait for the outstanding layout count to go to zero, but that got lost somehow. Fixes:d03360aaf5("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
603e7497bf
commit
f64ff5914f
|
|
@ -1866,7 +1866,7 @@ pnfs_update_layout(struct inode *ino,
|
|||
atomic_read(&lo->plh_outstanding) != 0) {
|
||||
spin_unlock(&ino->i_lock);
|
||||
lseg = ERR_PTR(wait_var_event_killable(&lo->plh_outstanding,
|
||||
atomic_read(&lo->plh_outstanding)));
|
||||
!atomic_read(&lo->plh_outstanding)));
|
||||
if (IS_ERR(lseg) || !list_empty(&lo->plh_segs))
|
||||
goto out_put_layout_hdr;
|
||||
pnfs_put_layout_hdr(lo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user