lkml.org 
[lkml]   [2020]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] block: Limit number of items taken from the I/O scheduler in one go
> +	/*
> + * A return of -EAGAIN is an indication that hctx->dispatch is not
> + * empty and we must run again in order to avoid starving flushes.
> + */
> + if (__blk_mq_sched_dispatch_requests(hctx) == -EAGAIN) {
> + if (__blk_mq_sched_dispatch_requests(hctx) == -EAGAIN)
> + blk_mq_run_hw_queue(hctx, true);
> + }

The comment doesn't explain why we give up after the second attempt and
do a blk_mq_run_hw_queue instead.

\
 
 \ /
  Last update: 2020-04-24 17:41    [W:0.050 / U:1.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site