io_uring: improve poll warning handling
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Nov 2022 15:21:54 +0000 (15:21 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Nov 2022 17:27:22 +0000 (10:27 -0700)
commitc3bfb57ea7011e0c04e4b7f28cb357a551b1efb9
treec77769f88806e45f8dd592d6780987ecd458e025
parent047b6aef0966f9863e1940b57c256ebbb465a6b5
io_uring: improve poll warning handling

Don't try to complete requests if their refs are broken and we've got
a warning, it's much better to drop them and potentially leaking than
double freeing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/31edf9f96f05d03ab62c114508a231a2dce434cb.1669821213.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c