]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: use blocking page_group_lock in add_request
authorWeston Andros Adamson <dros@primarydata.com>
Fri, 8 Aug 2014 15:00:55 +0000 (11:00 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 22 Aug 2014 22:04:43 +0000 (18:04 -0400)
commit1f6046de9dbd522b24b23c77aec8814b590111a2
tree1f6499d6a822195a74cb8ed7f284013654293cbf
parent69846ee0cb5e3f54096a0ac8203ffc3d373d1770
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 <dros@primarydata.com>
Reviewed-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c