summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-06 14:27:13 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-02 09:58:58 +0200
commitb3373253f0bab538a7521537dfcb73e731b3d732 (patch)
tree6e6f7e8320e6ad1fbc1df08bcd3566d10799f538
parent9101cbe70ef64c7f35fb75552005a3a696cc288e (diff)
downloadlinux-stable-b3373253f0bab538a7521537dfcb73e731b3d732.tar.gz
linux-stable-b3373253f0bab538a7521537dfcb73e731b3d732.tar.bz2
linux-stable-b3373253f0bab538a7521537dfcb73e731b3d732.zip
aio: use assigned completion handler
commit bc9bff61624ac33b7c95861abea1af24ee7a94fc upstream. 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> Cc: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--fs/aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 78aa249070b1..3df3fb0678e5 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);
}
}