]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix flushing caps check
authorYan, Zheng <zyan@redhat.com>
Mon, 11 Jan 2016 12:51:17 +0000 (20:51 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 13 Jan 2016 07:28:54 +0000 (15:28 +0800)
commitf57e6162c7c3fea31b01568f90a76710f97943ae
tree5131437ec693963208595a007181f2f18d9040ce
parentaf1a3b2afffc3a8f9f0c886c70425d57cf7d7012
mds: fix flushing caps check

Client may flush and drop caps at the same time. If client need to
send cap reconnect before the caps get flushed. The issued caps in
the cap reconnect does not include the flushing caps. When choosing
lock states we should consider the flushing caps.

The check for caps haven't been flushed is wrong, fix it.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/Locker.cc