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>
This commit is contained in:
Yan, Zheng 2015-01-08 21:30:12 +08:00 • committed by Ilya Dryomov
commit d3383a8e37
2 changed files with 35 additions and 18 deletions