aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorKazuya Mio <[email protected]>2011-12-01 07:51:07 +0000
committerAl Viro <[email protected]>2012-01-17 21:38:47 +0000
commite1616300a20c80396109c1cf013ba9a36055a3da (patch)
tree97d4bcef12fddf1dc1cdfd22bf226eb36850c6e6 /lib/timerqueue.c
parentMerge branch 'x86/rdrand' of git://git.kernel.org/pub/scm/linux/kernel/git/ti... (diff)
downloadkernel-e1616300a20c80396109c1cf013ba9a36055a3da.tar.gz
kernel-e1616300a20c80396109c1cf013ba9a36055a3da.zip
wake up s_wait_unfrozen when ->freeze_fs fails
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]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions