From: Yan, Zheng Date: Fri, 18 Apr 2014 05:20:27 +0000 (+0800) Subject: ceph: handle cap import atomically X-Git-Tag: omap-for-v3.16/fixes-against-rc1~24^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cd698be9a3d3a0f8f3c66814eac34144c31954c;p=pandora-kernel.git ceph: handle cap import atomically cap import messages are processed by both handle_cap_import() and handle_cap_grant(). These two functions are not executed in the same atomic context, so they can races with cap release. The fix is make handle_cap_import() not release the i_ceph_lock when it returns. Let handle_cap_grant() release the lock after it finishes its job. Signed-off-by: Yan, Zheng --- Reading git-diff-tree failed