Re: [RFC PATCH net] net: Work around lockdep limitation in sockets that use sockets
From: David Miller
Date: Thu Mar 09 2017 - 12:40:04 EST
From: David Howells <dhowells@xxxxxxxxxx>
Date: Thu, 09 Mar 2017 07:51:34 +0000
> David Miller <davem@xxxxxxxxxxxxx> wrote:
>
>> I guess this is fine, but I think you can use one of the two "sk_padding"
>> bits in struct sock instead of making the structure larger.
>
> It shouldn't make the structure larger since there's a hole in the structure:
...
> u16 sk_gso_max_segs;
> ---> 2-byte hole here
> unsigned long sk_lingertime;
>
> but I'll quite happily shift it to sk_padding.
Ok, then that's fine.