On Thu, May 10, 2012 at 01:36:31PM +0200, maximilian attems wrote: > From: Kazuya Mio <[email protected]> > > dd slept infinitely when fsfeeze failed because of EIO. > To fix this problem, if ->freeze_fs fails, freeze_super() wakes up > the tasks waiting for the filesystem to become unfrozen. > > When s_frozen isn't SB_UNFROZEN in __generic_file_aio_write(), > the function sleeps until FITHAW ioctl wakes up s_wait_unfrozen. > > However, if ->freeze_fs fails, s_frozen is set to SB_UNFROZEN and then > freeze_super() returns an error number. In this case, FITHAW ioctl returns > EINVAL because s_frozen is already SB_UNFROZEN. There is no way to wake up > s_wait_unfrozen, so __generic_file_aio_write() sleeps infinitely. > > Signed-off-by: Kazuya Mio <[email protected]> > Signed-off-by: Al Viro <[email protected]> > --- > Please consider for 3.2, seems to have been missed out there. > Shipps with >= 3.3 linux. Can be triggered with dd testcase.
<formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly. </formletter> -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
