Re: [PATCH 1/1] Fix hang on IBM Token Ring PCMCIA card ejection
From: Jeff Garzik <hidden>
Date: 2007-05-08 05:19:34
From: Jeff Garzik <hidden>
Date: 2007-05-08 05:19:34
Paul Walmsley wrote:
From: Paul Walmsley <redacted> Ejecting a PCMCIA IBM Token Ring card that has not had its dev->open() called will reliably trigger an uninitialized spinlock oops when spinlock debugging is enabled. The system then hangs, occasionally softlockup oopsing. It seems that ibmtr.c:tok_interrupt() doesn't expect to be called before tok_open() is called, but tok_interrupt() gets called anyway when the card is ejected. So, set an already-extant flag which causes tok_interrupt() to bail out early upon card ejection. Tested by inserting and removing the PCMCIA card several times. Applies against 2.6.21-rc5. Signed-off-by: Paul Walmsley <redacted>
ACK but does not apply