Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1270646 > unrolled thread

Re: [PATCH] blk-flush: Queue through IO scheduler when flush not required

Started byJens Axboe <axboe@kernel.dk>
First post2015-11-16 23:30 +0100
Last post2015-11-16 23:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] blk-flush: Queue through IO scheduler when flush not  required Jens Axboe <axboe@kernel.dk> - 2015-11-16 23:30 +0100

#1270646 — Re: [PATCH] blk-flush: Queue through IO scheduler when flush not required

FromJens Axboe <axboe@kernel.dk>
Date2015-11-16 23:30 +0100
SubjectRe: [PATCH] blk-flush: Queue through IO scheduler when flush not required
Message-ID<qvArE-4ME-1@gated-at.bofh.it>
On 11/12/2015 06:25 AM, Jan Kara wrote:
> Currently blk_insert_flush() just adds flush request to q->queue_head
> when flush is not required. That completely bypasses IO scheduler so
> e.g. CFQ can be idling waiting for new request to arrive and will idle
> through the whole window unnecessarily. Luckily this only happens in
> rare cases as usually checks in generic_make_request_checks() clear
> FLUSH and FUA flags early if they are not needed.
>
> When no flushing is actually required, we can easily fix the problem by
> properly queueing the request through the IO scheduler. Ideally IO
> scheduler should be also made aware of requests queued via
> blk_flush_queue_rq(). However inserting flush request through IO
> scheduler can have unwanted side-effects since due to flush batching
> delaying the flush request in IO scheduler will delay all flush requests
> possibly coming from other processes. So we keep adding the request
> directly to q->queue_head.

Applied, thanks Jan.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web