diff options
| author | Linus Torvalds <[email protected]> | 2006-05-12 18:42:09 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-05-12 18:42:09 -0700 |
| commit | 032ebf2620ef99a4fedaa0f77dc2272095ac5863 (patch) | |
| tree | 18a341e1548a304efea7543c715d23255ada6fa3 /scripts | |
| parent | 18552b8f227bddf569dade5c69798a37839ea913 (diff) | |
Alternative fix for MMC oops on unmount after removal
Make sure to clear the driverfs_dev pointer when we do del_gendisk() (on
disk removal), so that other users that may still have a ref to the disk
won't try to use the stale pointer.
Also move the KOBJ_REMOVE uevent handler up, so that the uevent still
has access to the driverfs_dev data.
This all should hopefully fix the problems with MMC umounts after device
removals that caused commit 56cf6504fc1c0c221b82cebc16a444b684140fb7 and
its reversal (1a2acc9e9214699a99389e323e6686e9e0e2ca67).
Original problem reported by Todd Blumer and others.
Acked-by: Greg KH <[email protected]>
Cc: Russell King <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Erik Mouw <[email protected]>
Cc: Andrew Vasquez <[email protected]>
Cc: Todd Blumer <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions