]> www.infradead.org Git - users/hch/block.git/commit
scsi: add a device_configure method to the host template
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Mar 2024 05:08:41 +0000 (06:08 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Apr 2024 05:37:15 +0000 (07:37 +0200)
commitd0f8a18c4da25beffdcfdc353ff3d7d831509cb8
tree6142ee21aa6350847edd9bb213b93ab7ecbb21fc
parent7eea5e9c5a84f971c1d8b076f2b2d1e58b8d7b4d
scsi: add a device_configure method to the host template

This is a version of ->slave_configure that also takes a queue_limits
structure that the caller applies, and thus allows drivers to reconfigure
the queue using the atomic queue limits API.

In the long run it should also replace ->slave_configure entirely as
there is no need to have two different methods here, and the slave
name in addition to being politically charged also has no basis in
the SCSI standards or the kernel code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/scsi_scan.c
include/scsi/scsi_host.h