We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e524c commit d0ee879Copy full SHA for d0ee879
fs/io_uring.c
@@ -1838,6 +1838,7 @@ static void io_sq_wq_submit_work(struct work_struct *work)
1838
do {
1839
struct sqe_submit *s = &req->submit;
1840
const struct io_uring_sqe *sqe = s->sqe;
1841
+ unsigned int flags = req->flags;
1842
1843
/* Ensure we clear previously set non-block flag */
1844
req->rw.ki_flags &= ~IOCB_NOWAIT;
@@ -1883,7 +1884,7 @@ static void io_sq_wq_submit_work(struct work_struct *work)
1883
1884
kfree(sqe);
1885
1886
/* req from defer and link list needn't decrease async cnt */
- if (req->flags & (REQ_F_IO_DRAINED | REQ_F_LINK_DONE))
1887
+ if (flags & (REQ_F_IO_DRAINED | REQ_F_LINK_DONE))
1888
goto out;
1889
1890
if (!async_list)
0 commit comments