]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm_calculate_queue_limits will first reset the provided limits to
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 13 Feb 2013 22:42:39 +0000 (09:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 13 Feb 2013 22:42:39 +0000 (09:42 +1100)
commit0c5f186653c22bdf4b6691347a26157c2b287416
treec64dd510fea543541197bfb1c5caf74954a1b16b
parentce457e8812cad3e740f2c4bc67a4ca510dd4d9ee
dm_calculate_queue_limits will first reset the provided limits to
defaults using blk_set_stacking_limits; whereby defeating the purpose of
retaining the original live table's limits -- as was intended via commit
3ae706561637331aa578e52bb89ecbba5edcb7a9 ("dm: retain table limits when
swapping to new table with no devices").

Fix this improper limits initialization (in the no data devices case) by
avoiding the call to dm_calculate_queue_limits.

[patch header revised by Mike Snitzer]

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # v3.6+
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c