OSDN Git Service

RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer
authorBart Van Assche <bvanassche@acm.org>
Mon, 17 Dec 2018 21:20:36 +0000 (13:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:26:55 +0000 (15:26 +0100)
commit04fccc75712c4a62b17444e0955f6c4087ceeaab
treefa5a39b00ff6278da9f7e7bb02c6ab870423b7c8
parentb73fbb8034703997d8cfd7e53d8cbaaf1b452c46
RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer

[ Upstream commit 2ee00f6a98c36f7e4ba07cc33f24cc5a69060cc9 ]

This patch avoids that the SCSI mid-layer keeps retrying forever if
ib_post_send() fails. This was discovered while testing immediate
data support and passing a too large num_sge value to ib_post_send().

Cc: Sergey Gorenko <sergeygo@mellanox.com>
Cc: Max Gurtovoy <maxg@mellanox.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/ulp/srp/ib_srp.c