Return-Path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:49243 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750824AbdCHP55 (ORCPT ); Wed, 8 Mar 2017 10:57:57 -0500 Subject: Re: Patch "loop: fix LO_FLAGS_PARTSCAN hang" has been added to the 4.10-stable tree To: Omar Sandoval , , , References: <1488987540546@kroah.com> <39818fd9-a870-cc63-6ba0-0b9f197354eb@fb.com> <6df6a48e-af0d-eb27-1501-c83521e5754f@fb.com> CC: , From: Jens Axboe Message-ID: <2bd70c78-bf82-068f-e05f-5bb741fac0c1@fb.com> Date: Wed, 8 Mar 2017 08:55:04 -0700 MIME-Version: 1.0 In-Reply-To: <6df6a48e-af0d-eb27-1501-c83521e5754f@fb.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 03/08/2017 08:52 AM, Omar Sandoval wrote: > On 03/08/2017 07:47 AM, Jens Axboe wrote: >> On 03/08/2017 08:39 AM, gregkh@linuxfoundation.org wrote: >>> >>> This is a note to let you know that I've just added the patch titled >>> >>> loop: fix LO_FLAGS_PARTSCAN hang >>> >>> to the 4.10-stable tree which can be found at: >>> http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary >>> >>> The filename of the patch is: >>> loop-fix-lo_flags_partscan-hang.patch >>> and it can be found in the queue-4.10 subdirectory. >>> >>> If you, or anyone else, feels it should not be added to the stable tree, >>> please let know about it. >>> >>> >>> From e02898b423802b1f3a3aaa7f16e896da069ba8f7 Mon Sep 17 00:00:00 2001 >>> From: Omar Sandoval >>> Date: Wed, 1 Mar 2017 10:42:38 -0800 >>> Subject: loop: fix LO_FLAGS_PARTSCAN hang >>> >>> From: Omar Sandoval >>> >>> commit e02898b423802b1f3a3aaa7f16e896da069ba8f7 upstream. >>> >>> loop_reread_partitions() needs to do I/O, but we just froze the queue, >>> so we end up waiting forever. This can easily be reproduced with losetup >>> -P. Fix it by moving the reread to after we unfreeze the queue. >>> >>> Fixes: ecdd09597a57 ("block/loop: fix race between I/O and set_status") >>> Reported-by: Tejun Heo >>> Signed-off-by: Omar Sandoval >>> Reviewed-by: Ming Lei >>> Signed-off-by: Jens Axboe >>> Signed-off-by: Greg Kroah-Hartman >> >> Why is this being added to a bunch of trees that don't have the commit >> that it fixes? It should not go into any of these. >> > > The commit it fixes was marked for stable, which is why I also marked this > one for stable. And it looks like that commit is also queued up for these > stable releases: > > http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-4.10/block-loop-fix-race-between-i-o-and-set_status.patch > http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-4.9/block-loop-fix-race-between-i-o-and-set_status.patch > http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-4.4/block-loop-fix-race-between-i-o-and-set_status.patch > > So it should be okay. Ah yes, that makes sense, I missed that. -- Jens Axboe