On 9/26/19 2:55 AM, Roman Penyaev wrote:
As I remember correctly I could not reuse the whole machinery with those restarts from block core because shared tags are shared only between hardware queues, i.e. different hardware queues share different tags sets. IBTRS has many hardware queues (independent RDMA connections) but only one tags set, which is equally shared between block devices. What I dreamed about is something like BLK_MQ_F_TAG_GLOBALLY_SHARED support in block layer.
A patch series that adds support for sharing tag sets across hardware queues is pending. See also "[PATCH V3 0/8] blk-mq & scsi: fix reply queue selection and improve host wide tagset" (https://lore.kernel.org/linux-block/20180227100750.32299-1-ming.lei@xxxxxxxxxx/). Would that patch series allow to remove the queue management code from ibnbd?
Thanks, Bart.