• S
    ieee1394: csr1212: proper refcounting · 17a19b79
    Stefan Richter 提交于
    At least since nodemgr got rid of coarse global locking, accesses to
    struct csr1212_keyval's reference counter should be atomic and coupled
    with proper barriers.  Also, calls to csr1212_keep_keyval(kv) should
    occur before kv is being used.
    
    (We probably should convert refcnt to struct kref, but how to keep
    csr1212_destroy_keyval's implementation non-recursively then?)
    Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
    17a19b79
csr1212.h 14.5 KB