IO request merging
From: Jan Kara
Date: Thu Oct 16 2014 - 08:27:46 EST
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@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/