]> git.baikalelectronics.ru Git - kernel.git/commit
md faulty: use disk_stack_limits()
authorEric Sandeen <sandeen@redhat.com>
Sun, 21 Oct 2012 23:44:55 +0000 (10:44 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 21 Oct 2012 23:44:55 +0000 (10:44 +1100)
commit0424992fe2b7baff4f23d67b622ef5ed9a879fec
treef77875630f9081d381838db0ce82aa1e6686e3ff
parent8de8c466e1ba9c428cd1485a5d8d9811a9c40a3d
md faulty: use disk_stack_limits()

in:
122da064 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 <sandeen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/faulty.c