summaryrefslogtreecommitdiff
path: root/fs/aio.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-07 00:27:13 +0300
committerJens Axboe <axboe@kernel.dk>2018-12-18 18:29:58 +0300
commitbc9bff61624ac33b7c95861abea1af24ee7a94fc (patch)
tree7bfc17c1175204e2116b3f041e4c16581333bec8 /fs/aio.c
parent4b9254328254bed12a4ac449cdff2c332e630837 (diff)
downloadlinux-bc9bff61624ac33b7c95861abea1af24ee7a94fc.tar.xz
aio: use assigned completion handler
We know this is a read/write request, but in preparation for having different kinds of those, ensure that we call the assigned handler instead of assuming it's aio_complete_rq(). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 09eeb6cbbe15..6f32d30d7f45 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1492,7 +1492,7 @@ static inline void aio_rw_done(struct kiocb *req, ssize_t ret)
ret = -EINTR;
/*FALLTHRU*/
default:
- aio_complete_rw(req, ret, 0);
+ req->ki_complete(req, ret, 0);
}
}