]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] gdth: fix timer handling
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 5 May 2008 03:34:49 +0000 (22:34 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 8 May 2008 15:01:39 +0000 (10:01 -0500)
commit166c7e20aa2815eb425e8475999742657f744abb
treee3149988098d59586e6170bbef7d9a140dfdb655
parent458fe15b8a20320b2d950fd68e368bad51635cfa
[SCSI] gdth: fix timer handling

The global timer handling is problematic in that if someone unbinds a
PCI gdth instance, the BUG_ON() in the timer will cause a panic.

Fix this by making the timer start and stop depending on whether there
are instances present.  This should also permit binding and unbinding
to work.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/gdth.c