From: Alasdair G Kergon Date: Thu, 2 Apr 2009 18:55:28 +0000 (+0100) Subject: dm table: fix upgrade mode race X-Git-Tag: v2.6.30-rc1~230^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=570b9d968bf9b16974252ef7cbce73fa6dac34f3;p=pandora-kernel.git dm table: fix upgrade mode race upgrade_mode() sets bdev to NULL temporarily, and does not have any locking to exclude anything from seeing that NULL. In dm_table_any_congested() bdev_get_queue() can dereference that NULL and cause a reported oops. Fix this by not changing that field during the mode upgrade. Cc: stable@kernel.org Cc: Neil Brown Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed