[PATCH 3/3] cciss: add put_disk into cleanup routines
authormikem <mikem@beardog.cca.cpqcorp.net>
Fri, 18 Nov 2005 21:05:36 +0000 (22:05 +0100)
committerJens Axboe <axboe@suse.de>
Fri, 18 Nov 2005 21:05:36 +0000 (22:05 +0100)
commit6f5a0f7c955d3567f800fa36f978758cb5b99aa2
treeae4c3e9c46c8c02bbcf97c40f6e2e09865327569
parent15534d3803993345d8db32246ec329d8f83502e1
[PATCH 3/3] cciss: add put_disk into cleanup routines

Jeff Garzik pointed me to his code to see how to remove a disk from
the system _properly_. Well, here it is...
Every place we remove disks we are now testing before calling del_gendisk
or blk_cleanup_queue and then call put_disk.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
drivers/block/cciss.c