On 11/10/21 22:54, Hannes Reinecke wrote:
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?
Hi Hannes,
Thanks for the pointer, that patch looks very interesting. However, in
the UFS driver we need both a request pointer and a tag. Since
converting a unique tag into a request pointer is much more work than
converting a request or SCSI command pointer into a tag, I prefer
functions that return a request pointer or SCSI command pointer.
Thanks,
Bart.