diff options
| author | Loic Poulain <[email protected]> | 2020-12-10 12:25:07 +0100 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2020-12-14 17:25:56 -0800 |
| commit | efc36d3c344a36fe73cda93c55763058629e0f2c (patch) | |
| tree | db1a92d6bec64bd45a6e17c843b6ae9e1303dfd7 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | 49506a9ba0619b02bcce039e19dc40b432f56b15 (diff) | |
net: mhi: Fix unexpected queue wake
This patch checks that MHI queue is not full before waking up the net
queue. This fix sporadic MHI queueing issues in xmit. Indeed xmit and
its symmetric complete callback (ul_callback) can run concurently, it
is then not safe to unconditionnaly waking the queue in the callback
without checking queue fullness.
Fixes: 3ffec6a14f24 ("net: Add mhi-net driver")
Signed-off-by: Loic Poulain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions