]> www.infradead.org Git - users/hch/block.git/commit
mpi3mr: switch to using ->device_configure
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Apr 2024 05:42:22 +0000 (07:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Apr 2024 05:42:22 +0000 (07:42 +0200)
commit1bfef6013cea9459ed7cc31d990822934cca6e63
tree1b469e3b85930cda9e02edcce6f6efc71f7bb0b7
parent78721d374db1d19632425c10b8d00c3034b19f20
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>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/mpi3mr/mpi3mr.h
drivers/scsi/mpi3mr/mpi3mr_os.c