From: Weston Andros Adamson Date: Fri, 8 Aug 2014 15:00:55 +0000 (-0400) Subject: nfs: use blocking page_group_lock in add_request X-Git-Tag: omap-for-v3.17/fixes-against-rc2~12^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfd484a5606d6a0379a0a2f04251b1e5c1f8995c;p=pandora-kernel.git 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 Reviewed-by: Peng Tao Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed