Lines Matching refs:plh_flags

282 	if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) {  in pnfs_free_layout_hdr()
334 set_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags); in pnfs_grab_inode_layout_hdr()
360 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags); in pnfs_set_plh_return_info()
378 clear_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags); in pnfs_clear_layoutreturn_info()
388 clear_bit_unlock(NFS_LAYOUT_RETURN, &lo->plh_flags); in pnfs_clear_layoutreturn_waitbit()
389 clear_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags); in pnfs_clear_layoutreturn_waitbit()
391 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_RETURN); in pnfs_clear_layoutreturn_waitbit()
467 set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); in pnfs_mark_layout_stateid_invalid()
472 set_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags); in pnfs_mark_layout_stateid_invalid()
473 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags) && in pnfs_mark_layout_stateid_invalid()
474 !test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) in pnfs_mark_layout_stateid_invalid()
490 if (!test_and_set_bit(fail_bit, &lo->plh_flags)) in pnfs_layout_set_fail_bit()
497 if (test_and_clear_bit(fail_bit, &lo->plh_flags)) in pnfs_layout_clear_fail_bit()
527 if (test_bit(fail_bit, &lo->plh_flags) == 0) in pnfs_layout_io_test_failed()
573 !test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) && in pnfs_layout_remove_lseg()
574 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) { in pnfs_layout_remove_lseg()
576 set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); in pnfs_layout_remove_lseg()
577 clear_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); in pnfs_layout_remove_lseg()
841 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags) || in pnfs_layout_bulk_destroy_byserver_locked()
842 test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) || in pnfs_layout_bulk_destroy_byserver_locked()
850 if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) in pnfs_layout_bulk_destroy_byserver_locked()
892 set_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); in pnfs_layout_free_bulk_destroy_list()
993 clear_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); in pnfs_set_layout_stateid()
1027 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); in pnfs_layoutgets_blocked()
1204 if (test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) in pnfs_prepare_layoutreturn()
1206 set_bit(NFS_LAYOUT_RETURN, &lo->plh_flags); in pnfs_prepare_layoutreturn()
1210 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) { in pnfs_prepare_layoutreturn()
1294 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_layout_need_return()
1304 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_layoutreturn_before_put_layout_hdr()
1359 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) { in _pnfs_return_layout()
1361 if (wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, in _pnfs_return_layout()
1374 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) || in _pnfs_return_layout()
1386 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, TASK_UNINTERRUPTIBLE); in _pnfs_return_layout()
1445 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) { in pnfs_roc()
1450 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) { in pnfs_roc()
1453 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, in pnfs_roc()
1494 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_roc()
1617 if (lo && test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) { in pnfs_wait_on_layoutreturn()
1742 lo->plh_flags |= 1 << NFS_LAYOUT_INVALID_STID; in alloc_init_layout_hdr()
1915 return wait_on_bit_action(&lo->plh_flags, NFS_LAYOUT_RETURN, in pnfs_prepare_to_retry_layoutget()
1928 test_and_clear_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags)) in nfs_layoutget_end()
1929 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN); in nfs_layoutget_end()
1934 return test_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags); in pnfs_is_first_layoutget()
1939 unsigned long *bitlock = &lo->plh_flags; in pnfs_clear_first_layoutget()
1949 if (!test_and_set_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) { in _add_to_server_list()
2018 if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) { in pnfs_update_layout()
2036 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) && in pnfs_update_layout()
2039 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN, in pnfs_update_layout()
2051 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) { in pnfs_update_layout()
2080 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) { in pnfs_update_layout()
2088 &lo->plh_flags)) { in pnfs_update_layout()
2090 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags, in pnfs_update_layout()
2236 if (!test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) in _pnfs_grab_empty_layout()
2238 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) in _pnfs_grab_empty_layout()
2242 if (test_and_set_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags)) in _pnfs_grab_empty_layout()
2419 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) && in pnfs_layout_process()
2498 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_mark_matching_lsegs_return()
2580 !test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) && in pnfs_layout_can_be_returned()
2581 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags); in pnfs_layout_can_be_returned()
2646 test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_layout_return_unused_byserver()