]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix false "failing to respond to cache pressure" warning 11861/head
authorYan, Zheng <zyan@redhat.com>
Sat, 8 Oct 2016 07:16:40 +0000 (15:16 +0800)
committerLoic Dachary <ldachary@redhat.com>
Wed, 9 Nov 2016 14:13:42 +0000 (15:13 +0100)
commit84cfd39b89f791426eb2d12f6e8f9780464f8d2d
treeacf2766b40ede3855fa28dea7d03ff372d162fad
parent0c38c464fff2280a6345b470f1c83aa6229776cc
mds: fix false "failing to respond to cache pressure" warning

the false warning happens in following sequence of events
- MDS has cache pressure, sends recall state messages to clients
- Client does not trim as many caps as MDS expected. So MDS
  does not reset session->recalled_at
- MDS no longer has cache pressure, it stop sending recall state
  messages to clients.
- Client does not release its caps. So session->recalled_at in
  MDS keeps unchanged

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 51c926a74e5ef478c11ccbcf11c351aa520dde2a)
src/mds/Beacon.cc
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/SessionMap.cc
src/mds/SessionMap.h