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>
This commit is contained in:
Israel Rukshin 2018-11-19 10:58:51 +00:00 committed by Jens Axboe
parent 5c4072ad1c
commit ad1f824948
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ nvmet_rdma_put_rsp(struct nvmet_rdma_rsp *rsp)
{ {
unsigned long flags; unsigned long flags;
if (rsp->allocated) { if (unlikely(rsp->allocated)) {
kfree(rsp); kfree(rsp);
return; return;
} }