Commit 5dcf877f authored by Stefan Bühler's avatar Stefan Bühler Committed by Jens Axboe

req->error only used for iopoll

No need to set it in io_poll_add; io_poll_complete doesn't use it to set
the result in the CQE.
Signed-off-by: default avatarStefan Bühler <source@stbuehler.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9b402849
...@@ -333,7 +333,7 @@ struct io_kiocb { ...@@ -333,7 +333,7 @@ struct io_kiocb {
#define REQ_F_IO_DRAIN 32 /* drain existing IO first */ #define REQ_F_IO_DRAIN 32 /* drain existing IO first */
#define REQ_F_IO_DRAINED 64 /* drain done */ #define REQ_F_IO_DRAINED 64 /* drain done */
u64 user_data; u64 user_data;
u32 error; u32 error; /* iopoll result from callback */
u32 sequence; u32 sequence;
struct work_struct work; struct work_struct work;
...@@ -1520,7 +1520,6 @@ static int io_poll_add(struct io_kiocb *req, const struct io_uring_sqe *sqe) ...@@ -1520,7 +1520,6 @@ static int io_poll_add(struct io_kiocb *req, const struct io_uring_sqe *sqe)
spin_unlock(&poll->head->lock); spin_unlock(&poll->head->lock);
} }
if (mask) { /* no async, we'd stolen it */ if (mask) { /* no async, we'd stolen it */
req->error = mangle_poll(mask);
ipt.error = 0; ipt.error = 0;
io_poll_complete(ctx, req, mask); io_poll_complete(ctx, req, mask);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment