public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* IO request merging
@ 2014-10-16 12:27 Jan Kara
  2014-10-16 16:10 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kara @ 2014-10-16 12:27 UTC (permalink / raw)
  To: LKML; +Cc: Jens Axboe

  Hello,

  one of our customers was complaining that elv_attempt_insert_merge()
merges two requests (via blk_attempt_req_merge()) without asking IO
scheduler for permission (->elevator_allow_merge_fn() callback). Now for
them this is a problem because of their custom IO scheduler but looking
into the code this can result in somewhat suboptimal behavior for CFQ as
well (merging two requests from different IO contexts, possibly merging
sync & async request). What do others think about this?

Regarding possible fix, we cannot really call ->elevator_allow_merge_fn()
because that assumes it is called from a context of a process submitting the
passed bio. So we would need to create a separate allow merge callback for
this.

								Honza

-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

end of thread, other threads:[~2014-10-31 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 12:27 IO request merging Jan Kara
2014-10-16 16:10 ` Jens Axboe
2014-10-30 19:56   ` Jan Kara
2014-10-31  8:30     ` Jan Kara
2014-10-31 16:12       ` Jens Axboe

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