block: replace icq->changed with icq->flags
authorTejun Heo <tj@kernel.org>
Wed, 15 Feb 2012 08:45:49 +0000 (09:45 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Feb 2012 08:45:49 +0000 (09:45 +0100)
commitd705ae6b133f9f6a8beee617b1224b6a5c99c5da
treeb1a0b09ae01f8385e66c021c338106b88e8d23f8
parent7ada1dd62804ca9ce1cb8666c6e563cd92fa50c1
block: replace icq->changed with icq->flags

icq->changed was used for ICQ_*_CHANGED bits.  Rename it to flags and
access it under ioc->lock instead of using atomic bitops.
ioc_get_changed() is added so that the changed part can be fetched and
cleared as before.

icq->flags will be used to carry other flags.

Signed-off-by: Tejun Heo <tj@kernel.org>
Tested-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c
block/cfq-iosched.c
include/linux/iocontext.h