RFC cxgb4: fix missing unlock on ETHOFLD desc collect fail path
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | cxgb4: fix missing unlock on ETHOFLD desc collect fail pathdrivers/ | +19 | 1 reply |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Rahul Lakkireddy |
|---|---|
| 1/1 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH net-next 0/1] cxgb4: fix missing unlock on ETHOFLD desc collect fail path
I'm sending this as a RFC because I'm not familiar with the chelsio cxgb4 code, sorry if this is nonsense.
I noticed that the 'out' label is passed to the QDESC_GET for the ETHOFLD TXQ, RXQ, and FLQ, which skips the 'out_unlock' label on error, and thus doesn't unlock the 'uld_mutex' before returning.
I was thinking the solution would be to simply change the label to 'out_unlock'. However, since commit 5148e5950c67 ("cxgb4: add EOTID tracking and software context dump"), I was wondering if the access to these ETHOFLD hardware queues should be protected by the 'mqprio_mutex' instead of the 'uld_mutex'.
Rafael Mendonca (1):
cxgb4: fix missing unlock on ETHOFLD desc collect fail path
.../net/ethernet/chelsio/cxgb4/cudbg_lib.c | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-)
Signature · 1 line
2.34.1