Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4881456rwd; Tue, 30 May 2023 11:12:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ATe/UqiSDb33gmg4ODDXGgbX51isWD/wwZNxshRH0KtkPyw0kBJrkJ357ltKHoeYWv6zu X-Received: by 2002:a05:6a20:7346:b0:10c:d3e5:1953 with SMTP id v6-20020a056a20734600b0010cd3e51953mr3853835pzc.3.1685470374076; Tue, 30 May 2023 11:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685470374; cv=none; d=google.com; s=arc-20160816; b=LQwAB99/TU3kgKjPu2g5Mr6wslYPiOvA+Xw7+X/8deQGGst7XFOFskdM/mIeT+FKMy dn29pgxm+wvfgqEMWbSpTjJP7+ZnEgP971bJboBEt+e00slZEUxzlX42ni9ZM6T7tGk7 af7Z9v7txWsF3qlZWofUARlQ+G7EMC2NEM79wsqDVwqFrmuyKuIcEJGpSKIVZxJcMtZz /f/oYnOw6NKgm/JRHRvdkpXXYwaflXbe+zWKegIJkt8fSMw9v7cSeGBjBox3V11ITjkT 1Fc/pX5QHmTI1dyJR01OCFs4xo96zQxofjw2dyUyWgObM8cGLbWaAOzNGyU415Bt84Yj exaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jSKPWaXFdOGi0gSIhT9fJ0n4SI2mbHxCHrbzwzolEv4=; b=TwzxUWAvfzMNpYoJ+pXqlSLbaTfuciO41jB5TridNbPJMPDeojOJFeK5j6Uk3rP6sr JPOW9VCh7qEWllf4AWM+ChF/5LWYFcJpnwwLjrIHgVt0QumI9CX5uvuMYZiR2cPHHkDd 0BuCcq6+HnaDsxCdbN+IcfknW81WqInFbQ2J16IH1mEILbEHvHTVlsW4cv6deOvdqI+P LYEmPWQoLZogQ6WQUvP2lPImmMcFjiBHSPSpwaD6D5YR3+OZ0WPofIp3VYkb9KNoqlkK CPH5XAa32PUEfA5qSZwB/zVc24BqYtiVcGFCDl3t01GL76kCeI0c4AWxcPLbqrrMbXTX mhFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hUgIqd3b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631842000000b00534769ac796si11926412pgy.495.2023.05.30.11.12.30; Tue, 30 May 2023 11:12:54 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hUgIqd3b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbjE3R4o (ORCPT + 99 others); Tue, 30 May 2023 13:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbjE3R4g (ORCPT ); Tue, 30 May 2023 13:56:36 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86A92BE for ; Tue, 30 May 2023 10:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685469330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jSKPWaXFdOGi0gSIhT9fJ0n4SI2mbHxCHrbzwzolEv4=; b=hUgIqd3b+1meSSmfdKzFDAz6YjycXWIAkAzqKRTvtf0IGABjKf53sFyJr3jWCt94IAGBS7 4wSpm5Z6LJeWtGeT+4LHrlPvlbrVMqptpq/j81IH8tm3UCYNQXnncAAYtRglZb/TNeB6KJ WlmoS2OBDK37wA1cFtW9Lj5f+AVrtlk= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-563-7UptTIn6N8aSZ4cTqPplkA-1; Tue, 30 May 2023 13:55:26 -0400 X-MC-Unique: 7UptTIn6N8aSZ4cTqPplkA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1855D3C14AA8; Tue, 30 May 2023 17:55:26 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.225.218]) by smtp.corp.redhat.com (Postfix) with SMTP id 33D6C112132C; Tue, 30 May 2023 17:55:23 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 30 May 2023 19:55:07 +0200 (CEST) Date: Tue, 30 May 2023 19:55:03 +0200 From: Oleg Nesterov To: Christian Brauner Cc: "Eric W. Biederman" , Linus Torvalds , Mike Christie , linux@leemhuis.info, nicolas.dichtel@6wind.com, axboe@kernel.dk, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com, sgarzare@redhat.com, jasowang@redhat.com, stefanha@redhat.com Subject: Re: [PATCH 3/3] fork, vhost: Use CLONE_THREAD to fix freezer/ps regression Message-ID: <20230530175503.GA21270@redhat.com> References: <20230524141022.GA19091@redhat.com> <87ttw1zt4i.fsf@email.froward.int.ebiederm.org> <20230525115512.GA9229@redhat.com> <87y1lcxwcj.fsf@email.froward.int.ebiederm.org> <87cz2mrtnk.fsf@email.froward.int.ebiederm.org> <87mt1pmezu.fsf@email.froward.int.ebiederm.org> <20230529111859.GA15193@redhat.com> <20230530-autor-faxnummer-01e0a31c0fb8@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530-autor-faxnummer-01e0a31c0fb8@brauner> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 05/30, Christian Brauner wrote: > > On Mon, May 29, 2023 at 01:19:39PM +0200, Oleg Nesterov wrote: > > > > If we want CLONE_THREAD, I think vhost_worker() should exit after get_signal() > > returns SIGKILL. Perhaps it should "disable" vhost_work_queue() somehow and > > Yes, and that's what I proposed at the beginning of this tread. Yes. And you know, I misunderstood you even if I had the same feeling from the very beginning too (except I wasn't and still not sure CLONE_THREAD is a good idea). Because... OK, I think it doesn't matter now ;) Mike, Eric, et al. I'll try to (at least) read your emails tomorrow. Another day spent on redhat bugzillas. Oleg.