diff options
author | Jens Axboe <axboe@fb.com> | 2015-07-24 12:37:59 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-07-29 08:55:20 -0600 |
commit | b7c44ed9d2fc6b461378c65eaf144ccc80a47772 (patch) | |
tree | 2f38bdc1cf7ea6c924f6e1d52cf5913c370e08b6 /drivers/md/raid5.c | |
parent | 4246a0b63bd8f56a1469b12eafeb875b1041a451 (diff) | |
download | linux-b7c44ed9d2fc6b461378c65eaf144ccc80a47772.tar.bz2 |
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>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 84d6eec1033e..e3d48775c9df 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -4850,7 +4850,7 @@ static int chunk_aligned_read(struct mddev *mddev, struct bio * raid_bio) rcu_read_unlock(); raid_bio->bi_next = (void*)rdev; align_bi->bi_bdev = rdev->bdev; - __clear_bit(BIO_SEG_VALID, &align_bi->bi_flags); + bio_clear_flag(align_bi, BIO_SEG_VALID); if (!bio_fits_rdev(align_bi) || is_badblock(rdev, align_bi->bi_iter.bi_sector, |