Skip to contentSkip to conversation

scsi: fix missing include linux/types.h in scsi_netlink.h

PATCH In review Willy Tarreau 8 participants 171 messages May 12, 2014 – Jun 21, 2014 1 message not in the archive Page 2 of 2

Subsystems (63)
lore
Share & tools
lore
#72 lore raw

Re: [ 059/143] sysctl net: Keep tcp_syn_retries inside the boundary

In reply to Willy Tarreau
Quoted 37 lines · Willy Tarreau

Hi Eric,

Quoted 13 lines · Eric W. Biederman
Quoted 11 lines · Willy Tarreau

Hi Luis,

Quoted 7 lines · Luis Henriques

I was finally able to spend some more time with this and tried (a modified) Tyler's patch on top of 2.6.32.62, and it seems to work. Although I haven't done any extended testing, I don't see the two stack traces and the /proc/sys/net/ipv4/ directory seems to be correctly populated.

I'm attaching the patch I've used, based on Tyler's.

Quoted 8 lines
Quoted 3 lines

Would any of you or Tyler please kindly pass me a signed-off-by with a commit message ? That would be great. Alternately I'd do it myself and mention you authored them.

If my memory serves it is possibe in 2.6.32 to set .ctl_name = CTL_UNNEEDED

and not need to implement a .strategy routine at all.

Ah that's quite interesting, thanks for the tip!

Quoted 4 lines

Given the fact that most people got the strategy routines slightly wrong and that sys_sysctl is effectively unused a strategy where you don't implement code that no-one will use in a backport I would be preferable.

OK.

Quoted 2 lines

Since you have mentioned this has come up a couple of times if something else this will be something to think about for next time.

Quoted 8 lines

I'm keeping your e-mail where I manage patches, hoping to recognize this case next time.

Quoted 1 line

I am puzzled why .ctl_name was populated in a backport at all.

Oh it's simply because I didn't know it did not have to be there, and among the few reviewers, I guess that it's not common to know what version uses what semantics.

I guess what I meant is that the field .ctl_name does not even exist anymore for the same reasons .strategy does not exist anymore. So I was just suprirsed that someone picked a randomish number and stuck it in there.

If anyone actually were to use those randomish numbers in the binary sys_sysctl call their applications would break when they eventually moved to a more recent kernel.

Which is one of the motivations it was decided there would be no more binary sysctls allocated around the 2.6.32 timeframe.

Quoted 4 lines

Thank you for the exaplanation, it's really helpful. We're not used to backport sysctl changes but here I got caught a few times and have found some sysctl.conf with bogus values in field a few times, so it was really important to backport this one.

Sysctl do have their uses, and at least 2.6.32 has runtime sysctl checks to keep the insanity to a dull roar.

Eric