Re: [PATCH] socket: move compat timeout handling into sock.c

From: Deepa Dinamani
Date: Tue Jan 08 2019 - 16:29:21 EST


On Tue, Jan 8, 2019 at 12:10 PM Arnd Bergmann <arnd@xxxxxxxx> wrote:
>
> This is a cleanup to prepare for the addition of 64-bit time_t
> in O_SNDTIMEO/O_RCVTIMEO. The existing compat handler seems
> unnecessarily complex and error-prone, moving it all into the
> main setsockopt()/getsockopt() implementation requires half
> as much code and is easier to extend.
>
> 32-bit user space can now use old_timeval32 on both 32-bit
> and 64-bit machines, while 64-bit code can use
> __old_kernel_timeval.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

This will make the other series so much nicer. Thank you.

Acked-by: Deepa Dinamani <deepa.kernel@xxxxxxxxx>