diff options
author | Hao Xu <haoxu@linux.alibaba.com> | 2021-06-27 23:48:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-30 22:15:40 +0200 |
commit | e149bd742b2db6a63fc078b1ea6843dc9b22678d (patch) | |
tree | fbcd530714fe5aa73301d4d57e9e639b36a3bcb1 /fs/io_uring.c | |
parent | io_uring: spin in iopoll() only when reqs are in a single queue (diff) | |
download | linux-e149bd742b2db6a63fc078b1ea6843dc9b22678d.tar.xz linux-e149bd742b2db6a63fc078b1ea6843dc9b22678d.zip |
io_uring: code clean for kiocb_done()
A simple code clean for kiocb_done()
Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 67099bb99a02..e55b21fc0ab2 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2782,7 +2782,7 @@ static void kiocb_done(struct kiocb *kiocb, ssize_t ret, if (req->flags & REQ_F_CUR_POS) req->file->f_pos = kiocb->ki_pos; - if (ret >= 0 && kiocb->ki_complete == io_complete_rw) + if (ret >= 0 && check_reissue) __io_complete_rw(req, ret, 0, issue_flags); else io_rw_done(kiocb, ret); |