linux/drivers/block
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
..
aoe block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
drbd block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
mtip32xx block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
null_blk block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
rnbd block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
xen-blkback drivers/block/xen-blkback/common.h: Fix spelling typo in comment 2024-01-04 16:10:29 -07:00
zram block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
amiflop.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
ataflop.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
brd.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
floppy.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
Kconfig block: ublk: switch to ioctl command encoding 2023-04-18 20:13:30 -06:00
loop.c loop: use the atomic queue limits update API 2024-02-13 08:56:59 -07:00
Makefile Revert "pktcdvd: remove driver." 2023-01-04 14:44:13 -07:00
n64cart.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
nbd.c nbd: null check for nla_nest_start 2024-02-18 06:01:18 -07:00
pktcdvd.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
ps3disk.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
ps3vram.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
rbd_types.h libceph, rbd: replace zero-length array with flexible-array 2020-06-01 13:22:53 +02:00
rbd.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
sunvdc.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
swim3.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
swim_asm.S
swim.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
ublk_drv.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
virtio_blk.c virtio_blk: pass queue_limits to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
xen-blkfront.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
z2ram.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00