From 99ba2ae4cd876bbcedb01d94c1a7952ce171418e Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 21 Oct 2013 11:44:57 +0100 Subject: [PATCH] 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-format-patch failed