diff options
author | Israel Rukshin <israelr@mellanox.com> | 2018-11-19 13:58:51 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-08 08:26:58 +0300 |
commit | ad1f824948e4ed886529219cf7cd717d078c630d (patch) | |
tree | 28787d50a8d49a0687e1faba2f30dd0d2eb74422 /drivers/nvme/target/rdma.c | |
parent | 5c4072ad1c151c65c3d60f95536786042cd49e29 (diff) | |
download | linux-ad1f824948e4ed886529219cf7cd717d078c630d.tar.xz |
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.c | 2 |
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; } |