Date: Fri, 25 Dec 2015 16:11:57 +0000 (UTC) From: chris...@astron.com (Christos Zoulas)
- why are you using rw_obj_alloc() since you always need it, and you could just define the locks as structs not pointers and call rw_init() on them? The historical reason to use rw_obj_alloc was to get a cache line alignment. But we can do that with static variables now using the __cacheline_aligned attribute: static krwlock_t xyz_lock __cacheline_aligned;