* RE: [linux-iscsi-devel] [PATCH]cleanup of xmit_task
[not found] <41A4C00E.5080603@netapp.com>
@ 2004-11-26 10:49 ` Smitha Narayanaswamy (smithan)
2004-12-09 23:05 ` David Wysochanski
0 siblings, 1 reply; 2+ messages in thread
From: Smitha Narayanaswamy (smithan) @ 2004-11-26 10:49 UTC (permalink / raw)
To: 'David Wysochanski'; +Cc: linux-iscsi-devel, linux-scsi
<..snip>
> @@ -720,17 +720,6 @@ fill_task_immediate_data(struct iscsi_ta
> struct crypto_tfm *tfm= NULL;
> struct scatterlist tmpsg;
>
> - /* make sure we have data to send when we expect to */
> - if ((iscsi_expected_data_length(sc) == 0) &&
> - ((sc->request_bufflen == 0) || (sc->request_buffer
> == NULL))) {
> - printk("iSCSI: xmit_task for itt %u, sc 0x%x,
> expected %u, no "
> - "data in buffer. request_buffer %p len
> %u, buffer %p "
> - "len %u\n", task->itt, sc->cmnd[0],
> - iscsi_expected_data_length(sc),
> sc->request_buffer,
> - sc->request_bufflen, sc->buffer, sc->bufflen);
> - scsi_print_command(sc);
> - return 0;
> - }
>
> What protects this function from being called with a scsi command
> that has no data? Are you sure we don't need this check with maybe
> just a return here?
>
Is it possible to have scsi write command with no data being sent?
<snip..>
Thanks,
Smitha
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-iscsi-devel] [PATCH]cleanup of xmit_task
2004-11-26 10:49 ` [linux-iscsi-devel] [PATCH]cleanup of xmit_task Smitha Narayanaswamy (smithan)
@ 2004-12-09 23:05 ` David Wysochanski
0 siblings, 0 replies; 2+ messages in thread
From: David Wysochanski @ 2004-12-09 23:05 UTC (permalink / raw)
To: smithan; +Cc: linux-iscsi-devel, linux-scsi
Smitha Narayanaswamy (smithan) wrote:
> <..snip>
>
> > @@ -720,17 +720,6 @@ fill_task_immediate_data(struct iscsi_ta
> > struct crypto_tfm *tfm= NULL;
> > struct scatterlist tmpsg;
> >
> > - /* make sure we have data to send when we expect to */
> > - if ((iscsi_expected_data_length(sc) == 0) &&
> > - ((sc->request_bufflen == 0) || (sc->request_buffer
> > == NULL))) {
> > - printk("iSCSI: xmit_task for itt %u, sc 0x%x,
> > expected %u, no "
> > - "data in buffer. request_buffer %p len
> > %u, buffer %p "
> > - "len %u\n", task->itt, sc->cmnd[0],
> > - iscsi_expected_data_length(sc),
> > sc->request_buffer,
> > - sc->request_bufflen, sc->buffer, sc->bufflen);
> > - scsi_print_command(sc);
> > - return 0;
> > - }
> >
> > What protects this function from being called with a scsi command
> > that has no data? Are you sure we don't need this check with maybe
> > just a return here?
> >
>
> Is it possible to have scsi write command with no data being sent?
>
I don't know.
Since nobody replied with a definate 'yes', I'd guess
it's probably a pathalogical case that we don't
need to waste time checking for in the main IO path.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-09 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <41A4C00E.5080603@netapp.com>
2004-11-26 10:49 ` [linux-iscsi-devel] [PATCH]cleanup of xmit_task Smitha Narayanaswamy (smithan)
2004-12-09 23:05 ` David Wysochanski
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.