Thread (11 messages) 11 messages, 4 authors, 2021-04-04

Re: [PATCH v4 3/3] blk-mq: Fix a race between iterating over requests and freeing requests

From: Bart Van Assche <bvanassche@acm.org>
Date: 2021-04-04 01:11:18

On 4/2/21 8:37 PM, Khazhy Kumykov wrote:
On Fri, Apr 2, 2021 at 8:26 PM Bart Van Assche [off-list ref] wrote:
quoted
On 4/2/21 4:59 PM, Khazhy Kumykov wrote:
quoted
lockdep_is_held(&tags->iter_rwsem) ?
I will change the second rcu_dereference_check() argument into the
following:

rcu_read_lock_held() || lockdep_is_held(&tags->iter_rwsem)
rcu_dereference_check() already has a || rcu_read_lock_held(), fwiw
From a quick look it seems like other rcu_dereference_check() calls do
not specify rcu_read_lock_held() explicitly so I will leave it out.

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