Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp631721rwd; Thu, 1 Jun 2023 04:54:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Itjc/1TnF6LnBOInzA00luaapuzHi1k+XsyfE230O1dZnsMxTQqS7CBjOdZ+QEj2R/sFI X-Received: by 2002:a17:90a:8a98:b0:256:31f3:1f03 with SMTP id x24-20020a17090a8a9800b0025631f31f03mr6258982pjn.21.1685620483303; Thu, 01 Jun 2023 04:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685620483; cv=none; d=google.com; s=arc-20160816; b=vVU1V4GCzguO+cX4gMuIKrAZoVAKuWfyyx79yBbpQL0Znhgrz2DmuhUkSWpgAL5NUG IYhtU6r6t4h2EFngQ8pb4QXZkL4h72DQYwUwdFTehGWPEGRfejUiDU39HxrfWaOl/iRr Xg4xepeFmGW+9Y/FJjRDvSDegO3eP03Ylz6+rPQUMZnVhJ/RFfrnbwQR0D9aUES77CWG IoyBxJNOH829vrWYj5iVtsjfhAQokGjvyOUBSxxPir46qjbTFYg1BxfZken4/sgTe27u U3dJA2EFBELj9L9UjuUV4sna9fSzq81NZWALb2TmYNmnHm6fpeUHp5B7frS+1IpDtFp2 Z9wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=CCOzee7srtfBTCpec40W6l4B/ON5FMkzILDIW5jF0/A=; b=GtzF2hxw6danaI6QhtROpyJrHKUSGhHMrUyih9uFBxMNQB4y/qUHYc2qs/FW1zzAb8 DaKXKAeaELe6WESSrVaCQqf6erR/vLdT038oIX1sizPGfcqrs0kQoS6rjEn6HxZZ6aVD 7385f/1T4ZfPOlL/6ro8EAEObWzbuHTZGaBeannHHvCnyWdySsoBxvu/lDxtRICIoa/v 9uz2bsOx85hEL558hzPdUUJgDp5PNs35vMrmahXEZUrf+e5/GLEGs39ID5HYIym938AL lFRH07rmCOlOeUVexKaQ13s0JYlwD3MlUwwmtFUahwatlSJtvpkGnS3327vO0W2D20RS U4sA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a17090a8d1700b0025698fca606si982313pjo.109.2023.06.01.04.54.28; Thu, 01 Jun 2023 04:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbjFAL3a (ORCPT + 99 others); Thu, 1 Jun 2023 07:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232364AbjFAL33 (ORCPT ); Thu, 1 Jun 2023 07:29:29 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CF50123 for ; Thu, 1 Jun 2023 04:29:27 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1q4gUa-0001Kx-7O; Thu, 01 Jun 2023 13:29:20 +0200 Message-ID: Date: Thu, 1 Jun 2023 13:29:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US, de-DE To: Christian Brauner , Mike Christie , Linus Torvalds Cc: oleg@redhat.com, nicolas.dichtel@6wind.com, axboe@kernel.dk, ebiederm@xmission.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com, sgarzare@redhat.com, jasowang@redhat.com, stefanha@redhat.com, Linux kernel regressions list , hch@infradead.org, konrad.wilk@oracle.com References: <20230519-vormittag-dschungel-83607e9d2255@brauner> <20230601-herzallerliebst-dschungel-4515db351a0c@brauner> From: Thorsten Leemhuis Subject: Re: [RFC PATCH 0/8] vhost_tasks: Use CLONE_THREAD/SIGHAND In-Reply-To: <20230601-herzallerliebst-dschungel-4515db351a0c@brauner> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1685618968;fd8f4357; X-HE-SMSGID: 1q4gUa-0001Kx-7O X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.06.23 12:47, Christian Brauner wrote: > On Thu, Jun 01, 2023 at 09:58:38AM +0200, Thorsten Leemhuis wrote: >> On 19.05.23 14:15, Christian Brauner wrote: >>> On Thu, May 18, 2023 at 10:25:11AM +0200, Christian Brauner wrote: >>>> On Wed, May 17, 2023 at 07:09:12PM -0500, Mike Christie wrote: >>>>> This patch allows the vhost and vhost_task code to use CLONE_THREAD, >>>>> CLONE_SIGHAND and CLONE_FILES. It's a RFC because I didn't do all the >>>>> normal testing, haven't coverted vsock and vdpa, and I know you guys >>>>> will not like the first patch. However, I think it better shows what >>>> >>>> Just to summarize the core idea behind my proposal is that no signal >>>> handling changes are needed unless there's a bug in the current way >>>> io_uring workers already work. All that should be needed is >>>> s/PF_IO_WORKER/PF_USER_WORKER/ in signal.c. >> [...] >>>> So it feels like this should be achievable by adding a callback to >>>> struct vhost_worker that get's called when vhost_worker() gets SIGKILL >>>> and that all the users of vhost workers are forced to implement. >>>> >>>> Yes, it is more work but I think that's the right thing to do and not to >>>> complicate our signal handling. >>>> >>>> Worst case if this can't be done fast enough we'll have to revert the >>>> vhost parts. I think the user worker parts are mostly sane and are >>> >>> As mentioned, if we can't settle this cleanly before -rc4 we should >>> revert the vhost parts unless Linus wants to have it earlier. >> >> Meanwhile -rc5 is just a few days away and there are still a lot of >> discussions in the patch-set proposed to address the issues[1]. Which is >> kinda great (albeit also why I haven't given it a spin yet), but on the >> other hand makes we wonder: > > You might've missed it in the thread but it seems everyone is currently > operating under the assumption that the preferred way is to fix this is > rather than revert. I saw that, but that was also a week ago already, so I slowly started to wonder if plans might have/should be changed. Anyway: if that's still the plan forward it's totally fine for me if it's fine for Linus. :-D BTW: I for now didn't sit down to test Mike's patches, as due to all the discussions I assumed new ones would be coming sooner or later anyway. If it's worth giving them a shot, please let me know. > [...] Thx for the update! Ciao, Thorsten