Searched hist:"829 ad4db952aac86d11a62647d2516ab46c2fcd2" (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/fs/ceph/ |
H A D | mds_client.h | diff 829ad4db952aac86d11a62647d2516ab46c2fcd2 Fri Apr 03 12:09:07 CDT 2020 Jeff Layton <jlayton@kernel.org> 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>
|
H A D | super.h | diff 829ad4db952aac86d11a62647d2516ab46c2fcd2 Fri Apr 03 12:09:07 CDT 2020 Jeff Layton <jlayton@kernel.org> 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>
|
H A D | caps.c | diff 829ad4db952aac86d11a62647d2516ab46c2fcd2 Fri Apr 03 12:09:07 CDT 2020 Jeff Layton <jlayton@kernel.org> 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>
|
H A D | mds_client.c | diff 829ad4db952aac86d11a62647d2516ab46c2fcd2 Fri Apr 03 12:09:07 CDT 2020 Jeff Layton <jlayton@kernel.org> 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>
|