[lkml]   [2011]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[43/53] xfs: fix error handling for synchronous writes
3.0-stable review patch.  If anyone has any objections, please let me know.


From: Christoph Hellwig <>

If removed storage while synchronous buffer write underway,
"xfslogd" hangs.

Detailed log

Related work bfc60177f8ab509bc225becbb58f7e53a0e33e81
"xfs: fix error handling for synchronous writes"

Given that xfs_bwrite actually does the shutdown already after
waiting for the b_iodone completion and given that we actually
found that calling xfs_force_shutdown from inside
xfs_buf_iodone_callbacks was a major contributor the problem
it better to drop this call.

Signed-off-by: Ajeet Yadav <>
Reviewed-by: Christoph Hellwig <>
Signed-off-by: Alex Elder <>
Signed-off-by: Greg Kroah-Hartman <>
fs/xfs/xfs_buf_item.c | 1 -
1 file changed, 1 deletion(-)

--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -1023,7 +1023,6 @@ xfs_buf_iodone_callbacks(

trace_xfs_buf_error_relse(bp, _RET_IP_);
- xfs_force_shutdown(mp, SHUTDOWN_META_IO_ERROR);


 \ /
  Last update: 2011-11-23 01:51    [W:0.097 / U:10.664 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site