Commit 76d3ddf
RDMA/bnxt_re: synchronize the qp-handle table array
There is a race between the CREQ tasklet and destroy qp when accessing the
qp-handle table. There is a chance of reading a valid qp-handle in the
CREQ tasklet handler while the QP is already moving ahead with the
destruction.
Fixing this race by implementing a table-lock to synchronize the access.
Fixes: f218d67 ("RDMA/bnxt_re: Allow posting when QPs are in error")
Fixes: 84cf229 ("RDMA/bnxt_re: Fix the qp table indexing")
Link: https://patch.msgid.link/r/[email protected]
Signed-off-by: Kalesh AP <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>1 parent d71f4ac commit 76d3ddf
File tree
3 files changed
+15
-4
lines changed- drivers/infiniband/hw/bnxt_re
3 files changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1532 | 1532 | | |
1533 | 1533 | | |
1534 | 1534 | | |
| 1535 | + | |
1535 | 1536 | | |
1536 | 1537 | | |
1537 | 1538 | | |
| 1539 | + | |
1538 | 1540 | | |
1539 | 1541 | | |
1540 | 1542 | | |
| |||
1545 | 1547 | | |
1546 | 1548 | | |
1547 | 1549 | | |
| 1550 | + | |
1548 | 1551 | | |
1549 | 1552 | | |
| 1553 | + | |
1550 | 1554 | | |
1551 | 1555 | | |
1552 | 1556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| 637 | + | |
637 | 638 | | |
638 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
639 | 647 | | |
640 | 648 | | |
641 | 649 | | |
642 | 650 | | |
643 | 651 | | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | 652 | | |
649 | 653 | | |
650 | 654 | | |
| |||
973 | 977 | | |
974 | 978 | | |
975 | 979 | | |
| 980 | + | |
976 | 981 | | |
977 | 982 | | |
978 | 983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
0 commit comments