]> 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)
commit1be6dba0a9335df48a6b5cba867464c31ccad888
tree2d6d7d75b857efcda89931866481057660dedaae
parent83d9d0d3f795b591e6448b7f6ad59342d9262a2a
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