Bug 194281

Summary: net/unix/af_unix.c unix_stream_sendpage condition should check fast path first
Product: Networking Reporter: Michael (michael_allen_bond)
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.10 Subsystem:
Regression: No Bisected commit-id:

Description Michael 2017-02-07 05:55:17 UTC
The fast path (L2007) of this function should be called as early as possible.  I don't fully understand the semantics of the function, but is this fast path condition dependent on all the conditional branches before it?  The branches seem poorly structured regardless (lots of redundant conditions).
Comment 1 Stephen Hemminger 2017-02-07 16:37:10 UTC
Please post design questions to mailing list netdev@vger.kernel.org not bugzilla