diff options
author | Christoph Hellwig <hch@lst.de> | 2020-06-26 10:01:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-01 16:08:20 +0200 |
commit | e556f6ba10f0f3c3484a1597382ceaec1e7bc700 (patch) | |
tree | 118abf6b1784ad653c0a423966d6ea0d1e070b8c /drivers/md/md.c | |
parent | block: remove the bd_block_size field from struct block_device (diff) | |
download | linux-e556f6ba10f0f3c3484a1597382ceaec1e7bc700.tar.xz linux-e556f6ba10f0f3c3484a1597382ceaec1e7bc700.zip |
block: remove the bd_queue field from struct block_device
Just use bd_disk->queue instead.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 7b7cb49be351..8bb69c61afe0 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -199,7 +199,7 @@ static int rdevs_init_serial(struct mddev *mddev) static int rdev_need_serial(struct md_rdev *rdev) { return (rdev && rdev->mddev->bitmap_info.max_write_behind > 0 && - rdev->bdev->bd_queue->nr_hw_queues != 1 && + rdev->bdev->bd_disk->queue->nr_hw_queues != 1 && test_bit(WriteMostly, &rdev->flags)); } |