Skip to content

Commit 422969b

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: core: Fix the documentation of the scsi_execute() time parameter
The unit of the scsi_execute() timeout parameter is 1/HZ seconds instead of one second, just like the timeouts used in the block layer. Fix the documentation header above the definition of the scsi_execute() macro. Link: https://lore.kernel.org/r/20210709202638.9480-3-bvanassche@acm.org Fixes: "[SCSI] use scatter lists for all block pc requests and simplify hw handlers" # v2.6.16.28 Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: John Garry <john.garry@huawei.com> Reviewed-by: Avri Altman <avri.altman@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent e73f0f0 commit 422969b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/scsi_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void scsi_queue_insert(struct scsi_cmnd *cmd, int reason)
194194
* @bufflen: len of buffer
195195
* @sense: optional sense buffer
196196
* @sshdr: optional decoded sense header
197-
* @timeout: request timeout in seconds
197+
* @timeout: request timeout in HZ
198198
* @retries: number of times to retry request
199199
* @flags: flags for ->cmd_flags
200200
* @rq_flags: flags for ->rq_flags

0 commit comments

Comments
 (0)