diff options
author | Mike Marshall <hubcap@omnibond.com> | 2019-02-05 14:13:35 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-06 08:04:22 -0700 |
commit | ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67 (patch) | |
tree | 3348b459a59ea9065f1ad4fdbd916e66e80527fa /fs/aio.c | |
parent | 9a6d5488002fdca7134a0e59b0ae252f61042810 (diff) | |
download | lwn-ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67.tar.gz lwn-ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67.zip |
aio: initialize kiocb private in case any filesystems expect it.
A recent optimization had left private uninitialized.
Fixes: 2bc4ca9bb600 ("aio: don't zero entire aio_kiocb aio_get_req()")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1436,6 +1436,7 @@ static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) if (unlikely(!req->ki_filp)) return -EBADF; req->ki_complete = aio_complete_rw; + req->private = NULL; req->ki_pos = iocb->aio_offset; req->ki_flags = iocb_flags(req->ki_filp); if (iocb->aio_flags & IOCB_FLAG_RESFD) |