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)
commitdb40cc1702d6a7049740d269cf6c1a42f979c7a7
tree9e37f60353da7f0e04afc0aa5b775244da5f6345
parent3ef650d3989677bd460497f9c3b0d58caaba0116
ceph: keep i_snap_realm while there are writers

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