Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1189633imu; Wed, 16 Jan 2019 14:26:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN4/OdWpeb8/p6JNNaZ8eCXWETUEsasGNsqS8Gdz121X6k74fe5QWINNSDk8Vrzuo9zGhvHn X-Received: by 2002:a63:7e5b:: with SMTP id o27mr10949263pgn.214.1547677592316; Wed, 16 Jan 2019 14:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547677592; cv=none; d=google.com; s=arc-20160816; b=rRTXuD+CxQ5ocPX4+b/7FwBwPU5GZOk8FvQ5hbRKMWVjVEVghExKvedoORCJ4vPQrU 1G1K7fz/jX4cpEaVxsKJAgkEpdjWFJ/fZmKDVr9sHatTH0x0yEPHCJOGGxswQSmZgfe9 8ywdxRt//c0LetZCgzHSA7NCCLHS+Y3axZSmr19iR9LIUfwzyeGBy0cVXPehQ/EesPHO x7s/5TebCK6xJlJ7SxXQyZmRdK2P7d50Wcd8xVvQZK8XAUcpQsNABPJK7g/2n+W7dJs8 JzcGN8O9EHsRNX8HLSeCQHbYToR5lP3GKFxMOErghab/Kpc2H/FM8DmY4NgyHTGFlgJW sFPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Tdoz5RBRwo2F55C/Q7VgtxgxlNO/X78VCNCD+ecPpCk=; b=tJPPFntjO08uekRWzBREqmsi7W0r7gGh8JNjUPjE4e53I+pktChYi4ggbRFcRf+9dL qrlNheuL4z6ZYXLJAqThovi/r9Ipr38QA82g/IaGiUEWYcHGrwKWS4+MW87068IFbAdf ZkFYQr+ymU2VIPtdFjq5za2+7dZhsttqA62lxPV9/ivP1Ni65hv2ogh3JrmjY0iVkk4T hf8f0kTGylvw1RKaovrahZgy5KTKFEPZ5G27HOPQp1RdRwwUrkDVdXMe1N7d4tbwEbna yzSSp+4jVKVx4IacOqcPzXBghJsIsNkyhhpx3arQ1wvIRLT0hm2ze0Iteq1WVLcBCXa2 yPug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si6934000plo.435.2019.01.16.14.26.16; Wed, 16 Jan 2019 14:26:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404718AbfAPOwn (ORCPT + 99 others); Wed, 16 Jan 2019 09:52:43 -0500 Received: from smtp.eu.citrix.com ([185.25.65.24]:12903 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728876AbfAPOwn (ORCPT ); Wed, 16 Jan 2019 09:52:43 -0500 X-IronPort-AV: E=Sophos;i="5.56,486,1539648000"; d="scan'208";a="84674941" Date: Wed, 16 Jan 2019 15:52:15 +0100 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Dongli Zhang CC: , , , , Subject: Re: [PATCH 1/1] xen-blkback: do not wake up shutdown_wq after xen_blkif_schedule() is stopped Message-ID: <20190116145215.igakzdkklc6f7h6k@mac> References: <1547646461-29803-1-git-send-email-dongli.zhang@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1547646461-29803-1-git-send-email-dongli.zhang@oracle.com> User-Agent: NeoMutt/20180716 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2019 at 09:47:41PM +0800, Dongli Zhang wrote: > There is no need to wake up xen_blkif_schedule() as kthread_stop() is able > to already wake up the kernel thread. > > Signed-off-by: Dongli Zhang > --- > drivers/block/xen-blkback/xenbus.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c > index a4bc74e..37ac59e 100644 > --- a/drivers/block/xen-blkback/xenbus.c > +++ b/drivers/block/xen-blkback/xenbus.c > @@ -254,10 +254,8 @@ static int xen_blkif_disconnect(struct xen_blkif *blkif) > if (!ring->active) > continue; > > - if (ring->xenblkd) { > + if (ring->xenblkd) > kthread_stop(ring->xenblkd); > - wake_up(&ring->shutdown_wq); I've now realized that shutdown_wq is basically useless, and should be removed, could you please do it in this patch? Thanks, Roger.