connection: make attach_flags atomic
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 20 Oct 2014 13:41:49 +0000 (15:41 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 20 Oct 2014 13:45:02 +0000 (15:45 +0200)
commit812a945ecb8a7a1aaea94cd01a6d78865755b6b1
treef787399f441b09a25a379da3b30b64b2c43067cf
parent84418e4f696fb0d309983bb94736f10180e20956
connection: make attach_flags atomic

Instead of requiring connection locks, make conn->attach_flags a 64bit
atomic. This isn't particularly fast on archs that don't optimize
atomic64, but it simplifies the locking in kdbus. Requiring the connection
lock is just annoying. Furthermore, most 'real' archs should provide 64bit
atomics, anyway.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c
connection.h