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