]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: drop redundant test in move_skbs_to_msk()
authorPaolo Abeni <pabeni@redhat.com>
Mon, 21 Jun 2021 22:54:36 +0000 (15:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 16:57:45 +0000 (09:57 -0700)
commit811f87e4609237ada65bb44b11ba237f4bced791
treef849faaff47a43151ae2729b6139079ddabdeaa6
parenta9e52b7edf013f4f9c8112898bccb5bd525a3867
mptcp: drop redundant test in move_skbs_to_msk()

Currently we check the msk state to avoid enqueuing new
skbs at msk shutdown time.

Such test is racy - as we can't acquire the msk socket lock -
and useless, as the caller already checked the subflow
field 'disposable', covering the same scenario in a race
free manner - read and updated under the ssk socket lock.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c