From: Ilya Dryomov Date: Mon, 3 Feb 2014 11:56:33 +0000 (+0200) Subject: libceph: take map_sem for read in handle_reply() X-Git-Tag: v3.14-rc2~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff513ace9b772e75e337f8e058cc7f12816843fe;p=pandora-kernel.git libceph: take map_sem for read in handle_reply() Handling redirect replies requires both map_sem and request_mutex. Taking map_sem unconditionally near the top of handle_reply() avoids possible race conditions that arise from releasing request_mutex to be able to acquire map_sem in redirect reply case. (Lock ordering is: map_sem, request_mutex, crush_mutex.) Signed-off-by: Ilya Dryomov Reviewed-by: Sage Weil --- Reading git-diff-tree failed