mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
scsi: core: 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> Link: https://lore.kernel.org/r/20240409143748.980206-11-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> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
693a1e8cbe
commit
b7eefcf11f
@@ -211,7 +211,11 @@ struct scsi_host_template {
|
||||
* up after yourself before returning non-0
|
||||
*
|
||||
* Status: OPTIONAL
|
||||
*
|
||||
* Note: slave_configure is the legacy version, use device_configure for
|
||||
* all new code. A driver must never define both.
|
||||
*/
|
||||
int (* device_configure)(struct scsi_device *, struct queue_limits *lim);
|
||||
int (* slave_configure)(struct scsi_device *);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user