diff options
| author | Jeff Layton <[email protected]> | 2019-04-24 14:05:39 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2019-05-07 17:22:38 +0000 |
| commit | 488f5284e29b2dbb7c224d51b56fc20348e73735 (patch) | |
| tree | 78d4778770179e78350624efff6841ff5dd41d0e /lib/test_stackinit.c | |
| parent | ceph: simplify arguments and return semantics of try_get_cap_refs (diff) | |
| download | kernel-488f5284e29b2dbb7c224d51b56fc20348e73735.tar.gz kernel-488f5284e29b2dbb7c224d51b56fc20348e73735.zip | |
ceph: just call get_session in __ceph_lookup_mds_session
I originally thought there was a potential race here, but the fact
that this is called with the mdsc->mutex held, ensures that the
last reference to the session can't be put here.
Still, it's clearer to just return the value from get_session here,
and may prevent a bug later if we ever rework this code to be less
reliant on mutexes.
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: "Yan, Zheng" <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
