lkml.org 
[lkml]   [2021]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] cancel all throttled bios in blk_cleanup_queue()
Date
If blk_cleanup_queue() is called when some io are still throttled,
such io will not be handled until the throttle is done, which is not
necessary because the queue is already dying.

This patch series handle such in blk_cleanup_queue().

Yu Kuai (4):
Revert "blk-throttle: remove tg_drain_bios"
blk-throtl: don't warn in tg_drain_bios()
blk-throtl: introduce blk_throtl_cancel_bios()
block: cancel all throttled bios in blk_cleanup_queue()

block/blk-core.c | 3 ++
block/blk-throttle.c | 70 +++++++++++++++++++++++++++++++++++++++++---
block/blk.h | 2 ++
3 files changed, 71 insertions(+), 4 deletions(-)

--
2.31.1

\
 
 \ /
  Last update: 2021-09-22 14:43    [W:0.066 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site