]> git.hungrycats.org Git - linux/commit
[PATCH] IDE: Fix Power Management request race on resume
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 9 Sep 2003 05:09:41 +0000 (22:09 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 05:09:41 +0000 (22:09 -0700)
commit6f4d1d80177f67b1bd073b6355d67ba6e068ef9e
tree81faae537eb47167e88596386cf13262b95a3339
parentfe30003b84bb4126859ed50bdeeb9faa6d5b9da6
[PATCH] IDE: Fix Power Management request race on resume

The current IDE Power Management code I wrote has a race on wakeup when
the master device got resumed, it may take a request.  At this point, a
PM resume request to a slave device of the same hwgroup would clear
hwgroup->rq and cause an Oops when the master device request completes.

This patch fixes it.  Due to the context in which PM resume requests are
sent, just not clearing hwgroup->rq for these is enough.

I also removed a useless debug message in the PM code that was
actually misleading (people though it indicated a problem while it
didn't, it's really useless) and fix a typo in a comment.
drivers/ide/ide-io.c