aio: use iocb_put() instead of open coding it
authorJens Axboe <axboe@kernel.dk>
Sun, 25 Nov 2018 04:33:09 +0000 (21:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:58:58 +0000 (09:58 +0200)
commit4d677689742ab60d5be46e20708276368564427a
treea99ca5ee6836b104b087f741ae3678c312882aa6
parentef529eead8cfc11c051b90d239e7137f7141ea94
aio: use iocb_put() instead of open coding it

commit 71ebc6fef0f53459f37fb39e1466792232fa52ee upstream.

Replace the percpu_ref_put() + kmem_cache_free() with a call to
iocb_put() instead.

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>
fs/aio.c