diff options
author | Mike Marshall <hubcap@omnibond.com> | 2019-02-05 20:13:35 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-06 16:04:22 +0100 |
commit | ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67 (patch) | |
tree | 3348b459a59ea9065f1ad4fdbd916e66e80527fa /fs | |
parent | ide: ensure atapi sense request aren't preempted (diff) | |
download | linux-ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67.tar.xz linux-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')
-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) |