]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: sysfs skip output when device is being destroyed
authorMilan Broz <mbroz@redhat.com>
Mon, 22 Jun 2009 09:12:11 +0000 (10:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:50:40 +0000 (16:50 -0700)
commit7dce9502a4396efca6d4c962f083440900ea9951
tree26accee91a3a96980a722f3d26ec7ceae23098e1
parentcb23f287db2d8966bcf97c57cc5f4f98cc57b51b
dm: sysfs skip output when device is being destroyed

commit 4d89b7b4e4726893453d0fb4ddbb5b3e16353994 upstream.

Do not process sysfs attributes when device is being destroyed.

Otherwise code can cause
  BUG_ON(test_bit(DMF_FREEING, &md->flags));
in dm_put() call.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm.c