removable media support on 2.6.x
From: Jinu M.
Date: Fri Jun 04 2004 - 10:18:05 EST
We are developing a storage driver (block driver) on 2.6.x kernel. The
hardware we are using supports media removal on the fly. We are facing
some problem when the media is removed while the disk is mounted. The
system freezes and the module count never goes to zero.
This is what we do when the disk is removed on the fly.
/* invalidate disk */
/* indicates that no disk present */
/* cleanup gendisk */
/* clean up blkqueue */
disk_removed() is called from the workqueue that is initiated from the
tasklet()<=isr() on card removal.
We guess invalidate_bdev() is the culprit ;) but would like to know
from you all if we are doing some mistake. Is there something missing
or something wrong in the way we are trying to provide removable media
Thanks in advance,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/