From: Olaf Hering <olaf@aepfle.de>
To: Kai Makisara <Kai.Makisara@kolumbus.fi>
Cc: linux-scsi@vger.kernel.org
Subject: Re: request size limit in scsi tape driver
Date: Thu, 23 Aug 2012 15:10:22 +0200 [thread overview]
Message-ID: <20120823131022.GA17206@aepfle.de> (raw)
In-Reply-To: <alpine.LNX.2.00.1208202133500.5250@kai.makisara.local>
On Mon, Aug 20, Kai Makisara wrote:
> On Mon, 20 Aug 2012, Olaf Hering wrote:
>
> >
> > Currently the st driver does not to break up write requests into smaller
> > chunks to satisfy the ->max_hw_sectors limit of the underlying host driver.
> >
> > # modprobe -v scsi_debug ptype=1 opts=1 dev_size_mb=123
> > # dd if=/dev/zero of=/dev/st0 bs=$((1024*54321))
> >
> > This leads to -EBUSY from this call chain:
> > st_write -> st_do_scsi -> st_scsi_execute -> blk_rq_map_user
> >
> > What is the reason for this behaviour?
> > Should st_write write in smaller chunks, or would that break real
> > hardware because they expect certain block sizes?
> >
> In variable block mode the write() byte count determines the size of the
> tape block. Exactly one SCSI command is used to write one block. This is
> why the writes can't be split in variable block mode. In fixed block mode
> the writes are split but this results in several tape blocks for each
> write().
Thats very unfortunate.
Would it be possible in theory to split and reassemble the SCSI commands
in backend/frontend to overcome this protocol limit in pvscsi?
Olaf
prev parent reply other threads:[~2012-08-23 13:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 15:50 request size limit in scsi tape driver Olaf Hering
2012-08-20 18:44 ` Kai Makisara
2012-08-23 13:10 ` Olaf Hering [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=20120823131022.GA17206@aepfle.de \
--to=olaf@aepfle.de \
--cc=Kai.Makisara@kolumbus.fi \
--cc=linux-scsi@vger.kernel.org \
/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 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).