Files
linux/drivers
Xie Yongji cddce01160 nbd: Aovid double completion of a request
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: 96d97e1782 ("nbd: clear_sock on netlink disconnect")
Reported-by: Jiang Yadong <[email protected]>
Signed-off-by: Xie Yongji <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
2021-08-13 09:46:48 -06:00
..
…
2021-06-24 18:49:01 -06:00
…
…
2021-06-30 15:34:19 -06:00
…
…
2021-06-29 10:53:48 -07:00
…
…
…
…
…
…
…
…
…
…
2021-06-30 15:34:04 -06:00
…
…
…
…
…
…
…
…
2021-06-01 16:44:09 +01:00
…
2021-06-30 15:34:19 -06:00
…
…
…
…
2021-06-30 15:34:19 -06:00
…
…
…
…
…
…
2021-06-16 08:53:58 -06:00