From: Lai Jiangshan Date: Thu, 29 Nov 2012 08:46:03 +0000 (+0800) Subject: srcu: Add might_sleep() annotation to synchronize_srcu() X-Git-Tag: v3.9-rc1~175^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e6f1b307e23201fb3e7aaf16322e80355d2a3d5;p=pandora-kernel.git srcu: Add might_sleep() annotation to synchronize_srcu() Although synchronize_srcu() can sleep, it will not sleep if the fast path succeeds, which means that illegal use of synchronize_rcu() might go unnoticed. This commit therefore adds might_sleep(), which unconditionally catches illegal use of synchronize_rcu() from atomic context. Signed-off-by: Lai Jiangshan Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed