https://github.com/torvalds/linux
Revision 6f5a0f7c955d3567f800fa36f978758cb5b99aa2 authored by mikem on 18 November 2005, 21:05:36 UTC, committed by Jens Axboe on 18 November 2005, 21:05:36 UTC
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>
1 parent 15534d3
History
Tip revision: 6f5a0f7c955d3567f800fa36f978758cb5b99aa2 authored by mikem on 18 November 2005, 21:05:36 UTC
[PATCH 3/3] cciss: add put_disk into cleanup routines
Tip revision: 6f5a0f7
File Mode Size
Makefile -rw-r--r-- 596 bytes
infblock.c -rw-r--r-- 10.3 KB
infblock.h -rw-r--r-- 1.2 KB
infcodes.c -rw-r--r-- 5.3 KB
infcodes.h -rw-r--r-- 825 bytes
inffast.c -rw-r--r-- 5.1 KB
inffast.h -rw-r--r-- 489 bytes
inflate.c -rw-r--r-- 5.9 KB
inflate_syms.c -rw-r--r-- 519 bytes
inflate_sync.c -rw-r--r-- 4.1 KB
inftrees.c -rw-r--r-- 14.6 KB
inftrees.h -rw-r--r-- 2.7 KB
infutil.c -rw-r--r-- 1.9 KB
infutil.h -rw-r--r-- 7.0 KB

back to top