firewire: addendum to address handler RCU conversion
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 27 Sep 2012 19:46:09 +0000 (21:46 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 28 Sep 2012 09:47:42 +0000 (11:47 +0200)
commit4d50c44381c981c9caa74e82ab894d4938dac9ca
tree58ff020b13eccd0db85c6796300dd576544b9349
parent35202f7d8420fff586b372422a2419affeaba8ef
firewire: addendum to address handler RCU conversion

Follow up on commit c285f6ff6787 "firewire: remove global lock around
address handlers, convert to RCU":

  - address_handler_lock no longer serializes the address handler, only
    its function to serialize updates to the list of handlers remains.
    Rename the lock to address_handler_list_lock.

  - Callers of fw_core_remove_address_handler() must be able to sleep.
    Comment on this in the API documentation.

  - The counterpart fw_core_add_address_handler() is by nature something
    which is used in process context.  Replace spin_lock_bh() by
    spin_lock() in fw_core_add_address_handler() and in
    fw_core_remove_address_handler(), and document that process context
    is now required for fw_core_add_address_handler().

  - Extend the documentation of fw_address_callback_t.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-transaction.c
include/linux/firewire.h