IB/srpt: Fix srpt_write_pending()
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 11 Feb 2016 19:09:10 +0000 (11:09 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:12:36 +0000 (17:12 -0500)
commitfc3af58d3f8b820e3acabb1e1c4f105eb3f283c1
tree1ea09dfef8a4581b78a84e2ed264add9762c8147
parentaaf45bd83eba804adfa5c4ff5b17ca0c88884c6f
IB/srpt: Fix srpt_write_pending()

The only allowed return values for the write_pending() callback
function are 0, -EAGAIN and -ENOMEM. Since attempting to perform
RDMA over a disconnecting channel will result in an IB error
completion anyway, remove the code that checks the channel state
from srpt_write_pending().

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c