]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: core: Minor comment fixes for scsi_host_busy()
authorJohn Garry <john.g.garry@oracle.com>
Thu, 23 Oct 2025 08:27:59 +0000 (08:27 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Oct 2025 02:56:18 +0000 (22:56 -0400)
I guess that the @shost comment on scsi_host_busy() was copied from
scsi_host_get() (as it is the same), however they do not do the same
thing.

Also drop reference to busy counter, which has been removed.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251023082759.3927000-1-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hosts.c

index cc5d05dc395c4637cefa4b97864fa9d50124af03..eb224a338fa21be7661e24af410f0913c1241719 100644 (file)
@@ -604,8 +604,8 @@ static bool scsi_host_check_in_flight(struct request *rq, void *data)
 }
 
 /**
- * scsi_host_busy - Return the host busy counter
- * @shost:     Pointer to Scsi_Host to inc.
+ * scsi_host_busy - Return the count of in-flight commands
+ * @shost:     Pointer to Scsi_Host
  **/
 int scsi_host_busy(struct Scsi_Host *shost)
 {