Searched hist:"2 e52213c79c0b94aff42ba898ad9ad57546be67d" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/net/mptcp/ |
H A D | subflow.c | diff 2e52213c79c0b94aff42ba898ad9ad57546be67d Wed Feb 26 03:14:51 CST 2020 Florian Westphal <fw@strlen.de> mptcp: avoid work queue scheduling if possible
We can't lock_sock() the mptcp socket from the subflow data_ready callback, it would result in ABBA deadlock with the subflow socket lock.
We can however grab the spinlock: if that succeeds and the mptcp socket is not owned at the moment, we can process the new skbs right away without deferring this to the work queue.
This avoids the schedule_work and hence the small delay until the work item is processed.
Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | protocol.h | diff 2e52213c79c0b94aff42ba898ad9ad57546be67d Wed Feb 26 03:14:51 CST 2020 Florian Westphal <fw@strlen.de> mptcp: avoid work queue scheduling if possible
We can't lock_sock() the mptcp socket from the subflow data_ready callback, it would result in ABBA deadlock with the subflow socket lock.
We can however grab the spinlock: if that succeeds and the mptcp socket is not owned at the moment, we can process the new skbs right away without deferring this to the work queue.
This avoids the schedule_work and hence the small delay until the work item is processed.
Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | protocol.c | diff 2e52213c79c0b94aff42ba898ad9ad57546be67d Wed Feb 26 03:14:51 CST 2020 Florian Westphal <fw@strlen.de> mptcp: avoid work queue scheduling if possible
We can't lock_sock() the mptcp socket from the subflow data_ready callback, it would result in ABBA deadlock with the subflow socket lock.
We can however grab the spinlock: if that succeeds and the mptcp socket is not owned at the moment, we can process the new skbs right away without deferring this to the work queue.
This avoids the schedule_work and hence the small delay until the work item is processed.
Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|