Thread (14 messages) 14 messages, 3 authors, 2017-03-18

Re: [PATCH v1 3/3] blk-mq: start to freeze queue just after setting dying

From: Bart Van Assche <hidden>
Date: 2017-03-17 20:39:37
Also in: lkml

On Sat, 2017-03-18 at 02:32 +0800, Ming Lei wrote:
On Sat, Mar 18, 2017 at 1:32 AM, Bart Van Assche wrote:
quoted
+       /*
+        * Avoid that the updates of the queue flags and q_usage_counte=
r
quoted
+        * are reordered.
+        */
+       smp_wmb();
=20
atomic_inc_return() in blk_mq_freeze_queue_start() does imply a
barrier(smp_mb()).
Hello Ming,

It's probably a good idea to mention that in a comment. The implementation
of blk_mq_freeze_queue_start() namely could be changed in the future such
that it uses another atomic operation that doesn't implicitly perform smp_m=
b().

Thanks,

Bart.=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help