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)
commitd3383a8e37f802818cde4cb489bb0735db637cf0
treed4c662fa1a495440c7e6f5e9c851e2562287f930
parent73e39e4dba828fe1affefe6290456623319707bd
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