summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorYan, Zheng2015-03-24 04:36:08 +0100
committerIlya Dryomov2015-04-20 17:55:36 +0200
commit571ade336ac89f5db602f7df992152e4f4b945bc (patch)
treef10c4a63d4f5c624c9a6ddcc4a0ca941583e3d30 /fs/ceph/mds_client.c
parentceph: keep i_snap_realm while there are writers (diff)
downloadkernel-qcow2-linux-571ade336ac89f5db602f7df992152e4f4b945bc.tar.gz
kernel-qcow2-linux-571ade336ac89f5db602f7df992152e4f4b945bc.tar.xz
kernel-qcow2-linux-571ade336ac89f5db602f7df992152e4f4b945bc.zip
ceph: don't mark dirty caps when there is no auth cap
No i_auth_cap means reconnecting to MDS was denied. So don't add new dirty caps. Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 0122491d947c..0cfc2d163549 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1098,7 +1098,7 @@ static int remove_session_caps_cb(struct inode *inode, struct ceph_cap *cap,
cap, ci, &ci->vfs_inode);
spin_lock(&ci->i_ceph_lock);
__ceph_remove_cap(cap, false);
- if (!__ceph_is_any_real_caps(ci)) {
+ if (!ci->i_auth_cap) {
struct ceph_mds_client *mdsc =
ceph_sb_to_client(inode->i_sb)->mdsc;