diff mbox series

[1/5] aio: use assigned completion handler

Message ID 20181117235317.7366-2-axboe@kernel.dk (mailing list archive)
State New, archived
Headers show
Series Support for polled aio | expand

Commit Message

Jens Axboe Nov. 17, 2018, 11:53 p.m. UTC
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().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
 fs/aio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig Nov. 19, 2018, 8:06 a.m. UTC | #1
On Sat, Nov 17, 2018 at 04:53:13PM -0700, Jens Axboe wrote:
> 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().
> 
> Signed-off-by: Jens Axboe <axboe@kernel.dk>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/fs/aio.c b/fs/aio.c
index 301e6314183b..b36691268b6c 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1484,7 +1484,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);
 	}
 }