ceph: fix -EOLDSNAPC handling
authorYan, Zheng <zyan@redhat.com>
Mon, 14 Aug 2017 02:50:50 +0000 (10:50 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:47 +0000 (19:56 +0200)
commita5cd74ad388c1318554e24820b77ce335a27e0ef
tree97781934d5c34dd1b6dec0afb6867e7939004c45
parent5d37ca1480a70f437e4c425ee5723c760cf6afac
ceph: fix -EOLDSNAPC handling

Need to drop cap reference before retry. Besides, it's better to
redo file write checks for each retry because we re-lock inode.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c