Skip to content

Commit 932a9b5

Browse files
jtlaytonidryomov
authored andcommitted
ceph: properly put ceph_string reference after async create attempt
The reference acquired by try_prep_async_create is currently leaked. Ensure we put it. Cc: [email protected] Fixes: 9a8d03c ("ceph: attempt to do async create when possible") Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: Ilya Dryomov <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 89d43d0 commit 932a9b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/ceph/file.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,10 @@ int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
750750
restore_deleg_ino(dir, req->r_deleg_ino);
751751
ceph_mdsc_put_request(req);
752752
try_async = false;
753+
ceph_put_string(rcu_dereference_raw(lo.pool_ns));
753754
goto retry;
754755
}
756+
ceph_put_string(rcu_dereference_raw(lo.pool_ns));
755757
goto out_req;
756758
}
757759
}

0 commit comments

Comments
 (0)