]> 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)
commit463fe658a1f768d5d2317bc6b3744607f80d865c
treed4c662fa1a495440c7e6f5e9c851e2562287f930
parent147cc0b1bf0ae22ab07fd5fc7d226e0432bcaa1e
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