IB/iser: add unlikely checks in the fast path
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 23 Sep 2019 21:32:49 +0000 (00:32 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 1 Oct 2019 14:23:22 +0000 (11:23 -0300)
commit70bcc63f84eaa08c53a14e669550cffc947ca3b7
tree472d373c26d4f0b11a8ad45c3e33084cc4e217d8
parent663912a6378a34fd4f43b8d873f0c6c6322d9d0e
IB/iser: add unlikely checks in the fast path

ib_post_send, ib_post_recv and ib_dma_map_sg  operations should succeed
unless something unusual happened to the ib device.

Link: https://lore.kernel.org/r/1569274369-29217-1-git-send-email-maxg@mellanox.com
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/iser/iser_memory.c
drivers/infiniband/ulp/iser/iser_verbs.c