diff options
author | Jeff Layton <jlayton@kernel.org> | 2020-04-03 13:09:07 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-06-01 13:22:53 +0200 |
commit | 829ad4db952aac86d11a62647d2516ab46c2fcd2 (patch) | |
tree | 3ff8e570a00668a6e17a0f27d3b5ced8a4dd4089 /fs/qnx4 | |
parent | d67c72e6cce99eab5ab9d62c599e33e5141ff8b4 (diff) | |
download | linux-829ad4db952aac86d11a62647d2516ab46c2fcd2.tar.bz2 |
ceph: ceph_kick_flushing_caps needs the s_mutex
The mdsc->cap_dirty_lock is not held while walking the list in
ceph_kick_flushing_caps, which is not safe.
ceph_early_kick_flushing_caps does something similar, but the
s_mutex is held while it's called and I think that guards against
changes to the list.
Ensure we hold the s_mutex when calling ceph_kick_flushing_caps,
and add some clarifying comments.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/qnx4')
0 files changed, 0 insertions, 0 deletions