Re: [PATCH RESEND] nbd: Aovid double completion of a request

From
Josef Bacik <josef@toxicpanda.com>
Date
2021-08-13 15:45:09
Reply to
Xie Yongji, 2021-08-13
On 8/13/21 11:13 AM, Xie Yongji wrote:
There is a race between iterating over requests in
nbd_clear_que() and completing requests in recv_work(),
which can lead to double completion of a request.

To fix it, flush the recv worker before iterating over
the requests and don't abort the completed request
while iterating.

Fixes: 96d97e17828f ("nbd: clear_sock on netlink disconnect")
Reported-by: Jiang Yadong <redacted>
Signed-off-by: Xie Yongji <redacted>
Thanks for resending this, my email client messed up.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Josef
Thread (3 messages) 3 messages, 3 authors, last reply 2021-08-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help