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)
committerNeilBrown <neilb@suse.com>
Fri, 2 Oct 2015 07:23:44 +0000 (17:23 +1000)
commit66eefe5de11db1e0d8f2edc3880d50e7c36a9d43
treef387b71a4c0eeaf506fb1cba79e9d6b7413dbbd2
parent36707bb2e7c6730d79d6cdc6d1475d3d7e94c518
md/raid0: apply base queue limits *before* disk_stack_limits

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.")
Cc: stable@vger.kernel.org (v2.6.35+ - please apply with 199dc6ed5179).
Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid0.c