Skip to content

Commit

Permalink
nvmet-rdma: Add unlikely for response allocated check
Browse files Browse the repository at this point in the history
commit ad1f824 upstream.

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>
Cc: Raju  Rangoju <rajur@chelsio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Israel Rukshin authored and Greg Kroah-Hartman committed Jan 31, 2019
1 parent 5973596 commit 8d1ee2d
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 @@ -189,7 +189,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 8d1ee2d

Please sign in to comment.