]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: keep listening connection alive with sctp mode
authorLidong Zhong <lzhong@suse.com>
Thu, 12 Jun 2014 15:26:14 +0000 (10:26 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 12 Jun 2014 15:26:14 +0000 (10:26 -0500)
commite9acac9e2aae774736075c2c852c859c2ae06dc9
treef0ec6e389dbef69b53fcced714a5f82ae0301bd7
parent18edba0ef3625e1d6268090340c150575db44ef6
dlm: keep listening connection alive with sctp mode

The connection struct with nodeid 0 is the listening socket,
not a connection to another node.  The sctp resend function
was not checking that the nodeid was valid (non-zero), so it
would mistakenly get and resend on the listening connection
when nodeid was zero.

Signed-off-by: Lidong Zhong <lzhong@suse.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c