From: Yan, Zheng Date: Sun, 21 Jul 2013 12:25:26 +0000 (+0800) Subject: ceph: wake up writer if vmtruncate work get blocked X-Git-Tag: v3.12-rc1~90^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85ce127a9adf5ab9e9d57ddf64c858927d5e546d;p=pandora-kernel.git ceph: wake up writer if vmtruncate work get blocked To write data, the writer first acquires the i_mutex, then try getting caps. The writer may sleep while holding the i_mutex. If the MDS revokes Fb cap in this case, vmtruncate work can't do its job because i_mutex is locked. We should wake up the writer and let it truncate the pages. Signed-off-by: Yan, Zheng Reviewed-by: Sage Weil --- Reading git-diff-tree failed