ceph: fix special error code in ceph_try_get_caps()
authorWu Bo <wubo40@huawei.com>
Wed, 29 Apr 2020 02:01:55 +0000 (10:01 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 May 2020 17:14:23 +0000 (19:14 +0200)
commit7d8976afad18d4548ee472e526b126ab74012807
treed68ea4bf500c7c264df98b717325086843da1a60
parent0fa8263367db9287aa0632f96c1a5f93cc478150
ceph: fix special error code in ceph_try_get_caps()

There are 3 speical error codes: -EAGAIN/-EFBIG/-ESTALE.
After calling try_get_cap_refs, ceph_try_get_caps test for the
-EAGAIN twice. Ensure that it tests for -ESTALE instead.

Signed-off-by: Wu Bo <wubo40@huawei.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c