* [PATCH] block: Remove an obsolete comment from sg_io()
@ 2021-04-13 3:41 Bart Van Assche
2021-04-13 4:23 ` Chaitanya Kulkarni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bart Van Assche @ 2021-04-13 3:41 UTC (permalink / raw)
To: Jens Axboe
Cc: linux-block, Christoph Hellwig, Bart Van Assche, Johannes Thumshirn
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 <hch@lst.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
block/scsi_ioctl.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
index 1048b0925567..1b3fe99b83a6 100644
--- a/block/scsi_ioctl.c
+++ b/block/scsi_ioctl.c
@@ -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);
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] block: Remove an obsolete comment from sg_io()
2021-04-13 3:41 [PATCH] block: Remove an obsolete comment from sg_io() Bart Van Assche
@ 2021-04-13 4:23 ` Chaitanya Kulkarni
2021-04-13 17:20 ` Himanshu Madhani
2021-04-13 17:24 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Chaitanya Kulkarni @ 2021-04-13 4:23 UTC (permalink / raw)
To: Bart Van Assche, Jens Axboe
Cc: linux-block, Christoph Hellwig, Johannes Thumshirn
On 4/12/21 20:44, Bart Van Assche wrote:
> 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 <hch@lst.de>
> Cc: Johannes Thumshirn <jthumshirn@suse.de>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Looks good.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] block: Remove an obsolete comment from sg_io()
2021-04-13 3:41 [PATCH] block: Remove an obsolete comment from sg_io() Bart Van Assche
2021-04-13 4:23 ` Chaitanya Kulkarni
@ 2021-04-13 17:20 ` Himanshu Madhani
2021-04-13 17:24 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Himanshu Madhani @ 2021-04-13 17:20 UTC (permalink / raw)
To: Bart Van Assche
Cc: Jens Axboe, linux-block, Christoph Hellwig, Johannes Thumshirn
> On Apr 12, 2021, at 10:41 PM, Bart Van Assche <bvanassche@acm.org> wrote:
>
> 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 <hch@lst.de>
> Cc: Johannes Thumshirn <jthumshirn@suse.de>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---
> block/scsi_ioctl.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c
> index 1048b0925567..1b3fe99b83a6 100644
> --- a/block/scsi_ioctl.c
> +++ b/block/scsi_ioctl.c
> @@ -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.
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
--
Himanshu Madhani Oracle Linux Engineering
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] block: Remove an obsolete comment from sg_io()
2021-04-13 3:41 [PATCH] block: Remove an obsolete comment from sg_io() Bart Van Assche
2021-04-13 4:23 ` Chaitanya Kulkarni
2021-04-13 17:20 ` Himanshu Madhani
@ 2021-04-13 17:24 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2021-04-13 17:24 UTC (permalink / raw)
To: Bart Van Assche; +Cc: linux-block, Christoph Hellwig, Johannes Thumshirn
On 4/12/21 9:41 PM, Bart Van Assche wrote:
> 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.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-04-13 17:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13 3:41 [PATCH] block: Remove an obsolete comment from sg_io() Bart Van Assche
2021-04-13 4:23 ` Chaitanya Kulkarni
2021-04-13 17:20 ` Himanshu Madhani
2021-04-13 17:24 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).