ceph: fix ceph_get_caps() interruption
authorYan, Zheng <zyan@redhat.com>
Thu, 22 Dec 2016 08:05:43 +0000 (16:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:43 +0000 (08:24 +0100)
commit8934e069674a09c4ce4a0858e1aee5474784df92
tree56a16108b9b39f7b8a2abddac97f52a98bcdb885
parent48baa924108e124bc5221ca73b72562a8479c11c
ceph: fix ceph_get_caps() interruption

commit 6e09d0fb64402cec579f029ca4c7f39f5c48fc60 upstream.

Commit 5c341ee32881 ("ceph: fix scheduler warning due to nested
blocking") causes infinite loop when process is interrupted.  Fix it.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/caps.c