From: Joe Thornber Date: Mon, 21 Oct 2013 10:44:57 +0000 (+0100) Subject: dm cache policy mq: protect residency method with existing mutex X-Git-Tag: v3.13-rc1~97^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ba2ae4cd876bbcedb01d94c1a7952ce171418e;p=pandora-kernel.git dm cache policy mq: protect residency method with existing mutex It is safe to use a mutex in mq_residency() at this point since it is only called from ioctl context. But future-proof mq_residency() by using might_sleep() to catch new contexts that cannot sleep. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed