diff options
author | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 20:55:28 +0200 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 20:55:28 +0200 |
commit | 570b9d968bf9b16974252ef7cbce73fa6dac34f3 (patch) | |
tree | 1a356ada71b373b363f9fc2204769f8eee920f30 /drivers/md/dm.h | |
parent | dm: path selector use module refcount directly (diff) | |
download | linux-570b9d968bf9b16974252ef7cbce73fa6dac34f3.tar.xz linux-570b9d968bf9b16974252ef7cbce73fa6dac34f3.zip |
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 <neilb@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm.h')
0 files changed, 0 insertions, 0 deletions