Home
last modified time | relevance | path

Searched hist:c1944fedd8c492ce1c1a99ca9064dcc7bafa80e9 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/ceph/
H A Dsuper.hdiff c1944fedd8c492ce1c1a99ca9064dcc7bafa80e9 Sun Jan 29 08:15:47 CST 2017 Yan, Zheng <zyan@redhat.com> ceph: avoid calling ceph_renew_caps() infinitely

__ceph_caps_mds_wanted() ignores caps from stale session. So the
return value of __ceph_caps_mds_wanted() can keep the same across
ceph_renew_caps(). This causes try_get_cap_refs() to keep calling
ceph_renew_caps(). The fix is ignore the session valid check for
the try_get_cap_refs() case. If session is stale, just let the
caps requester sleep.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
H A Dcaps.cdiff c1944fedd8c492ce1c1a99ca9064dcc7bafa80e9 Sun Jan 29 08:15:47 CST 2017 Yan, Zheng <zyan@redhat.com> ceph: avoid calling ceph_renew_caps() infinitely

__ceph_caps_mds_wanted() ignores caps from stale session. So the
return value of __ceph_caps_mds_wanted() can keep the same across
ceph_renew_caps(). This causes try_get_cap_refs() to keep calling
ceph_renew_caps(). The fix is ignore the session valid check for
the try_get_cap_refs() case. If session is stale, just let the
caps requester sleep.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
H A Dfile.cdiff c1944fedd8c492ce1c1a99ca9064dcc7bafa80e9 Sun Jan 29 08:15:47 CST 2017 Yan, Zheng <zyan@redhat.com> ceph: avoid calling ceph_renew_caps() infinitely

__ceph_caps_mds_wanted() ignores caps from stale session. So the
return value of __ceph_caps_mds_wanted() can keep the same across
ceph_renew_caps(). This causes try_get_cap_refs() to keep calling
ceph_renew_caps(). The fix is ignore the session valid check for
the try_get_cap_refs() case. If session is stale, just let the
caps requester sleep.

Signed-off-by: Yan, Zheng <zyan@redhat.com>