Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp640509imm; Wed, 10 Oct 2018 01:46:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV60OteYa/lRVYGOZAa2O0znfiW3jNVdcAqnO28l6HYJQB7IZ4UnDyPqi9nlf2TH/SX4Dd7rF X-Received: by 2002:a63:d14a:: with SMTP id c10-v6mr29157467pgj.384.1539161176049; Wed, 10 Oct 2018 01:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539161176; cv=none; d=google.com; s=arc-20160816; b=Xh8rt3D6pqs2KyN/46qDP8qIDWr6ay1sPz9guWV1HoIE4l7Rq6bHH957PsXqBTn3mA lSrf5ZQT6JLl3ykNmoJ8ijIm77nPhE/8GocNrr+fZMMvyPSSI8CCYUenCWad9qI2zVzZ ZUwHdUFMG/F1giQscz6psEU8Ff9l78CAiwxz2mTMGGbfRrzR5cgtvAn8/6paY2o3M7jd qsFqjJKv6vVluv3kSvOPNaBZrRVE8sA88QGkvcEJ8ALGppdPmAZE6d25QkCih0Swx/25 y4CfTI4A07YtZoRjMV58y2peyMaBHwxZtw4iGYhrkdpg6etaLK1NoznI7tAiVviizP2Y +8Ug== 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:dkim-signature; bh=Vk562HwpN6073DhKe/aQen9rxT2/LXMJnfWRg8ItKMI=; b=Jz12f8TtVDrIb3YEubOcUJK6ZNSwxdHQZP9lJ7Q3i7Zk666S/SVoVSz794oo2QZgfI IOVCKXHlUoY34CSBj3foeDOYCscAoMBq9i4AiOnvG4KyLZArGH++hdYBJN706qSSkinh eTDcfkOe9QCCKkqrReq+hNi4IDK5KGKmwBwJ+Y/C5+/kfLwltt7ldlVA4i0NQpHmNwZx 0EZhnNLzDCG1WCWq2q1smtLOQ1uH16B7G6SVxnGjtcIINgddkBowKu1YsAaFPdscXzAX T0TnB+PC5+ysSN+ozHbYmwX/PFPyEIB8MwkrpxFy7jNE2vsdb9X0hJbJNsIQSR+7C0yw XDDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="SMZ+Eb/Z"; 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 a10-v6si22985534pgk.365.2018.10.10.01.46.00; Wed, 10 Oct 2018 01:46:16 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="SMZ+Eb/Z"; 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 S1727470AbeJJQFG (ORCPT + 99 others); Wed, 10 Oct 2018 12:05:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49304 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbeJJQFF (ORCPT ); Wed, 10 Oct 2018 12:05:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Vk562HwpN6073DhKe/aQen9rxT2/LXMJnfWRg8ItKMI=; b=SMZ+Eb/ZcH7SqlDmq5V8/DSn/ idBvgjfBPyydzr87I7sgA5yTxC02BA4AQXorstZeCnqPWDWyr0EuT914+Wb2LGAhARHsOpm5ydkBv iJ0FZKJHIHfWastVU6aji37R6pWVOtEVStLvGqZKaQkvUIEsjcyQQwb2t/RIEx2vkdyMD9xp4eB/Q pDZdRV4K9C45lNTeQ6twJFJq+4Se+59h1Nr9YqH9Cxil2Hrvek9xMVojATxg/6o2T+AvMZfwMzK7A 84AZg0J4r9OSzESHNLMs/lL21AZ5OUBbTy/Bk09I1mXq1EcLGPFKFpxTJIE8MDSxg7936rpxTQait C/7N7DWzA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAA5h-0006am-QJ; Wed, 10 Oct 2018 08:43:37 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D3AEF20298569; Wed, 10 Oct 2018 10:43:35 +0200 (CEST) Date: Wed, 10 Oct 2018 10:43:35 +0200 From: Peter Zijlstra To: "Nicholas A. Bellinger" Cc: target-devel , linux-scsi , lkml , "Martin K. Petersen" , Mike Christie , Hannes Reinecke , Christoph Hellwig , Sagi Grimberg , "Bryant G. Ly" , Bart Van Assche Subject: Re: [PATCH 2/2] target: Fix target_wait_for_sess_cmds breakage with active signals Message-ID: <20181010084335.GN5728@hirez.programming.kicks-ass.net> References: <1539141790-13557-1-git-send-email-nab@linux-iscsi.org> <1539141790-13557-3-git-send-email-nab@linux-iscsi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1539141790-13557-3-git-send-email-nab@linux-iscsi.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 10, 2018 at 03:23:10AM +0000, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > With the addition of commit 00d909a107 in v4.19-rc, it incorrectly assumes no > signals will be pending for task_struct executing the normal session shutdown > and I/O quiesce code-path. > > For example, iscsi-target and iser-target issue SIGINT to all kthreads as > part of session shutdown. This has been the behaviour since day one. Not knowing much context here; but does it make sense for those kthreads to handle signals, ever? Most kthreads should be fine with ignore_signals().