]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: add a client_list_lock
authorJay Fenlason <fenlason@redhat.com>
Fri, 3 Oct 2008 15:19:09 +0000 (11:19 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:36 +0000 (20:56 +0100)
commiteb07e851c18155dd6626cc412867c4ee84241204
treea1681ef863c8c4219506e16b7982e51dc0718387
parenta5cab208f01998d660aceba063420c5db0b4e1c8
firewire: add a client_list_lock

This adds a client_list_lock, which only protects the device's
client_list, so that future versions of the driver can call code that
takes the card->lock while holding the client_list_lock.  Adding this
lock is much simpler than adding __ versions of all the functions that
the future version may need.  The one ordering issue is to make sure
code never takes the client_list_lock with card->lock held.  Since
client_list_lock is only used in three places, that isn't hard.

Signed-off-by: Jay Fenlason <fenlason@redhat.com>
Update fill_bus_reset_event() accordingly.  Include linux/spinlock.h.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c
drivers/firewire/fw-device.c
drivers/firewire/fw-device.h