]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: avoid block operation when !TASK_RUNNING (ceph_mdsc_sync)
authorYan, Zheng <zyan@redhat.com>
Thu, 8 Jan 2015 13:30:12 +0000 (21:30 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:38 +0000 (13:31 +0300)
commit83d9d0d3f795b591e6448b7f6ad59342d9262a2a
treed4c662fa1a495440c7e6f5e9c851e2562287f930
parente232ed8ba2a7da6abe2fefc3e22f06d0a6c6998e
ceph: avoid block operation when !TASK_RUNNING (ceph_mdsc_sync)

check_cap_flush() calls mutex_lock(), which may block. So we can't
use it as condition check function for wait_event();

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