1
0

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>
Este cometimento está contido em:
Christoph Hellwig
2020-06-26 10:01:56 +02:00
cometido por Jens Axboe
ascendente 6b7b181b67
cometimento e556f6ba10
8 ficheiros modificados com 11 adições e 15 eliminações

Ver ficheiro

@@ -132,5 +132,5 @@ xfs_pwork_guess_datadev_parallelism(
* For now we'll go with the most conservative setting possible,
* which is two threads for an SSD and 1 thread everywhere else.
*/
return blk_queue_nonrot(btp->bt_bdev->bd_queue) ? 2 : 1;
return blk_queue_nonrot(btp->bt_bdev->bd_disk->queue) ? 2 : 1;
}