From: Damien Le Moal Subject: Re: dm: dm-zoned: Ignore last smaller runt zone Date: Tue, 31 Oct 2017 15:55:12 +0900 Message-ID: <8ccf0341-7a34-a135-cb8b-5b9db69b838e@wdc.com> References: <20171028073934.23293-1-damien.lemoal@wdc.com> <20171030200539.GA14059@redhat.com> <2f633f7a-0f5d-265e-0790-05f3a24ab2bc@wdc.com> <20171031021550.GA15818@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20171031021550.GA15818@redhat.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: dm-devel@redhat.com List-Id: dm-devel.ids On 10/31/17 11:15, Mike Snitzer wrote: > On Mon, Oct 30 2017 at 8:48pm -0400, > Damien Le Moal wrote: > >> Mike, >> >> On 10/31/17 05:05, Mike Snitzer wrote: >>> On Sat, Oct 28 2017 at 3:39am -0400, >>> Damien Le Moal 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 >>>> Signed-off-by: Damien Le Moal >>> >>> Applied for 3.15 (also cc'd stable@) >> >> Thank you. Since this is a bug fix, I was hoping to get this in 4.14 as >> this is scheduled as an LTS. Is it too late for that ? > > Not opposed to sending another 3.14 pull to Linus but I'd really > prefer not to (especially in that we're already past rc7). > > Since 3.14 is LTS then there is no concern about 3.14's ability to get > this fix via stable@ (once it is merged for 3.15). OK. Thank you. -- Damien Le Moal Western Digital Research