nvmet-rdma: add unlikely check in the fast path
ib_post_send operation should succeed unless something unusual happened to the ib device. Signed-off-by: Max Gurtovoy <maxg@mellanox.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
0d5ee2b2ab
commit
2fc464e216
1 changed files with 1 additions and 1 deletions
|
@ -546,7 +546,7 @@ static void nvmet_rdma_queue_response(struct nvmet_req *req)
|
|||
rsp->send_sge.addr, rsp->send_sge.length,
|
||||
DMA_TO_DEVICE);
|
||||
|
||||
if (ib_post_send(cm_id->qp, first_wr, &bad_wr)) {
|
||||
if (unlikely(ib_post_send(cm_id->qp, first_wr, &bad_wr))) {
|
||||
pr_err("sending cmd response failed\n");
|
||||
nvmet_rdma_release_rsp(rsp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue