block: manipulate bio->bi_flags through helpers
authorJens Axboe <axboe@fb.com>
Fri, 24 Jul 2015 18:37:59 +0000 (12:37 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 29 Jul 2015 14:55:20 +0000 (08:55 -0600)
Some places use helpers now, others don't. We only have the 'is set'
helper, add helpers for setting and clearing flags too.

It was a bit of a mess of atomic vs non-atomic access. With
BIO_UPTODATE gone, we don't have any risk of concurrent access to the
flags. So relax the restriction and don't make any of them atomic. The
flags that do have serialization issues (reffed and chained), we
already handle those separately.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio.c
block/blk-core.c
block/blk-map.c
block/blk-merge.c
block/bounce.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c
fs/buffer.c
include/linux/bio.h
include/linux/blk_types.h

diff --cc block/bio.c
Simple merge
Simple merge
diff --cc block/blk-map.c
Simple merge
Simple merge
diff --cc block/bounce.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc fs/buffer.c
Simple merge
Simple merge
Simple merge