All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: Damien Le Moal <damien.lemoal@wdc.com>
Cc: dm-devel@redhat.com
Subject: Re: dm: dm-zoned: Ignore last smaller runt zone
Date: Mon, 30 Oct 2017 16:05:40 -0400	[thread overview]
Message-ID: <20171030200539.GA14059@redhat.com> (raw)
In-Reply-To: <20171028073934.23293-1-damien.lemoal@wdc.com>

On Sat, Oct 28 2017 at  3:39am -0400,
Damien Le Moal <damien.lemoal@wdc.com> wrote:

> The scsi layer allows ZBC drives to have a smaller last runt zone. For
> such device, specifying the entire capacity for a dm-zoned target table
> entry fails as the specified capacity is not aligned on the device zone
> size indicated in the request queue structure of the device.
> 
> Fix this problem by ignoring the last runt zone in the entry length
> when seting up the dm-zoned target (ctr method) and when iterating table
> entries of the target (iterate_devices method). This allows dm-zoned
> users to still easily setup a target using the entire device capacity
> (as mandated by dm-zoned) or the aligned capacity excluding thelast runt
> zone.
> 
> While at it, replace direct references to the device queue chunk_sectors
> limit with calls to the accessor blk_queue_zone_sectors().
> 
> Reported-by: Peter Desnoyers <pjd@ccs.neu.edu>
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>

Applied for 3.15 (also cc'd stable@)

  reply	other threads:[~2017-10-30 20:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-28  7:39 [PATCH] dm: dm-zoned: Ignore last smaller runt zone Damien Le Moal
2017-10-30 20:05 ` Mike Snitzer [this message]
2017-10-31  0:48   ` Damien Le Moal
2017-10-31  2:15     ` Mike Snitzer
2017-10-31  6:55       ` Damien Le Moal

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=20171030200539.GA14059@redhat.com \
    --to=snitzer@redhat.com \
    --cc=damien.lemoal@wdc.com \
    --cc=dm-devel@redhat.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.