All of lore.kernel.org
 help / color / mirror / Atom feed
* Question: request tag usage
@ 2014-09-26  6:29 Hannes Reinecke
  2014-09-26  8:03 ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: Hannes Reinecke @ 2014-09-26  6:29 UTC (permalink / raw)
  To: Christoph Hellwig, Robert Elliot, SCSI Mailing List, Jens Axboe

Hi Christoph,

as discussed it would make sense to use the request->tag in eg
scmd_printk() to identify the command.
Which I duly did, only to figure out that the tag is always '-1', ie
tagging is not in use.
(Which is okay from the SCSI side, seeing the TCQ is basically a
SCSI parallel thing).
Looking closer I found plenty of code for handling tags in the block
layer (and the blk-mq stuff, of course), but virtually none of the
non-SPI driver seems to be using them.
Which makes the original idea a bit pointless, seeing that we need
to identify the command _always_, and not just if the host happens
to support tagging.

Which leads me to some questions:
- Is the stuff in blk-mq supposed to work as a superset of SCSI TCQ?
- If so, should any HBAs with a queue depth > 1 (which does not
  support TCQ) set the tag of a command?
  (that's what I've initially thought would happen ...)
- If not (and the ->tag field is basically unused), can't we
  have the HBA to fill in a value here?

What I would like to see is to have the '->tag' field as an
identification for the commands in flight. IE every HBA with a queue
depth > 1 should be setting the tags.

Which apparently was too much to hope for ...

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2014-09-26 13:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-26  6:29 Question: request tag usage Hannes Reinecke
2014-09-26  8:03 ` Christoph Hellwig
2014-09-26  8:20   ` Hannes Reinecke
2014-09-26 10:12     ` James Bottomley
2014-09-26 12:41       ` Hannes Reinecke
2014-09-26 13:52     ` Elliott, Robert (Server Storage)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.