]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: potential adjust failure in lru_expire 19627/head
authorroot <tdd108128@163.com>
Fri, 1 Dec 2017 07:26:00 +0000 (15:26 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Thu, 21 Dec 2017 10:04:38 +0000 (19:04 +0900)
commit6eea75200fed82a2c5513795a79834527090957c
tree6d1f6f9b7f5bd3d31f5724135d9a56edf1797b1f
parentb3fd46810c01be00ebf26b9893d8bab107ee93f2
cephfs: potential adjust failure in lru_expire

Fix: the first adjust is no needed,it will never take real effect.
     the second 'adjust' may never get the chance to be executed
     suppose we can reach the second 'adjust', it will crash because the bottom list is empty now.

Fixes: http://tracker.ceph.com/issues/22458
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
(cherry picked from commit 590c39eab02e64de7393c35ae7a9efb6ce626770)
src/include/lru.h