scsi: uas: Switch to using ->device_configure to configure queue limits
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Apr 2024 14:37:47 +0000 (16:37 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 12 Apr 2024 10:32:01 +0000 (06:32 -0400)
commit84a44a8125742bfa4cdb209d20f50763cafcb103
tree72076d568d98099c80f15451c5368d97d05b893d
parent30efd3823f2c1f8b1a22727247520c75071d339c
scsi: uas: Switch to using ->device_configure to configure queue limits

Switch to the ->device_configure method instead of ->slave_alloc and update
the block limits on the passed in queue_limits instead of using the
per-limit accessors.

Note that uas was the only driver setting these size limits from
->slave_alloc and not ->slave_configure and this makes it match everyone
else.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240409143748.980206-23-hch@lst.de
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/usb/storage/uas.c