ceph: wake up 'safe' waiters when unregistering request
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 31 Oct 2013 01:10:47 +0000 (09:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:07 +0000 (12:25 -0800)
commitb419588352e9a826082d7784dd3398c490314eab
tree0a016505840b695422dce4838e7e1ee8e8be03d9
parent5bb822258878721ca995a7015c6e076cc96be849
ceph: wake up 'safe' waiters when unregistering request

commit fc55d2c9448b34218ca58733a6f51fbede09575b upstream.

We also need to wake up 'safe' waiters if error occurs or request
aborted. Otherwise sync(2)/fsync(2) may hang forever.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/mds_client.c