dm mpath: detect invalid map_context
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Wed, 28 Mar 2012 17:41:25 +0000 (18:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 28 Mar 2012 17:41:25 +0000 (18:41 +0100)
commit466891f9959b500e037836737c064a72f2bbe8cf
treed50448abe03d595fb5f00671ff7aec9a35e3cdb0
parent4d7b38b7d944a79da3793b6c92d38682f3905ac9
dm mpath: detect invalid map_context

The map_context pointer should always be set. However, we have reports
that upon requeuing it is not set correctly.  So add set and clear
functions with a BUG_ON() to track the issue properly.

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Acked-by: Hannes Reinecke <hare@suse.de>
Tested-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c