Skip to content

Commit

Permalink
nvmet-rdma: Add unlikely for response allocated check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Israel Rukshin authored and Jens Axboe committed Dec 8, 2018
1 parent 5c4072a commit ad1f824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/target/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad1f824

Please sign in to comment.