]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit840bdb8b7053f1bd113f7815eb38d245f1c6b83a
treeb1a0b09ae01f8385e66c021c338106b88e8d23f8
parent849d748550f438c49f50bfd73d128a176e013170
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