Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp707215rwd; Tue, 16 May 2023 06:52:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wDhMycBbjqv/p7jF9gUZijjmnBDt8+9PG2vNTTk3zwhy5whs7bkJAEHPg+SamZjHkqG1v X-Received: by 2002:a05:6a20:3c9e:b0:103:f80c:78d4 with SMTP id b30-20020a056a203c9e00b00103f80c78d4mr23892013pzj.1.1684245176872; Tue, 16 May 2023 06:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684245176; cv=none; d=google.com; s=arc-20160816; b=SodNgZ4pZItV3cEtDuli9mLzKl34/17/u3UyAqWpZ4uNEEx2j5n07ivo7YXUlxSX1b i6Lu7mh9LTLkQCgHxmNvmdHk9Igs0OGT+db0/CIgdJdBMSVSK9S1a7+sivhUxfZFoUBg k+0xMt+g5VWndOMZXHgIK04pCxbwmCWa8u0OkuR/szXGyorCe+5hRg2YpVEhnJPQZzab ed6dFCD+VF73rVJsRoJfz2rk81ango/wRvsOthH94YRkGnPMS+UspDfFHoweVVORUxLt oVLAZ1hPiN9s0gZc9jwF1ba7DfW/ihu3oPbvQpo6lW3/SOh8pV6lnTHQHNZQi6zwbVqx /VyA== 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=XmVZa6rWHxSlUUKvwO4ykn0iGDBDGTKqwvGiklVx1pE=; b=BGnnXQSYL4NdjBTwNa7gBA5DtQhiRnYd2fhiAcJ4TIu4AtSTXeZebGGGpeL6Sqz7Rh Wk9F+vW/L8I6EhaxRsPaKqtb8nOnzqxPzaoJJmUVUWlypbb4yx+8hot2s5BPbocdQgHO bfu2Xjwiqn5fAusR/A/W1g7CGdl9BMQG+mW/wtYXlQ3hTs9dJ/CCMWhL6jRSPfViF3AC veDZjrJcmnptakFogefoLMwMhmlpJCr7FpOY8fS/Cki1RvuGFkISkqWItvZgPR/T5e2N vOPzMbXjf9nX9LZvXHRx4+usgklS5rz25z7ZDIOboGFK19JhGNkOCqUmJ2t2Np0VbDu4 G9LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E87Pii9a; 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 k64-20020a638443000000b00533ffebac7bsi6585920pgd.142.2023.05.16.06.52.42; Tue, 16 May 2023 06:52:56 -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=E87Pii9a; 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 S233713AbjEPNl0 (ORCPT + 99 others); Tue, 16 May 2023 09:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233691AbjEPNlW (ORCPT ); Tue, 16 May 2023 09:41:22 -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 9FDAACA for ; Tue, 16 May 2023 06:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684244427; 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=XmVZa6rWHxSlUUKvwO4ykn0iGDBDGTKqwvGiklVx1pE=; b=E87Pii9aDAyLFgl4TvWSOFHNq+xE3wUoBlTtDYs9umAdhRPqFm1/VP1pXs+ZbdD08DkHeD K5gQ2WCFhxUVjODvjYtGJxen38g3iCyBJR5afRCKDbtQ0tDmNkOCceJX/oqLNtJj1Zvr41 opOJ69XRGl8wm8xIhqA3yCEnb2ieDLM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-515-dIddS3M_Mu2_jKYn5PS7Nw-1; Tue, 16 May 2023 09:40:24 -0400 X-MC-Unique: dIddS3M_Mu2_jKYn5PS7Nw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 76AC680B2BB; Tue, 16 May 2023 13:40:22 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.226.147]) by smtp.corp.redhat.com (Postfix) with SMTP id D57D82166B31; Tue, 16 May 2023 13:40:17 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 16 May 2023 15:40:08 +0200 (CEST) Date: Tue, 16 May 2023 15:40:03 +0200 From: Oleg Nesterov To: Mike Christie Cc: Linus Torvalds , Christian Brauner , Thorsten Leemhuis , nicolas.dichtel@6wind.com, Linux kernel regressions list , hch@infradead.org, stefanha@redhat.com, jasowang@redhat.com, mst@redhat.com, sgarzare@redhat.com, virtualization@lists.linux-foundation.org, ebiederm@xmission.com, konrad.wilk@oracle.com, linux-kernel@vger.kernel.org, Jens Axboe Subject: Re: [PATCH v11 8/8] vhost: use vhost_tasks for worker threads Message-ID: <20230516134002.GB28890@redhat.com> References: <78c5e150-26cf-7724-74ee-4a0b16b944b1@oracle.com> <48842e92-835e-bc3f-7118-48b8f415f532@leemhuis.info> <20230515-vollrausch-liebgeworden-2765f3ca3540@brauner> <122b597e-a5fa-daf7-27bb-6f04fa98d496@oracle.com> <8bfb7d1d-f7d0-94ca-4777-e31a2003027a@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8bfb7d1d-f7d0-94ca-4777-e31a2003027a@oracle.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-2.1 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/15, Mike Christie wrote: > > --- a/kernel/vhost_task.c > +++ b/kernel/vhost_task.c > @@ -75,13 +75,13 @@ struct vhost_task *vhost_task_create(int (*fn)(void *), void *arg, > const char *name) > { > struct kernel_clone_args args = { > - .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM, > + .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM | > + CLONE_THREAD | CLONE_SIGHAND, I am looking at 6/8 on https://lore.kernel.org/lkml/ ... with this change kernel_wait4() in vhost_task_stop() won't work? Oleg.