Jeff Layton 4c18347238 ceph: take reference to req->r_parent at point of assignment
Currently, we set the r_parent pointer but then don't take a reference
to it until we submit the request. If we end up freeing the req before
that point, then we'll do a iput when we shouldn't.

Instead, take the inode reference in the callers, so that it's always
safe to call ceph_mdsc_put_request on the req, even before submission.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luis Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-06-29 00:15:52 +02:00
..
2021-01-24 14:27:20 +01:00
2021-06-29 00:15:51 +02:00
2021-06-29 00:15:52 +02:00
2021-06-29 00:15:51 +02:00
2021-06-29 00:15:52 +02:00
2020-06-01 13:22:51 +02:00
2021-06-29 00:15:51 +02:00
2021-06-29 00:15:52 +02:00
2021-06-29 00:15:52 +02:00
2021-06-29 00:15:52 +02:00