scsi: mpi3mr: Switch to using ->device_configure
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Apr 2024 04:27:59 +0000 (06:27 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 12 Apr 2024 01:37:50 +0000 (21:37 -0400)
commit310887f688f76bb3eba589b9c2c1032d2078bb2b
treec27396d78c8fdb4e87d0fc750963fdf1725eb0b5
parenta25a9c85d17fd2f19bd5a2bb25b8361d72336bc7
scsi: mpi3mr: Switch to using ->device_configure

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

Note that mpi3mr also updates the limits from an event handler that
iterates all SCSI devices.  This is also updated to use the queue_limits,
but the complete locking of this path probably means it already is
completely broken and needs a proper audit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240410042759.GA2637@lst.de
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c