cfq-iosched: fix rcu freeing of cfq io contexts
authorFabio Checconi <fabio@gandalf.sssup.i>
Wed, 2 Apr 2008 12:31:02 +0000 (14:31 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 2 Apr 2008 13:42:20 +0000 (15:42 +0200)
commit34e6bbf23c8f43e8713d9bd092680f1660494b4a
tree908e97ac3d43882cb42bf57c41926852d3bc2f6e
parent00d61e3e8c12d5f395b167856d2b3c430816afb0
cfq-iosched: fix rcu freeing of cfq io contexts

SLAB_DESTROY_BY_RCU is not a direct substitute for normal call_rcu()
freeing, since it'll page freeing but NOT object freeing. So change
cfq to do the freeing on its own.

Signed-off-by: Fabio Checconi <fabio@gandalf.sssup.it>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c
include/linux/iocontext.h