Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1430437pxf; Fri, 26 Mar 2021 07:42:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkCfc3uFm/YTQZq19mEMI6d3iYF3CiMW4grtSz6HqaJP8Bl7Kl9u70qEh41YYOX0ft6LgB X-Received: by 2002:a17:906:2551:: with SMTP id j17mr15732038ejb.441.1616769747938; Fri, 26 Mar 2021 07:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616769747; cv=none; d=google.com; s=arc-20160816; b=fNJjEsXisWmD0z54dcvERgUcB58TPGQLExzNJ01jWzudAU3mj8NHkVU9HqukgEqVpB ZD6mH5PEflRH9LI7PSILhHIafgufpwT/T3QdWjClYDbI7+KqfkH03uIrYFSg5Too+Mxs TudRexdnulnMEO7A3qQnVnWV5Eh100nVGw/W1fA6mEi0bcYyLZhOJgW9FnTRrmkghGAl bqO3H4wk/M1aQTrgr3eGWEzDyjO0vzOaff2pmvAxIu9VNwM280bFZ/9XtcST+ak2o0+b mV2WuGWrfsqa01nT+bYlOxEUdKx3IyR2ETuez7E5L6IXf1dbLrFl1o/4gu6y7piEu+i0 J4cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=hKpfpn0Haz5O7Pa2DVMAWbWylPr9Lp1uSORVeezS3tM=; b=zGXtIPxy1Bjl2YHP4AB5xbdHfmuBAhRboEZFbnglu6VAfEtHO3uIQFv/0RRiGDXNuq 5nSZlJnXeFpfLxt9Y/+Nvhj7kX1ZMwngEqDeOlGeBgd9sCMA+g5PnZxB9/XL3G0R+R16 KXBbzovQXroIg0Day6qqo6kr66XN6CORvo69UXP732YtA304tLgHLQns1F38UfsWnlgQ ZcsmaDUk0uY9B1tu91edzDk91ycpgcNxfHqJ0TEbDqVfkLIylgK4I4ZhnD53p94Mx3mg mAQ/RzAisTjZj4kzlQnmEVtA63fOAyVo5e8ti9yDH+kDulPnyZjNE9nSuOaRZWPtdjYu KCvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=O1EvnpWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co27si6695956edb.376.2021.03.26.07.42.05; Fri, 26 Mar 2021 07:42:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=O1EvnpWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbhCZOiz (ORCPT + 99 others); Fri, 26 Mar 2021 10:38:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhCZOi1 (ORCPT ); Fri, 26 Mar 2021 10:38:27 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C307BC0613B1 for ; Fri, 26 Mar 2021 07:38:27 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id n21so5605183ioa.7 for ; Fri, 26 Mar 2021 07:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hKpfpn0Haz5O7Pa2DVMAWbWylPr9Lp1uSORVeezS3tM=; b=O1EvnpWCmYLg+UkahvyhEvg/XCqctRasY7lvP3QhIs9ouZ4dTqW6A8i+c6pZpXK0bJ KmBG6yL8w5NP6Hd+2r37dS2fU34ka9UqLg/JWq+JP8SHBW9I2UE5zOges1YcqkFIuZw/ n3+gmKcP5T0gIS5DcC322cm53kjAsdVf+euumRVc53yd5kYmyw/QMAtsmJQvDbI9clxQ D4px8Kx67xdEctzDA09EjtpgjKKCKD+DbWBtZDDy0fGAxT4AM+LJw8ifiMgCFGmGNxeU p/dwiVLja233OHMhMPQaH4Soi4j6p00PEziHqn8+zUisqTnbv/1sl8I0Ct6+NbDLS7ww 47Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hKpfpn0Haz5O7Pa2DVMAWbWylPr9Lp1uSORVeezS3tM=; b=jWhNzJbf7WWbRCFI0F7y7v+ISGIsShCePfpYdHRd6xrTiYFlMMxkmXGdbfJK3aA+8W rO7e5Mq+0f6C98dc3hdxrOcdbvHqLHz8yoCGj3K7WU7v+2d9UWGvNWiPEMIC30xVHIZZ IvioVhc+sV6rzewUe17KJWSubeWdUGelg4Ke4ilsB4+R74opYOn5MUd8FpKrOjJvPC9K ZPUY5aCkDcyVx8Oxi5kdQ2pze7CEylGo+iDBLEQP4O/9sLQGkdr3YAyd1Vp8VIBib53f aMzNmOoPDKB8TIVFt+AUrBJTjRvYyAXmNTA7i/CVkPfj8Mr9WTww+x61lk7lu9/JNy8k 0aWw== X-Gm-Message-State: AOAM530PZHHcOjNcX0PGWyVeNXacUiDpI7zgb3ocpt0twEgHifsOpXqO /hca0XRXzdgI57EyDI6yF6oWLti2/kkOPA== X-Received: by 2002:a5e:8e41:: with SMTP id r1mr10525118ioo.5.1616769506922; Fri, 26 Mar 2021 07:38:26 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id o13sm4365167iob.17.2021.03.26.07.38.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Mar 2021 07:38:26 -0700 (PDT) Subject: Re: [PATCH 0/6] Allow signals for IO threads From: Jens Axboe To: Stefan Metzmacher , io-uring@vger.kernel.org Cc: torvalds@linux-foundation.org, ebiederm@xmission.com, oleg@redhat.com, linux-kernel@vger.kernel.org References: <20210326003928.978750-1-axboe@kernel.dk> <8efd9977-003b-be65-8ae2-4b04d8dd1224@samba.org> <0c91d9e7-82cd-bec2-19ae-cc592ec757c6@kernel.dk> Message-ID: <66fa3cfc-4161-76fe-272e-160097f32a53@kernel.dk> Date: Fri, 26 Mar 2021 08:38:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/26/21 7:59 AM, Jens Axboe wrote: > On 3/26/21 7:54 AM, Jens Axboe wrote: >>> The KILL after STOP deadlock still exists. >> >> In which tree? Sounds like you're still on the old one with that >> incremental you sent, which wasn't complete. >> >>> Does io_wq_manager() exits without cleaning up on SIGKILL? >> >> No, it should kill up in all cases. I'll try your stop + kill, I just >> tested both of them separately and didn't observe anything. I also ran >> your io_uring-cp example (and found a bug in the example, fixed and >> pushed), fwiw. > > I can reproduce this one! I'll take a closer look. OK, that one is actually pretty straight forward - we rely on cleaning up on exit, but for fatal cases, get_signal() will call do_exit() for us and never return. So we might need a special case in there to deal with that, or some other way of ensuring that fatal signal gets processed correctly for IO threads. -- Jens Axboe