summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/rdma.c
diff options
context:
space:
mode:
authorIsrael Rukshin <israelr@mellanox.com>2018-11-19 11:58:51 +0100
committerJens Axboe <axboe@kernel.dk>2018-12-08 06:26:58 +0100
commitad1f824948e4ed886529219cf7cd717d078c630d (patch)
tree28787d50a8d49a0687e1faba2f30dd0d2eb74422 /drivers/nvme/target/rdma.c
parentnvme: Remove unused forward declaration (diff)
downloadlinux-ad1f824948e4ed886529219cf7cd717d078c630d.tar.xz
linux-ad1f824948e4ed886529219cf7cd717d078c630d.zip
nvmet-rdma: Add unlikely for response allocated check
Signed-off-by: Israel Rukshin <israelr@mellanox.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/target/rdma.c')
-rw-r--r--drivers/nvme/target/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c
index 3f7971d3706d..932242e27b03 100644
--- a/drivers/nvme/target/rdma.c
+++ b/drivers/nvme/target/rdma.c
@@ -196,7 +196,7 @@ nvmet_rdma_put_rsp(struct nvmet_rdma_rsp *rsp)
{
unsigned long flags;
- if (rsp->allocated) {
+ if (unlikely(rsp->allocated)) {
kfree(rsp);
return;
}