Thread (18 messages) flat view 18 messages, 2 authors, 2021-11-04

Re: [PATCH 1/4] block: have plug stored requests hold references to the queue

From: Jens Axboe <axboe@kernel.dk>
Date: 2021-11-04 11:33:25

On 11/4/21 3:01 AM, Christoph Hellwig wrote:
quoted
@@ -1643,7 +1643,7 @@ void blk_flush_plug(struct blk_plug *plug, bool from_schedule)
 		flush_plug_callbacks(plug, from_schedule);
 	if (!rq_list_empty(plug->mq_list))
 		blk_mq_flush_plug_list(plug, from_schedule);
-	if (unlikely(!from_schedule && plug->cached_rq))
+	if (unlikely(!rq_list_empty(plug->cached_rq)))
How is this related to the rest of the patch?
With references to the requests, flushing them even from a schedule
unplug condition is a lot saner in case someone is waiting on the
queue to quiesce.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help