diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 10:24:16 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-28 00:21:15 +0300 |
commit | f3c17dcc43e207e4fba511e9e63d52f7098ad6f3 (patch) | |
tree | 4eae2dbe118b7b11a60cad8f7c015b6a4cc07723 | |
parent | 5e4e1ff820e855a328cf2efb795c079f3a58abbe (diff) | |
download | linux-f3c17dcc43e207e4fba511e9e63d52f7098ad6f3.tar.xz |
ubd: remove the queue pointer in struct ubd
No need for it now, everything goes through the gendisk.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Richard Weinberger <richard@nod.at>
Link: https://lore.kernel.org/r/20240222072417.3773131-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index c5d32e754263..9bf1d6a88bae 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -163,7 +163,6 @@ struct ubd { struct cow cow; struct platform_device pdev; struct gendisk *disk; - struct request_queue *queue; struct blk_mq_tag_set tag_set; spinlock_t lock; }; @@ -892,10 +891,9 @@ static int ubd_add(int n, char **error_out) err = PTR_ERR(disk); goto out_cleanup_tags; } - ubd_dev->queue = disk->queue; blk_queue_flag_set(QUEUE_FLAG_NONROT, disk->queue); - blk_queue_write_cache(ubd_dev->queue, true, false); + blk_queue_write_cache(disk->queue, true, false); disk->major = UBD_MAJOR; disk->first_minor = n << UBD_SHIFT; disk->minors = 1 << UBD_SHIFT; |