Commit 7e63b5a4a68309383868b3582e92c217ad8a5347

Authored by Douglas Gilbert
Committed by Martin K. Petersen
1 parent e260748437

scsi: core: scsi_io_completion: comment on end_request return

scsi_end_request() is called multiple times from scsi_io_completion() which
branches on its bool returned value. Add comment before the static
definition of scsi_end_request() about the meaning of that return.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/scsi/scsi_lib.c
... ... @@ -662,6 +662,7 @@
662 662 cmd->request->next_rq->special = NULL;
663 663 }
664 664  
  665 +/* Returns false when no more bytes to process, true if there are more */
665 666 static bool scsi_end_request(struct request *req, blk_status_t error,
666 667 unsigned int bytes, unsigned int bidi_bytes)
667 668 {