Skip to contentSkip to conversation

block: Remove an obsolete comment from sg_io()

PATCH Applied Bart Van Assche 4 participants 4 messages Apr 13, 2021 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Remove an obsolete comment from sg_io()

Commit b7819b925918 ("block: remove the blk_execute_rq return value") changed the return type of blk_execute_rq() from int into void. That change made a comment in sg_io() obsolete. Hence remove that comment.

Cc Christoph Hellwig <[email protected]>
Cc Johannes Thumshirn <[email protected]>
---
 block/scsi_ioctl.c | 4 ----
 1 file changed, 4 deletions(-)
block/scsi_ioctl.c +0 -4
index 1048b0925567..1b3fe99b83a6 100644
@@ -353,10 +353,6 @@ static int sg_io(struct request_queue *q, struct gendisk *bd_disk,
 
 	start_time = jiffies;
 
-	/* ignore return value. All information is passed back to caller
-	 * (if he doesn't check that is his problem).
-	 * N.B. a non-zero SCSI status is _not_ necessarily an error.
-	 */
 	blk_execute_rq(bd_disk, rq, at_head);
 
 	hdr->duration = jiffies_to_msecs(jiffies - start_time);
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Bart Van Assche

Commit b7819b925918 ("block: remove the blk_execute_rq return value") changed the return type of blk_execute_rq() from int into void. That change made a comment in sg_io() obsolete. Hence remove that comment.

Cc Christoph Hellwig <[email protected]>
Cc Johannes Thumshirn <[email protected]>

Looks good.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Bart Van Assche
Quoted 20 lines · Bart Van Assche

Commit b7819b925918 ("block: remove the blk_execute_rq return value") changed the return type of blk_execute_rq() from int into void. That change made a comment in sg_io() obsolete. Hence remove that comment.

Cc Christoph Hellwig <[email protected]>
Cc Johannes Thumshirn <[email protected]>

---
block/scsi_ioctl.c | 4 ----

1 file changed, 4 deletions(-)
block/scsi_ioctl.c +0 -0
index 1048b0925567..1b3fe99b83a6 100644

block/scsi_ioctl.c static int sg_io(struct request_queue *q, struct gendisk *bd_disk, · line 358

Quoted 10 lines
block/scsi_ioctl.c +0 -4
@@ -353,10 +353,6 @@ static int sg_io(struct request_queue *q, struct gendisk *bd_disk,
 
 	start_time = jiffies;
 
-	/* ignore return value. All information is passed back to caller
-	 * (if he doesn't check that is his problem).
-	 * N.B. a non-zero SCSI status is _not_ necessarily an error.
-	 */
 	blk_execute_rq(bd_disk, rq, at_head);
 
 	hdr->duration = jiffies_to_msecs(jiffies - start_time);

Looks Good.

--
Himanshu Madhani Oracle Linux Engineering

maintainer Applied
#3 lore raw
In reply to Bart Van Assche
Quoted 3 lines · Bart Van Assche

Commit b7819b925918 ("block: remove the blk_execute_rq return value") changed the return type of blk_execute_rq() from int into void. That change made a comment in sg_io() obsolete. Hence remove that comment.

Thanks, applied.

Signature · 1 line
Jens Axboe