From: Jens Axboe Date: Wed, 7 May 2008 07:17:12 +0000 (+0200) Subject: cfq-iosched: fix RCU race in the cfq io_context destructor handling X-Git-Tag: v2.6.26-rc2~33^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07416d29bcf608257f1e5280642dcbe0021518a3;p=pandora-kernel.git cfq-iosched: fix RCU race in the cfq io_context destructor handling put_io_context() drops the RCU read lock before calling into cfq_dtor(), however we need to hold off freeing there before grabbing and dereferencing the first object on the list. So extend the rcu_read_lock() scope to cover the calling of cfq_dtor(), and optimize cfq_free_io_context() to use a new variant for call_for_each_cic() that assumes the RCU read lock is already held. Hit in the wild by Alexey Dobriyan Signed-off-by: Jens Axboe --- Reading git-diff-tree failed