From: Christoph Hellwig Date: Mon, 2 Jul 2012 10:00:04 +0000 (-0400) Subject: xfs: prevent recursion in xfs_buf_iorequest X-Git-Tag: v3.6-rc1~42^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08023d6dbe840dc4271805a9ea376fcbdee9f744;p=pandora-kernel.git xfs: prevent recursion in xfs_buf_iorequest If the b_iodone handler is run in calling context in xfs_buf_iorequest we can run into a recursion where xfs_buf_iodone_callbacks keeps calling back into xfs_buf_iorequest because an I/O error happened, which keeps calling back into xfs_buf_iorequest. This chain will usually not take long because the filesystem gets shut down because of log I/O errors, but even over a short time it can cause stack overflows if run on the same context. As a short term workaround make sure we always call the iodone handler in workqueue context. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Ben Myers --- Reading git-diff-tree failed