]> git.baikalelectronics.ru Git - kernel.git/commit
ieee1394: csr1212: proper refcounting
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 15 Sep 2007 12:50:25 +0000 (14:50 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 16 Oct 2007 21:59:59 +0000 (23:59 +0200)
commitd91cf207169aa581907f0744408850f04f8d27b4
tree60db3734335f3956378063c2f8126c036b83bfed
parentc2ded26f5f1f4f015e2e28c015ad32e588a873b7
ieee1394: csr1212: proper refcounting

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: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/csr1212.c
drivers/ieee1394/csr1212.h
drivers/ieee1394/nodemgr.c