public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* QUEUE_FLAG_NO_SG_MERGE and non-block-mq
@ 2015-11-26  8:13 Hannes Reinecke
  2015-11-26  9:21 ` Ming Lei
  0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2015-11-26  8:13 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Ming Lei, Christoph Hellwig, Martin K. Petersen,
	linux-scsi@vger.kernel.org, Linux Kernel

Hi all,

while investigating the crash in scsi_lib.c I found a rather curious
behaviour for QUEUE_FLAG_NO_SG_MERGE.

While the flag is evaluated in blk_recalc_rq_segments and
blk_recount_segments (resulting in nr_phys_segments being
computed based on that flag) it is completely ignored
during blk_rq_map_sg() or the actual merging itself.

This typically shouldn't be an issue, seeing that with
QUEUE_FLAG_NO_SG_MERGE nr_phys_segments will always be
larger than the actual segment count.

However, it still makes me wonder:
What is the point of having a QUEUE_FLAG_NO_SG_MERGE
which doesn't work as advertised?
Or, to be precise, which only works for blk-mq?
Should we make it work for non-block-mq, too?


Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

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

end of thread, other threads:[~2015-11-27 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26  8:13 QUEUE_FLAG_NO_SG_MERGE and non-block-mq Hannes Reinecke
2015-11-26  9:21 ` Ming Lei
2015-11-27 14:29   ` Hannes Reinecke
2015-11-27 16:14     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox