aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorWeston Andros Adamson <[email protected]>2014-08-08 15:00:55 +0000
committerTrond Myklebust <[email protected]>2014-08-22 22:04:43 +0000
commitbfd484a5606d6a0379a0a2f04251b1e5c1f8995c (patch)
tree1f6499d6a822195a74cb8ed7f284013654293cbf /lib/assoc_array.c
parentnfs: fix nonblocking calls to nfs_page_group_lock (diff)
downloadkernel-bfd484a5606d6a0379a0a2f04251b1e5c1f8995c.tar.gz
kernel-bfd484a5606d6a0379a0a2f04251b1e5c1f8995c.zip
nfs: use blocking page_group_lock in add_request
__nfs_pageio_add_request was calling nfs_page_group_lock nonblocking, but this can return -EAGAIN which would end up passing -EIO to the application. There is no reason not to block in this path, so change the two calls to do so. Also, there is no need to check the return value of nfs_page_group_lock when nonblock=false, so remove the error handling code. 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/assoc_array.c')
0 files changed, 0 insertions, 0 deletions