summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2019-02-05 20:13:35 +0100
committerJens Axboe <axboe@kernel.dk>2019-02-06 16:04:22 +0100
commitec51f8ee1e63498e9f521ec0e5a6d04622bb2c67 (patch)
tree3348b459a59ea9065f1ad4fdbd916e66e80527fa /fs
parentide: ensure atapi sense request aren't preempted (diff)
downloadlinux-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/aio.c b/fs/aio.c
index b906ff70c90f..aaaaf4d12c73 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -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)