ceph: avoid block operation when !TASK_RUNNING (ceph_get_caps)
authorYan, Zheng <zyan@redhat.com>
Fri, 9 Jan 2015 07:56:18 +0000 (15:56 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:38 +0000 (13:31 +0300)
commitc4d4a582c538e890f09c338bc3063c28dfdc9ae5
tree2d6d7d75b857efcda89931866481057660dedaae
parentd3383a8e37f802818cde4cb489bb0735db637cf0
ceph: avoid block operation when !TASK_RUNNING (ceph_get_caps)

we should not do block operation in wait_event_interruptible()'s condition
check function, but reading inline data can block. so move the read inline
data code to ceph_get_caps()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c