aio: use assigned completion handler
authorJens Axboe <axboe@kernel.dk>
Tue, 6 Nov 2018 21:27:13 +0000 (14:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Dec 2018 15:29:58 +0000 (08:29 -0700)
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>
fs/aio.c

index 09eeb6c..6f32d30 100644 (file)
--- 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);
        }
 }