IB/srp: Document srp_map_data() return value
authorBart Van Assche <[email protected]>
Fri, 22 Apr 2016 21:13:09 +0000 (14:13 -0700)
committerDoug Ledford <[email protected]>
Thu, 12 May 2016 18:18:55 +0000 (14:18 -0400)
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Laurence Oberman <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/ulp/srp/ib_srp.c

index 8c0827a11ece76be2273e9131802c92765fcd92b..269f5ebe82de253bbf355d5ad92cecc8b66c1f55 100644 (file)
@@ -1534,6 +1534,15 @@ static int srp_map_idb(struct srp_rdma_ch *ch, struct srp_request *req,
        return 0;
 }
 
+/**
+ * srp_map_data() - map SCSI data buffer onto an SRP request
+ * @scmnd: SCSI command to map
+ * @ch: SRP RDMA channel
+ * @req: SRP request
+ *
+ * Returns the length in bytes of the SRP_CMD IU or a negative value if
+ * mapping failed.
+ */
 static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch,
                        struct srp_request *req)
 {