firewire: Use only a wait queue and terminate poll and read on device removal.
authorKristian Høgsberg <krh@redhat.com>
Wed, 7 Mar 2007 17:12:48 +0000 (12:12 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Mar 2007 21:03:11 +0000 (22:03 +0100)
commit2603bf219e9bef3396b96b65326de7db27958c95
tree1e18057a1a7e4f22c0b7eaec1b3330ad426cdb72
parent2aaad97be6b58ae865f402fcd27d138e7346ff81
firewire: Use only a wait queue and terminate poll and read on device removal.

Drop the event list semaphore and only use the wait queue and the list
to synchronize queue access.  Break out of a poll or read whenever
the device is disconnected.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-device-cdev.c
drivers/firewire/fw-device.c
drivers/firewire/fw-device.h