Skip to contentSkip to conversation

scsi: core: Minor comment fixes for scsi_host_busy()

PATCH Applied John Garry 3 participants 4 messages Oct 23, 2025 – Oct 30, 2025 SCSI

lore
Share & tools
lore

John Garry

author
#0 lore raw

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

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.

---
Difference to v1:
- Update comment on scsi_host_busy (Bart)

drivers/scsi/hosts.c +2 -2
index cc5d05dc395c4..eb224a338fa21 100644
@@ -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)
 {
Signature · 1 line
2.43.5
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · John Garry
drivers/scsi/hosts.c +0 -0
index cc5d05dc395c4..eb224a338fa21 100644

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

Quoted 10 lines
drivers/scsi/hosts.c +2 -2
@@ -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)
  {
#2 lore raw
In reply to John Garry

John,

Quoted 5 lines

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.

Applied to 6.19/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen
#3 lore raw
In reply to John Garry
Quoted 6 lines · John Garry

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.

Applied to 6.19/scsi-queue, thanks!

[1/1] scsi: core: Minor comment fixes for scsi_host_busy()

      https://git.kernel.org/mkp/scsi/c/dcc98c11364e
Signature · 1 line
Martin K. Petersen