]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Dec 2018 20:07:25 +0000 (15:07 -0500)
commit2ee00f6a98c36f7e4ba07cc33f24cc5a69060cc9
treea460ea511318a1c0e78077e4eb4b802fbfd1583b
parent482fffc43c032ec09dd9ee792a546b36e973dcef
RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer

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>
drivers/infiniband/ulp/srp/ib_srp.c