ceph: fix infinite loop in get_quota_realm()
authorYan, Zheng <zyan@redhat.com>
Fri, 31 May 2019 12:19:18 +0000 (20:19 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:42 +0000 (14:01 +0200)
commit2ef5df1abe6777b463cdfec20211d9846b116d24
treec4a1d3c55f679f0169b302485ff39379c43177a7
parentac6713ccb5a6d13b59a2e3fda4fb049a2c4e0af2
ceph: fix infinite loop in get_quota_realm()

get_quota_realm() enters infinite loop if quota inode has no caps.
This can happen after client gets evicted.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Luis Henriques <lhenriques@suse.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/quota.c