• Stefan Richter's avatar
    ieee1394: csr1212: proper refcounting · 17a19b79
    Stefan Richter authored
    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: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
    17a19b79
nodemgr.c 52.3 KB