From: Weston Andros Adamson Date: Fri, 8 Aug 2014 15:00:57 +0000 (-0400) Subject: nfs: don't sleep with inode lock in lock_and_join_requests X-Git-Tag: omap-for-v3.17/fixes-against-rc2~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c3af975257383ece54b83c0505d3e0656cb7daf;p=pandora-kernel.git nfs: don't sleep with inode lock in lock_and_join_requests This handles the 'nonblock=false' case in nfs_lock_and_join_requests. If the group is already locked and blocking is allowed, drop the inode lock and wait for the group lock to be cleared before trying it all again. This should fix warnings found in peterz's tree (sched/wait branch), where might_sleep() checks are added to wait.[ch]. Reported-by: Fengguang Wu Signed-off-by: Weston Andros Adamson Reviewed-by: Peng Tao Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed