diff mbox series

回复: possible deadlock in io_poll_double_wake (2)

Message ID BYAPR11MB2632D4973C567EDF64A6728BFF989@BYAPR11MB2632.namprd11.prod.outlook.com (mailing list archive)
State New
Headers show
Series 回复: possible deadlock in io_poll_double_wake (2) | expand

Commit Message

Zhang, Qiang March 3, 2021, 12:15 p.m. UTC

diff mbox series

Patch

diff --git a/fs/io_uring.c b/fs/io_uring.c
index 42b675939582..cae605c14510 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -4824,7 +4824,7 @@  static bool io_poll_rewait(struct io_kiocb *req, struct io_poll_iocb *poll)
 
        if (!req->result && !READ_ONCE(poll->canceled)) {
                struct poll_table_struct pt = { ._key = poll->events };
-
+               poll->head = NULL;
                req->result = vfs_poll(req->file, &pt) & poll->events;
        }