]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5f789a90be6759cff402a26b73c16d737b6ecb9
tree2d6d7d75b857efcda89931866481057660dedaae
parent463fe658a1f768d5d2317bc6b3744607f80d865c
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