linux-stable/drivers/block/null_blk
Christoph Hellwig 74fa8f9c55 block: pass a queue_limits argument to blk_alloc_disk
Pass a queue_limits to blk_alloc_disk and apply it if non-NULL.  This
will allow allocating queues with valid queue limits instead of setting
the values one at a time later.

Also change blk_alloc_disk to return an ERR_PTR instead of just NULL
which can't distinguish errors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Link: https://lore.kernel.org/r/20240215071055.2201424-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-02-19 16:58:23 -07:00
..
Kconfig block: null_blk: make fault-injection dynamically configurable per device 2023-04-13 07:38:55 -06:00
main.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
Makefile null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
null_blk.h null_blk: add configfs variable shared_tags 2024-02-08 11:31:23 -07:00
trace.c null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
trace.h treewide: Rename enum req_opf into enum req_op 2022-07-14 12:14:30 -06:00
zoned.c block: simplify disk_set_zoned 2023-12-19 20:17:43 -07:00