[PATCH] fix race and remove BKL from wdt977
authorDave Hansen <haveblue@us.ibm.com>
Mon, 15 Apr 2002 06:31:05 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 15 Apr 2002 06:31:05 +0000 (23:31 -0700)
commit745f461756ffbce34e744707213ccdca0fc0240d
tree9bc9dfba8639e2e6c733bc283bb2b3616ada8cc2
parent0a96b71ada63db41b512e33491c5d94353448fb9
[PATCH] fix race and remove BKL from wdt977

We've seen this in several other drivers, most recently the indydog one.
  If two simultaneous opens occur, they race, they device gets opened
twice, blah, blah, blah.  Using atomic bitops fixes this.  The BKL is
not needed.
drivers/char/wdt977.c