Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2263161rwd; Mon, 15 May 2023 09:14:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ycJX15P0ThpaozedL6i1vNDolkLcN9msq2Hp4fzIgHy3yBrrjeka7L3QjShZvrbtLaXnz X-Received: by 2002:a17:90a:c70e:b0:250:ca46:dfe1 with SMTP id o14-20020a17090ac70e00b00250ca46dfe1mr18804832pjt.48.1684167286037; Mon, 15 May 2023 09:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684167286; cv=none; d=google.com; s=arc-20160816; b=n+f61qBw1nYcBX+EH1J+YZ+27WymNsN9r8pFJzMiUAVlPMunIRWrK+kuUc+vd1VNYS LvMLw/NOiyCZsT+KYDeWkSMTZme/OKEOxgEXj56cmx1DxGEVo0gaARUItGIAXXleCGsv EAuB34ShiK85S5rYl2eUIqz7B60MRHJk8T703DLrlBHLZ358oO1Q8PCkhUq4c10UmU6m dCVVHt7tEK9Htewyo488XUrrnxQD8yR+NpKBGCabuOb8M+xoM7FGJmJ+zi1B4eJBe9Ms EoDb205NmPb/DC1R+h4/SGWSognyqZPbo3cQIUkRHHewMoZ2FqSSXxAlp/ddFpywGFnt 6LBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NzJTVdNPJahN4ZaYSD0w8tFsg1kEZiXFWub3q5MNDtA=; b=FbuBLoEXN1zAV/LgGkl21P6WIn0yZFS6lB2AaKVbQSYSVSSUXmc0LDxfqn7dNIqvMi T42YC9EBmC9KaIl5gVVAhtYa6OilLUEM4QgFyGox2aKy9EY4PQPuA01SXSXKTC11TXvA Lf4PoeykqstTedJkkJ0cB48VG8/MgDS3eLGG/V5gB8DN8t+0ML/+ZPQ4nfhL+QBWHjN8 YzkOZg3b6ij4lCXUOw2FbrwFUkNdWMpNAlKM99UqIGVYf9t7E1oSB97BeeF4oBd43KE4 qUmB1AFpgG60dk7FMuxMQ6fAPNFuI/GPamYdsDWTThbgNI8bzNX9A4gcfjXR5joRiGhc R9EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=U+fyHzrg; 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 y23-20020a17090aa41700b00235dc16de3asi29982847pjp.16.2023.05.15.09.14.27; Mon, 15 May 2023 09:14:46 -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=@linux-foundation.org header.s=google header.b=U+fyHzrg; 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 S242260AbjEOPyX (ORCPT + 99 others); Mon, 15 May 2023 11:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbjEOPyW (ORCPT ); Mon, 15 May 2023 11:54:22 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6F6AFF for ; Mon, 15 May 2023 08:54:20 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-50c8d87c775so17971368a12.3 for ; Mon, 15 May 2023 08:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1684166059; x=1686758059; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NzJTVdNPJahN4ZaYSD0w8tFsg1kEZiXFWub3q5MNDtA=; b=U+fyHzrgCISHQTmjmFGe4guvDIc2B3otJoWd81uxPuhAgICsQnB9um8nw4ffASawyK 5/BwEVZXEXSzOkYZGBsxilEmhDBdvCkEFrruS2t3ImgapQVRjwpuIROMRaCeAT8ZEjcm DqUYIRTIIW7c/u5MagufCbX9AQI4xwWQt3Ync= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684166059; x=1686758059; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NzJTVdNPJahN4ZaYSD0w8tFsg1kEZiXFWub3q5MNDtA=; b=M/1nTuRrn8F9+/DJIwKVydNTqi5AFqQIMFXpH0i9XZgW+M6tsGiKFXmIQWN9irDv7b 7BE9uc577C5mt+lz6ZUIxaNniyc0JOPQCSbA0/vTPf4pyFhWCm1ene5je5Rd+C4O9Awy RWolfAAdOOGUoTeuhVeXBpyhMDnSPGA8F9AUHOTE1mYJLchM7csmKkWROZwfg/DGbYj2 LVdtLBbFU26cLkARjXuvK+pcaUyv6RkicWS1+WdzRdTGJDJkApqDUSq+VUpjbHCynCnk lLZyxoQQyMsYUlCBx0k7fhXSIGIH+XFpbWbeX+Pxi9stWCMSMNAZEK/RKons93+IphqY gqRA== X-Gm-Message-State: AC+VfDzvUjXWl6ZULL9vrLIsQiNphW+XDh5FR4WAGEwOw39uYVq6i5H4 zrXzwGSxlTc0h8ce84egZ4SDboG7fYHB3G71n8fo3g== X-Received: by 2002:a17:906:478a:b0:969:b88c:b8a2 with SMTP id cw10-20020a170906478a00b00969b88cb8a2mr24882570ejc.10.1684166059000; Mon, 15 May 2023 08:54:19 -0700 (PDT) Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id z11-20020a1709067e4b00b00965f6ad266bsm9630916ejr.119.2023.05.15.08.54.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 08:54:18 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-96652cb7673so1578766066b.0 for ; Mon, 15 May 2023 08:54:18 -0700 (PDT) X-Received: by 2002:a17:907:720d:b0:966:a691:55ed with SMTP id dr13-20020a170907720d00b00966a69155edmr26683920ejc.70.1684166057908; Mon, 15 May 2023 08:54:17 -0700 (PDT) MIME-Version: 1.0 References: <20230202232517.8695-1-michael.christie@oracle.com> <20230202232517.8695-9-michael.christie@oracle.com> <78c5e150-26cf-7724-74ee-4a0b16b944b1@oracle.com> <48842e92-835e-bc3f-7118-48b8f415f532@leemhuis.info> <20230515-vollrausch-liebgeworden-2765f3ca3540@brauner> <33b84605-1d0c-1b0e-7927-7ffa96b3c308@kernel.dk> In-Reply-To: <33b84605-1d0c-1b0e-7927-7ffa96b3c308@kernel.dk> From: Linus Torvalds Date: Mon, 15 May 2023 08:54:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v11 8/8] vhost: use vhost_tasks for worker threads To: Jens Axboe Cc: Christian Brauner , Thorsten Leemhuis , Mike Christie , 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 Content-Type: multipart/mixed; boundary="000000000000a0257505fbbd77bc" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 --000000000000a0257505fbbd77bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 15, 2023 at 8:52=E2=80=AFAM Jens Axboe wrote: > > On 5/15/23 9:44?AM, Linus Torvalds wrote: > > > > So I think the patch should just look something like the attached. > > Mike, can you test this on whatever vhost test-suite? > > Seems like that didn't get attached... Blush. I decided to built-test it, and then forgot to attach it. Here. Linus --000000000000a0257505fbbd77bc Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhp0yu7e0 IGtlcm5lbC9mb3JrLmMgICAgICAgfCAxMiArKystLS0tLS0tLS0KIGtlcm5lbC92aG9zdF90YXNr LmMgfCAgMyArKy0KIDIgZmlsZXMgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAxMCBkZWxldGlv bnMoLSkKCmRpZmYgLS1naXQgYS9rZXJuZWwvZm9yay5jIGIva2VybmVsL2ZvcmsuYwppbmRleCBl ZDRlMDFkYWNjYWEuLmNkMDZiMTM3NDE4ZiAxMDA2NDQKLS0tIGEva2VybmVsL2ZvcmsuYworKysg Yi9rZXJuZWwvZm9yay5jCkBAIC0yMzM4LDE0ICsyMzM4LDEwIEBAIF9fbGF0ZW50X2VudHJvcHkg c3RydWN0IHRhc2tfc3RydWN0ICpjb3B5X3Byb2Nlc3MoCiAJCXAtPmZsYWdzIHw9IFBGX0tUSFJF QUQ7CiAJaWYgKGFyZ3MtPnVzZXJfd29ya2VyKQogCQlwLT5mbGFncyB8PSBQRl9VU0VSX1dPUktF UjsKLQlpZiAoYXJncy0+aW9fdGhyZWFkKSB7Ci0JCS8qCi0JCSAqIE1hcmsgdXMgYW4gSU8gd29y a2VyLCBhbmQgYmxvY2sgYW55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