pNFS: Fix a typo in pnfs_update_layout
[linux-2.6-microblaze.git] / fs / nfs / pnfs.c
index 8247bd1..7066cd7 100644 (file)
@@ -1889,7 +1889,7 @@ lookup_again:
            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);