diff options
author | Devesh Sharma <devesh.sharma@broadcom.com> | 2017-05-22 03:15:31 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-06-13 16:09:04 -0400 |
commit | cc1ec769b87c7dea9092fb537c512e0b6b7a5dac (patch) | |
tree | b23240aa3ea52a47e455fba62f37d8bb51feacb8 /drivers/infiniband/hw/bnxt_re/ib_verbs.c | |
parent | 79e25959403e6a79552db28a87abed34de32a1df (diff) | |
download | lwn-cc1ec769b87c7dea9092fb537c512e0b6b7a5dac.tar.gz lwn-cc1ec769b87c7dea9092fb537c512e0b6b7a5dac.zip |
RDMA/bnxt_re: Fixing the Control path command and response handling
Fixing a concurrency issue with creq handling. Each caller
was given a globally managed crsq element, which was
accessed outside a lock. This could result in corruption,
if lot of applications are simultaneously issuing Control Path
commands. Now, each caller will provide its own response buffer
and the responses will be copied under a lock.
Also, Fixing the queue full condition check for the CMDQ.
As a part of these changes, the control path code is refactored
to remove the code replication in the response status checking.
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.c')
0 files changed, 0 insertions, 0 deletions