diff options
| author | Weston Andros Adamson <[email protected]> | 2014-08-08 15:00:54 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2014-08-22 22:04:42 +0000 |
| commit | bc8a309e88a86205fc3e17f06e42a2e56fc6f807 (patch) | |
| tree | 3a3df69f6e7a6e16fc6a816e2e4ee1d0544ec8cb /lib/string.c | |
| parent | nfs: change nfs_page_group_lock argument (diff) | |
| download | kernel-bc8a309e88a86205fc3e17f06e42a2e56fc6f807.tar.gz kernel-bc8a309e88a86205fc3e17f06e42a2e56fc6f807.zip | |
nfs: fix nonblocking calls to nfs_page_group_lock
nfs_page_group_lock was calling wait_on_bit_lock even when told not to
block. Fix by first trying test_and_set_bit, followed by wait_on_bit_lock
if and only if blocking is allowed. Return -EAGAIN if nonblocking and the
test_and_set of the bit was already locked.
Signed-off-by: Weston Andros Adamson <[email protected]>
Reviewed-by: Peng Tao <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
