From: Hannes Reinecke <hare@suse.de>
To: HanBin Yoon <hanbinyoon@google.com>,
linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org
Cc: tytso@mit.edu
Subject: Re: [RFC] SCSI support for SMR/ZBC commands
Date: Thu, 08 May 2014 10:31:40 +0200 [thread overview]
Message-ID: <536B40EC.4070905@suse.de> (raw)
In-Reply-To: <CACs+NxSQovDcanMXBbqr+rd=7TCa99DKzxkGQvuM9+_oy3BGBA@mail.gmail.com>
On 05/05/2014 11:28 PM, HanBin Yoon wrote:
> SMR (Shingled Magnetic Recording) disk drives are able to achieve higher areal
> density, at the cost of making media write operations to the disk more
> inflexible (i.e., divides the disk into multiple zones, each of which can be
> written sequentially only).
>
> Following on some discussions in the Linux filesystem community around SMR
> [1][2], I'd like to work on adding early support for SMR-related SCSI commands
> (ZBC, or Zoned Block Commands [3]). First, I'd like to ask the Linux SCSI/
> filesystem communities for advice and recommendations on how to go about it.
>
> [1] http://thread.gmane.org/gmane.linux.file-systems/81970/focus=82309
> [2] http://www.spinics.net/lists/linux-fsdevel/msg72305.html
> [3] http://www.t10.org/cgi-bin/ac.pl?t=d&f=14-010r8.pdf
>
> I'm thinking of classifying an SMR disk drive as an sd-type SCSI device, as SMR
> is expected to be delivered in the form of an add-on/enhancement to existing
> traditional disk drives. SMR disk drives will continue to support random read
> capability.
>
> As for exposing ZBC to upper layers of the stack, I'm thinking of two potential
> ways:
> A) As an ioctl handled by sd_ioctl(), in drivers/scsi/sd.c
> B) As a request command flag type handled by sd_prep_fn(), in
> drivers/scsi/sd.c
>
The actual idea was that ZMR/ZBC devices will show up as a separate
SCSI device type. This should be handled as a separate sub-type of
the existing 'sd' driver.
We have discussed the problem with exposing zones to upper layers;
as there'll be quite a lot of zones per device (in the order of
1000) it's impractical to expose these zones via sysfs individually.
If there were a way to expose the zone information in compact way we
might want to revisit this.
I'm not quite convinced that we need an additional ioctl for the two
new commands; my initial plan here is to add support for this in
sg3_utils and use the stock SG_IO here.
I would start by adding support for the special request (as you
already did in your second patch), and to figure out if and how the
zone information could be held in the block request_queue structure.
Problem here is that we need to tweak the allocator to not issue
requests spanning two zones. So either we'll be setting up a
device-mapper target here (like dm-switch or suchlike) which will
format the I/O for us, or we're pushing this information into the
block layer proper.
I really would like to see the real solution of pushing it into the
block layer / request_queue limitations, but for that we'll need
some efficient way of storing and looking up the zone configuration.
Ted T'so said he would be having some code for that ... Ted?
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-05-08 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 21:28 [RFC] SCSI support for SMR/ZBC commands HanBin Yoon
2014-05-08 8:31 ` Hannes Reinecke [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=536B40EC.4070905@suse.de \
--to=hare@suse.de \
--cc=hanbinyoon@google.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=tytso@mit.edu \
/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.