From: David Wysochanski <davidw@netapp.com>
To: smithan@cisco.com
Cc: linux-iscsi-devel@lists.sourceforge.net, linux-scsi@vger.kernel.org
Subject: Re: [linux-iscsi-devel] [PATCH]cleanup of xmit_task
Date: Thu, 09 Dec 2004 18:05:23 -0500 [thread overview]
Message-ID: <41B8DA33.7060400@netapp.com> (raw)
In-Reply-To: <000001c4d3a5$a3e7f990$6f074d0a@apac.cisco.com>
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.
prev parent reply other threads:[~2004-12-09 23:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41B8DA33.7060400@netapp.com \
--to=davidw@netapp.com \
--cc=linux-iscsi-devel@lists.sourceforge.net \
--cc=linux-scsi@vger.kernel.org \
--cc=smithan@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.