]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md/raid0: apply base queue limits *before* disk_stack_limits
authorNeilBrown <neilb@suse.com>
Thu, 24 Sep 2015 05:47:47 +0000 (15:47 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:17 +0000 (14:43 -0700)
commit6298be5ee4f9445a0d5003adc32a2d0967e336b8
treed3969584719738d93e18b74fe88a545a9699a521
parentabb5e1983c9088f1d889b16338bc0a05fa936eea
md/raid0: apply base queue limits *before* disk_stack_limits

commit 66eefe5de11db1e0d8f2edc3880d50e7c36a9d43 upstream.

Calling e.g. blk_queue_max_hw_sectors() after calls to
disk_stack_limits() discards the settings determined by
disk_stack_limits().
So we need to make those calls first.

Fixes: 199dc6ed5179 ("md/raid0: update queue parameter in a safer location.")
Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid0.c