* [PATCH] tgt: Wrong comment and redundant code in scsi_map_user_pages
@ 2009-05-14 15:55 Boaz Harrosh
2009-05-21 12:49 ` Boaz Harrosh
0 siblings, 1 reply; 2+ messages in thread
From: Boaz Harrosh @ 2009-05-14 15:55 UTC (permalink / raw)
To: FUJITA Tomonori, James Bottomley, linux-scsi
scsi_init_io() fully prepares the command properly. scsi_tgt_lib need
not assign scsi_cmnd members any more.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
---
drivers/scsi/scsi_tgt_lib.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c
index 1030327..ef11b4d 100644
--- a/drivers/scsi/scsi_tgt_lib.c
+++ b/drivers/scsi/scsi_tgt_lib.c
@@ -383,11 +383,6 @@ static int scsi_map_user_pages(struct scsi_tgt_cmd *tcmd, struct scsi_cmnd *cmd,
scsi_release_buffers(cmd);
goto unmap_rq;
}
- /*
- * we use REQ_TYPE_BLOCK_PC so scsi_init_io doesn't set the
- * length for us.
- */
- cmd->sdb.length = blk_rq_bytes(rq);
return 0;
--
1.6.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tgt: Wrong comment and redundant code in scsi_map_user_pages
2009-05-14 15:55 [PATCH] tgt: Wrong comment and redundant code in scsi_map_user_pages Boaz Harrosh
@ 2009-05-21 12:49 ` Boaz Harrosh
0 siblings, 0 replies; 2+ messages in thread
From: Boaz Harrosh @ 2009-05-21 12:49 UTC (permalink / raw)
To: FUJITA Tomonori, James Bottomley, linux-scsi
On 05/14/2009 06:55 PM, Boaz Harrosh wrote:
> scsi_init_io() fully prepares the command properly. scsi_tgt_lib need
> not assign scsi_cmnd members any more.
>
> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
> ---
> drivers/scsi/scsi_tgt_lib.c | 5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c
> index 1030327..ef11b4d 100644
> --- a/drivers/scsi/scsi_tgt_lib.c
> +++ b/drivers/scsi/scsi_tgt_lib.c
> @@ -383,11 +383,6 @@ static int scsi_map_user_pages(struct scsi_tgt_cmd *tcmd, struct scsi_cmnd *cmd,
> scsi_release_buffers(cmd);
> goto unmap_rq;
> }
> - /*
> - * we use REQ_TYPE_BLOCK_PC so scsi_init_io doesn't set the
> - * length for us.
> - */
> - cmd->sdb.length = blk_rq_bytes(rq);
>
> return 0;
>
Dear TOMO
Ping?
James I forgot to say this should be for post-merge tree as the use
of blk_rq_bytes(rq) was done by Tejun. (Given Tomo's Ack of course)
Thanks
Boaz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-21 12:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 15:55 [PATCH] tgt: Wrong comment and redundant code in scsi_map_user_pages Boaz Harrosh
2009-05-21 12:49 ` Boaz Harrosh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.