aboutsummaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorStefan Bühler <source@stbuehler.de>2019-05-01 13:53:36 +0200
committerJens Axboe <axboe@kernel.dk>2019-05-02 14:08:54 -0600
commit5dcf877fb13f3c6a8ba0777ef766c4af32df725d (patch)
tree6545b5d8856965c0dec28d657764cfc14313339f /fs/io_uring.c
parentio_uring: add support for eventfd notifications (diff)
downloadlinux-dev-5dcf877fb13f3c6a8ba0777ef766c4af32df725d.tar.xz
linux-dev-5dcf877fb13f3c6a8ba0777ef766c4af32df725d.zip
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: Stefan Bühler <source@stbuehler.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 2a46de56d05c..d91cbd53d3ca 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -333,7 +333,7 @@ struct io_kiocb {
#define REQ_F_IO_DRAIN 32 /* drain existing IO first */
#define REQ_F_IO_DRAINED 64 /* drain done */
u64 user_data;
- u32 error;
+ u32 error; /* iopoll result from callback */
u32 sequence;
struct work_struct work;
@@ -1520,7 +1520,6 @@ static int io_poll_add(struct io_kiocb *req, const struct io_uring_sqe *sqe)
spin_unlock(&poll->head->lock);
}
if (mask) { /* no async, we'd stolen it */
- req->error = mangle_poll(mask);
ipt.error = 0;
io_poll_complete(ctx, req, mask);
}