ceph: keep i_snap_realm while there are writers
authorYan, Zheng <zyan@redhat.com>
Mon, 23 Mar 2015 12:12:20 +0000 (20:12 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2015 15:55:35 +0000 (18:55 +0300)
when reconnecting to MDS is denied, we remove session caps
forcibly. But it's possible there are ongoing write, the
write code needs to reference i_snap_realm. So if there are
ongoing write, we keep i_snap_realm.

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

diff --cc fs/ceph/caps.c
Simple merge