Thread (22 messages) 22 messages, 2 authors, 2017-06-06

Re: [PATCH v4 10/11] blk-mq: clarify dispatch may not be drained/blocked by stopping queue

From: Ming Lei <hidden>
Date: 2017-06-06 12:48:32

On Mon, Jun 05, 2017 at 11:55:20PM +0000, Bart Van Assche wrote:
On Mon, 2017-06-05 at 23:59 +0800, Ming Lei wrote:
quoted
+/*
+ * We do not guarantee that dispatch can be drained or blocked
+ * after blk_mq_stop_hw_queue() returns. Please use
+ * blk_mq_quiesce_queue() for that requirement.
+ */
Hello Ming,

This is comment explains what blk_mq_stop_hw_queue() should not be used for
and may leave the reader wondering what it is useful for. How about mentioning
first that this function is useful to pause .queue_rq() calls as long as the
block driver it will have to return BUSY if .queue_rq() is called?
OK, will make that as one example.


Thanks,
Ming
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help