ceph: unify cap flush and snapcap flush
authorYan, Zheng <zyan@redhat.com>
Mon, 4 Jul 2016 10:06:41 +0000 (18:06 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 28 Jul 2016 01:00:42 +0000 (03:00 +0200)
commit0e2943878942aee7100c94d0d40c49087dac12cb
tree8611ba2813ab13fd5a36a70dbd5005b29818d40e
parente4500b5e35c213e0f97be7cb69328c0877203a79
ceph: unify cap flush and snapcap flush

This patch includes following changes
- Assign flush tid to snapcap flush
- Remove session's s_cap_snaps_flushing list. Add inode to session's
  s_cap_flushing list instead. Inode is removed from the list when
  there is no pending snapcap flush or cap flush.
- make __kick_flushing_caps() re-send both snapcap flushes and cap
  flushes.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/snap.c
fs/ceph/super.h