]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1dc5dc5a3799478c3d713e7a4c3570d3e798237b
treeb27c98ef211ca9148a0bc8e4707e09660c2da197
parent2f21da3238e83511c6b2e9acf45744f4759087c8
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