tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RFC: gif(4) MP-ify



   Date: Fri, 25 Dec 2015 16:11:57 +0000 (UTC)
   From: christos%astron.com@localhost (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;


Home | Main Index | Thread Index | Old Index