On 11/10/21 10:54 PM, Hannes Reinecke wrote:
On 11/10/21 8:19 PM, Bart Van Assche wrote:
In the UFS driver we are using a request queue that is not associated
with any SCSI device for allocating driver-internal tags from the same
tags space as SCSI commands. Is this a solution that is generic enough
to be re-used by other SCSI drivers? See also the output of git grep
-nH 'hba->cmd_queue'.
Ah. Even easier.
I've made a prototype for this kind of operation in
git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
branch scsi-internal.v1
That introduces a function 'scsi_host_get_internal_tag()'
to retrieve a tag from the reserved pool of the host tagset.
Would that work for you?
That works for me. Thanks for the feedback!
Bart.