]> www.infradead.org Git - users/hch/block.git/commit
scsi_transport_fc: add a max_bsg_segments field to struct fc_function_template
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Mar 2024 03:48:39 +0000 (13:48 +1000)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Apr 2024 05:37:13 +0000 (07:37 +0200)
commit8de4c30a4278eae93729b780f769c362fbec1936
treede08752723b89833983107a2d65fac81492804ea
parent1c67f2ecbf1a10751f6fe70526520a40eb7fa26c
scsi_transport_fc: add a max_bsg_segments field to struct fc_function_template

ibmvfc only supports a single segment for BSG FC passthrough.  Instead of
having it set a queue limits after creating the BSG queues, add a field
so that the FC transport can set it before allocating the queue.

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/ibmvscsi/ibmvfc.c
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h