mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 02:25:00 -05:00
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>
This commit is contained in:
parent
915b3dde9b
commit
e149bd742b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue