Skip to contentSkip to conversation

umount hangs after card removal

DISCUSSION Steven Scholz 1 participant 1 message Jul 29, 2005 VFS

lore
Share & tools
lore
#0 lore raw

Hi there,

hope this is the correct mailing list.

With 2.6.13-rc4 I see the following behaviour:

I unplug a mounted compact flash drive (without unmounting it before!) The ide interface disappears but the partition stays mounted.

When I then try to umount the directory umount will hang.

As far as I tracked it the following happens:

~ # cardctl eject
cardmgr[227]: shutting down socket 0
cardmgr[227]: executing: './ide stop hda'
cardmgr[227]: executing: 'modprobe -r ide-cs'

~ # umount /mnt/pcmcia/
sys_umount(496)
path_release_on_umount(318)
__mntput(180)
deactivate_super(176)
generic_shutdown_super(254) calling sop->put_super @ c00ac7c8 fat_put_super(363)
fat_clusters_flush(49)
__bread_slow(1311)
__wait_on_buffer(91)
wait_on_bit(&bh->b_state, BH_Lock, sync_buffer, TASK_UNINTERRUPTIBLE);

How could one avoid this? Who's responsible to tell the FS part that the block device disapperead?

--
Steven