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>
Tue, 28 Jul 2015 19:13:14 +0000 (13:13 -0600)
commit37a7031a131f4646c81a990d8733358ba17bdb9f
tree2f38bdc1cf7ea6c924f6e1d52cf5913c370e08b6
parentbcf2843b3f8feae8f87c8028e1625540c1abdd5a
block: manipulate bio->bi_flags through helpers

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