From: Eric Sandeen Date: Sun, 21 Oct 2012 23:44:55 +0000 (+1100) Subject: md faulty: use disk_stack_limits() X-Git-Tag: v3.7-rc4~20^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be1fecd7ee61b5a6d2b2e94b052b8a070b946ef;p=pandora-kernel.git md faulty: use disk_stack_limits() in: fe86cdce block: do not artificially constrain max_sectors for stacking drivers max_sectors defaults to UINT_MAX. md faulty wasn't using disk_stack_limits(), so inherited this large value as well. This triggered a bug in XFS when stressed over md_faulty, when a very large bio_alloc() failed. That was on an older kernel, and I can't reproduce exactly the same thing upstream, but I think the fix is appropriate in any case. Thanks to Mike Snitzer for pointing out the problem. Signed-off-by: Eric Sandeen Signed-off-by: NeilBrown --- Reading git-diff-tree failed