Re: [PATCH 1/2] fs: Abstract calling the kiocb completion function

2020-07-08 Thread Jens Axboe
On 7/8/20 4:40 PM, Matthew Wilcox wrote: > On Wed, Jul 08, 2020 at 04:37:21PM -0600, Jens Axboe wrote: >> On 7/8/20 4:26 PM, Matthew Wilcox (Oracle) wrote: >>> diff --git a/crypto/af_alg.c b/crypto/af_alg.c >>> index b1cd3535c525..590dbbcd0e9f 100644 >>> --- a/crypto/af_alg.c >>> +++ b/crypto/af_al

Re: [PATCH 1/2] fs: Abstract calling the kiocb completion function

2020-07-08 Thread Matthew Wilcox
On Wed, Jul 08, 2020 at 04:37:21PM -0600, Jens Axboe wrote: > On 7/8/20 4:26 PM, Matthew Wilcox (Oracle) wrote: > > diff --git a/crypto/af_alg.c b/crypto/af_alg.c > > index b1cd3535c525..590dbbcd0e9f 100644 > > --- a/crypto/af_alg.c > > +++ b/crypto/af_alg.c > > @@ -1045,7 +1045,7 @@ void af_alg_as

Re: [PATCH 1/2] fs: Abstract calling the kiocb completion function

2020-07-08 Thread Jens Axboe
On 7/8/20 4:26 PM, Matthew Wilcox (Oracle) wrote: > diff --git a/crypto/af_alg.c b/crypto/af_alg.c > index b1cd3535c525..590dbbcd0e9f 100644 > --- a/crypto/af_alg.c > +++ b/crypto/af_alg.c > @@ -1045,7 +1045,7 @@ void af_alg_async_cb(struct crypto_async_request *_req, > int err) > af_alg_fre

[PATCH 1/2] fs: Abstract calling the kiocb completion function

2020-07-08 Thread Matthew Wilcox (Oracle)
Introduce complete_kiocb() to abstract the calls to ->ki_complete(). Signed-off-by: Matthew Wilcox (Oracle) --- crypto/af_alg.c| 2 +- drivers/block/loop.c | 2 +- drivers/usb/gadget/function/f_fs.c | 2 +- drivers/usb/gadget/legacy/inode.c | 4 ++-- fs/aio.c