Skip to contentSkip to conversation

scsi: core: Minor comment fix for scsi_host_busy()

PATCH Superseded John Garry 2 participants 2 messages Oct 22, 2025 SCSI

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 scsi: core: Minor comment fix for scsi_host_busy()

I guess that the comment on scsi_host_busy() was copied from scsi_host_get() (as it is the same), however they do not do the same thing.

drivers/scsi/hosts.c +1 -1
index cc5d05dc395c4..64de1a647b457 100644
@@ -605,7 +605,7 @@ 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.
+ * @shost:	Pointer to Scsi_Host
  **/
 int scsi_host_busy(struct Scsi_Host *shost)
 {
Signature · 1 line
2.43.5
#1 lore raw
Quoted 10 lines · John Garry

I guess that the comment on scsi_host_busy() was copied from scsi_host_get() (as it is the same), however they do not do the same thing.

drivers/scsi/hosts.c +0 -0
index cc5d05dc395c4..64de1a647b457 100644

drivers/scsi/hosts.c static bool scsi_host_check_in_flight(struct request *rq, void *data) · line 611

Quoted 8 lines
drivers/scsi/hosts.c +1 -1
@@ -605,7 +605,7 @@ 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.
+ * @shost:	Pointer to Scsi_Host
   **/
  int scsi_host_busy(struct Scsi_Host *shost)
  {

Shouldn't "host busy counter" text be modified too, since the host busy counter has been removed? A possible replacement text could be "number of commands in flight".

Thanks,

Bart.