Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4496165imm; Mon, 11 Jun 2018 13:23:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIin9SNgh4v2wiFaXbrLvSiOX8miyMZiBKjTnDteuh1ksv3LNud9WackvSNod5ur5gMqPVO X-Received: by 2002:a62:f705:: with SMTP id h5-v6mr626565pfi.169.1528748584190; Mon, 11 Jun 2018 13:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528748584; cv=none; d=google.com; s=arc-20160816; b=E3It6Hc8/lZ79qewVswdmHRRKiU3kOwkn2wX/gMUaRA7ycUaP5yitRL6FY2TaL3Rwz 49xpgw7vb3XHjk57IkEcFJsI6my+oGJXlUBFSHOo9gnnzvpCPNwiOm0Zt7oIsQasm7GK GQGeBi7tmW4W8bAOzkq5MVPMfXfqyzRUXNYFYjmPqFhtV3vTq4Z8E4S+EyRys7R1Ed8p rAeuhMIceG45tKruVU3brVOqHL0ppoEKSOPu8G6RYCMyWFwp1lNgjZptuR4yXs4vizkd u05BeexPCXhwwIsqKfKfsXLwB6MHuNzyXV+yHQgVHZh19FRcPERjFeI/CiowiqnMQBHE rMoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=rCx+0w9T3WJ4JICxl4pxQAi+s1eJ7LO1kjrku4a7GgQ=; b=B3GCwEdAB6uddo5nJeEh15Mog0ZDkTCLE/7EhPaS8OxEZrozuhX15RYwEBrRDP4sPj pCBqDmM4TNsBPevXjOfe5/cN6wM7dq8pGDSpoNTICctl9s3xdGfK8MvlSnTGrPX2GhnA CUvyOCFhFwr3Teyf7sDpBL6Xlz5UzHU0Hu3lLHw7iuoaCNka6WpeL4wu+Git8qEdRI2Z R/gAFTdjj501aTTTvPoS/XtFjWG0lQ5xRZZBkCW3TWwuHB25ykfEvUzqYcsdlohdnS2j KU2Zyb4snuHd4Oqqlu1qbp5Tbh3ZWTzzPM3yr48FW7MsyE4zy87M7NIMH3XfSQBjNXJD o2vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CRS/KyCM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si63577881plp.25.2018.06.11.13.22.47; Mon, 11 Jun 2018 13:23:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CRS/KyCM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934400AbeFKSoU (ORCPT + 99 others); Mon, 11 Jun 2018 14:44:20 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:39327 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934206AbeFKSoS (ORCPT ); Mon, 11 Jun 2018 14:44:18 -0400 Received: by mail-io0-f195.google.com with SMTP id f1-v6so25079713ioh.6; Mon, 11 Jun 2018 11:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rCx+0w9T3WJ4JICxl4pxQAi+s1eJ7LO1kjrku4a7GgQ=; b=CRS/KyCMSfwOfZbj7FjrFV6h1C9LmnxbL1COZz5mQvYYHEiuqoW4nnIec5AUS7FF22 SabRC8D70w7YPSYXt9Dt+86+KKq8zRB4JqqvmdOrfmSrbuuCuXf5S9wXGCHi+m3kzHym 953qWIvBI/tZqRNOvjxjSk5W/Dvg7nGRrm7do= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rCx+0w9T3WJ4JICxl4pxQAi+s1eJ7LO1kjrku4a7GgQ=; b=frOUOzPQ48a0BbGK5y8iioMbvgdJofRVQTLv1Rc7cS04EBBOZJhZbWqCTooNGPwCdT SaD4lzkDLVEZJaXWTucamY7WSNLVALXjQFwMa8VsUZouo0ZnGEz4+V5zLliFshGdT/Vg j2rXHcXxzqfv4SJuZqD0pG7GVipbVNk3yISzFQ/Mls8IhNwtBjYQ+9wrL/54xjRHKKY0 G9666LGsKdsKx6fFSHIGs/LkHKaLj8tefJT9iQR9T7GYrKgrLkQN60AZsE6PRMO3n1+b B6QODXBFHkJw7Uulm6o3r5K+JPegcxFa40MUADB1rMBec7NVldqkBO+4j1p2z94OAOBe zdDQ== X-Gm-Message-State: APt69E3qyVZyuYZzr1nNHwMKUbffx+/+EBZBadAdgx1haUuQnMuYIsGO 7I/vsv8BP9wbYT/zQ+BYZ/l4Xnw3pgnslYG7HKU= X-Received: by 2002:a6b:1502:: with SMTP id 2-v6mr337621iov.203.1528742656468; Mon, 11 Jun 2018 11:44:16 -0700 (PDT) MIME-Version: 1.0 References: <20180611192353-mutt-send-email-mst@kernel.org> In-Reply-To: From: Linus Torvalds Date: Mon, 11 Jun 2018 11:44:05 -0700 Message-ID: Subject: Re: [PULL] vhost: cleanups and fixes To: "Michael S. Tsirkin" Cc: KVM list , virtualization , Network Development , Linux Kernel Mailing List , Andrew Morton , Bjorn Andersson , wei.w.wang@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 11:32 AM Linus Torvalds wrote: > > So now we apparently do a GFP_KERNEL allocation insider the mm zone > lock, which is broken on just _so_ many levels. Oh, I see the comment about how it doesn't actually do an allocation at all because it's a single-entry. Still too damn ugly to live, and much too fragile. No way in hell do we even _hint_ at a GFP_KERNEL when we're inside a context that can't do any memory allocation at all. Plus I'm not convinced it's a "no allocation" path even despite that comment, because it also does a "dma_map_page()" etc, which can cause allocations to do the dma mapping thing afaik. No? Maybe there's some reason why that doesn't happen either, but basically this whole callchain looks *way* to complicated to be used under a core VM spinlock. Linus