From: Theodore Ts'o Date: Tue, 17 Feb 2009 15:58:26 +0000 (-0500) Subject: jbd2: Add barrier not supported test to journal_wait_on_commit_record X-Git-Tag: v2.6.27.19~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd8a233eea26fc037aaf5cccc2bb9c5b814740a4;p=pandora-kernel.git jbd2: Add barrier not supported test to journal_wait_on_commit_record (cherry picked from commit fd98496f467b3d26d05ab1498f41718b5ef13de5) Xen doesn't report that barriers are not supported until buffer I/O is reported as completed, instead of when the buffer I/O is submitted. Add a check and a fallback codepath to journal_wait_on_commit_record() to detect this case, so that attempts to mount ext4 filesystems on LVM/devicemapper devices on Xen guests don't blow up with an "Aborting journal on device XXX"; "Remounting filesystem read-only" error. Thanks to Andreas Sundstrom for reporting this issue. Signed-off-by: "Theodore Ts'o" Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed