* [PATCH v4 0/2] fix inaccurate io_ticks
@ 2020-10-26 6:15 Weiping Zhang
0 siblings, 0 replies; only message in thread
From: Weiping Zhang @ 2020-10-26 6:15 UTC (permalink / raw)
To: axboe, ming.lei, snitzer, mpatocka; +Cc: linux-block
Hi,
This patchset include two patches,
01. block: fix inaccurate io_ticks
fix the io_ticks if start a new IO and there is no inflight IO before.
Please see the commit message of patch1 for more detail.
02. blk-mq: break more earlier when interate hctx
An optimization for blk_mq_queue_inflight and blk_mq_queue_inflight,
these two function only want to know if there is IO inflight and do
not care how many inflight IOs are there.
After this patch blk_mq_queue_inflight will stop interate other hctx
when find a inflight IO, blk_mq_part_is_in_inflight stop interate
other setbit/hctx when find a inflight IO.
Changes since v3:
* add a parameter for blk_mq_queue_tag_busy_iter to break earlier
when interate hctx of a queue, since blk_mq_part_is_in_inflight
and blk_mq_queue_inflight do not care how many inflight IOs.
Changes since v2:
* use blk_mq_queue_tag_busy_iter framework instead of open-code.
* update_io_ticks before update inflight for __part_start_io_acct
Changes since v1:
* avoid iterate all tagset, return directly if find a set bit.
* fix some typo in commit message
Weiping Zhang (2):
block: fix inaccurate io_ticks
blk-mq: break more earlier when interate hctx
block/blk-core.c | 19 ++++++++++----
block/blk-mq-tag.c | 11 ++++++--
block/blk-mq-tag.h | 2 +-
block/blk-mq.c | 58 +++++++++++++++++++++++++++++++++++++++---
block/blk-mq.h | 1 +
block/blk.h | 1 +
block/genhd.c | 13 ++++++++++
include/linux/blk-mq.h | 1 +
8 files changed, 94 insertions(+), 12 deletions(-)
--
2.18.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-26 6:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26 6:15 [PATCH v4 0/2] fix inaccurate io_ticks Weiping Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).