Return-Path: Received: from mail-io0-f182.google.com ([209.85.223.182]:33339 "EHLO mail-io0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbeGDN4q (ORCPT ); Wed, 4 Jul 2018 09:56:46 -0400 Received: by mail-io0-f182.google.com with SMTP id z20-v6so4967610iol.0 for ; Wed, 04 Jul 2018 06:56:45 -0700 (PDT) Subject: Re: [PATCH v3] block: don't use blocking queue entered for recursive bio submits To: Alexandru Moise <00moses.alexander00@gmail.com>, stable@vger.kernel.org, gregkh@linuxfoundation.org, harsh@prjkt.io References: <20180704115159.7896-1-00moses.alexander00@gmail.com> From: Jens Axboe Message-ID: <6c743f1f-cc16-0345-1c91-55b1a1589edc@kernel.dk> Date: Wed, 4 Jul 2018 07:56:42 -0600 MIME-Version: 1.0 In-Reply-To: <20180704115159.7896-1-00moses.alexander00@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 7/4/18 5:51 AM, Alexandru Moise wrote: > From: Jens Axboe > > commit cd4a4ae4683dc2e09380118e205e057896dcda2b upstream > > If we end up splitting a bio and the queue goes away between > the initial submission and the later split submission, then we > can block forever in blk_queue_enter() waiting for the reference > to drop to zero. This will never happen, since we already hold > a reference. > > Mark a split bio as already having entered the queue, so we can > just use the live non-blocking queue enter variant. > > Thanks to Tetsuo Handa for the analysis. > > We're running fio tests and the tasks get stuck in a D state forever > when systemd-udevd tries to read the partition table. This patch solves > it. Please apply to 4.17 stable. Can you please stop spamming with this?! If you would like to see something in stable, ask the maintainer to get it included. It's not up to random end users. -- Jens Axboe