Skip to content
Commit 459f7923 authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: clean up fw_card reference counting



This is a functionally equivalent replacement of the current reference
counting of struct fw_card instances.  It only converts it to common
idioms as suggested by Kristian Høgsberg:
  - struct kref replaces atomic_t as the counter.
  - wait_for_completion is used to wait for all card users to complete.

BTW, it may make sense to count card->flush_timer and card->work as
card users too.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 2147ef20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment