projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48046a0
)
nvmet-rdma: Add unlikely for response allocated check
author
Israel Rukshin
<israelr@mellanox.com>
Mon, 19 Nov 2018 10:58:51 +0000
(10:58 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:14:41 +0000
(08:14 +0100)
commit
ad1f824948e4ed886529219cf7cd717d078c630d
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>
drivers/nvme/target/rdma.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/target/rdma.c
b/drivers/nvme/target/rdma.c
index
e57f390
..
d393649
100644
(file)
--- 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;
}