Message ID | 20220919175810.689086-13-cascardo@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,Jammy,01/12] io_uring: refactor poll update | expand |
diff --git a/fs/io_uring.c b/fs/io_uring.c index 0a14cb2c55c5..5ce0254d2cbe 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -5627,8 +5627,10 @@ static int __io_arm_poll_handler(struct io_kiocb *req, if (mask) { /* can't multishot if failed, just queue the event we've got */ - if (unlikely(ipt->error || !ipt->nr_entries)) + if (unlikely(ipt->error || !ipt->nr_entries)) { poll->events |= EPOLLONESHOT; + ipt->error = 0; + } __io_poll_execute(req, mask); return 0; }