linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] abort shared tags for SCSI drivers
@ 2020-01-16  4:06 Yufen Yu
  2020-01-16  9:03 ` Ming Lei
  0 siblings, 1 reply; 7+ messages in thread
From: Yufen Yu @ 2020-01-16  4:06 UTC (permalink / raw)
  To: linux-block; +Cc: john.garry, Ming Lei, axboe, hare, Bart Van Assche

Hi, all

Shared tags is introduced to maintains a notion of fairness between
active users. This may be good for nvme with multiple namespace to
avoid starving some users. Right?

However, I don't understand why we introduce the shared tag for SCSI.
IMO, there are two concerns for scsi shared tag:

1) For now, 'shost->can_queue' is used as queue depth in block layer.
And all target drivers share tags on one host. Then, the max tags for
each target can get:

	depth = max((bt->sb.depth + users - 1) / users, 4U);

But, each target driver may have their own capacity of tags and queue depth.
Does shared tag limit target device bandwidth?

2) When add new target or remove device, it may need to freeze other device
to update hctx->flags of BLK_MQ_F_TAG_SHARED. That may hurt performance.

Recently we discuss abort hostwide shared tags for SCSI[0] and sharing tags
across hardware queues[1]. These discussion are abort shared tag. But, I
confuse whether shared tag across hardware queues can solve my concerns as mentioned.

I have not deeply understand for SCSI and please correct me if I got wrong.

[0] https://www.spinics.net/lists/linux-scsi/msg136131.html
[1] https://www.spinics.net/lists/linux-block/msg47504.html

Thanks,
Yufen

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-19 13:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16  4:06 [Question] abort shared tags for SCSI drivers Yufen Yu
2020-01-16  9:03 ` Ming Lei
2020-01-16 12:17   ` [Question] about " John Garry
2020-01-16 15:17   ` [Question] abort " James Bottomley
2020-01-17  7:19   ` [Question] about " Yufen Yu
2020-01-17 10:16     ` Ming Lei
2020-01-19 13:57       ` Yufen Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).