Re: [RFC 05/12] lockdep: Implement crossrelease feature

From: Peter Zijlstra
Date: Thu Jun 30 2016 - 09:40:47 EST


On Mon, Jun 20, 2016 at 01:55:20PM +0900, Byungchul Park wrote:
> +struct cross_lock {
> + unsigned int gen_id;

4 byte hole

> + struct list_head xlock_entry;
> +
> + /*
> + * Seperated hlock instance. This will be used when
> + * building a dependency chain for a crosslock, say,
> + * commit.
> + */
> + struct held_lock hlock;
> +
> + int ref; /* reference count */

4 byte hole

> +};

A trivial re-arrangement would shrink this structure by 8 bytes.

After which its still at least 64 bytes.