diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-05-07 07:17:12 (GMT) |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-05-07 07:28:57 (GMT) |
commit | 07416d29bcf608257f1e5280642dcbe0021518a3 (patch) | |
tree | 6b88b2b043cac10b34234320c68e06848c00127c /arch/x86/math-emu/poly.h | |
parent | aa94b5371f6f898558d9fa5690cc6e4bf917a572 (diff) | |
download | linux-07416d29bcf608257f1e5280642dcbe0021518a3.tar.xz |
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 <adobriyan@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch/x86/math-emu/poly.h')
0 files changed, 0 insertions, 0 deletions