tipc: Prevent rounding issues when saving connect timeout option
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 26 May 2011 17:44:34 +0000 (13:44 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 1 Sep 2011 15:16:37 +0000 (11:16 -0400)
commita0f40f02ef0783688233caf737a17f1f56283e2b
treeb27c98ef211ca9148a0bc8e4707e09660c2da197
parentff60af8c16aa3b8ee51a0a6b4c4ea42342d1607d
tipc: Prevent rounding issues when saving connect timeout option

Saves a socket's TIPC_CONN_TIMEOUT socket option value in its original
form (milliseconds), rather than jiffies. This ensures that the exact
value set using setsockopt() is always returned by getsockopt(), without
being subject to rounding issues introduced by a ms->jiffies->ms
conversion sequence.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c