[Cluster-devel] introduce function wrapper for sk_data_ready() call?

Kuniyuki Iwashima kuniyu at amazon.com
Tue Mar 7 00:56:38 UTC 2023


From:   Alexander Aring <aahringo at redhat.com>
Date:   Mon, 6 Mar 2023 07:47:02 -0500
> 
> Hi,
> 
> I saw that in 6.3-rc1 the following patch introduced something in dlm
> socket application handling 40e0b0908142 ("net/sock: Introduce
> trace_sk_data_ready()"). I am asking myself if we could instead
> introduce a wrapper in net/ protocol family implementations and they
> do such trace event calls there inside the socket implementation
> instead of letting the application layer do it. It looks pretty
> generic for me and it does not trace any application specific
> information.

I think you cannot apply the same logic to some functions which call
trace_sk_data_ready() twice, e.g. subflow_data_ready, tls_data_ready().

Then, only such functions need an additional trace_sk_data_ready(),
which is not clean, I think.

Thanks,
Kuniyuki


> 
> I did something similar for sk_error_report(), see e3ae2365efc1 ("net:
> sock: introduce sk_error_report").
> 
> Thanks.
> 
> - Alex



More information about the Cluster-devel mailing list