Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4881930rwb; Wed, 17 Aug 2022 07:33:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR7bxVtuq5E0vt9OwnawOA8zfP/TMKrK60esP8hkFCEtFU8+Dv015iFvnDhOz6lpk1KqKQxs X-Received: by 2002:a17:90a:cf89:b0:1fa:a98a:c61 with SMTP id i9-20020a17090acf8900b001faa98a0c61mr4020049pju.69.1660746818325; Wed, 17 Aug 2022 07:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660746818; cv=none; d=google.com; s=arc-20160816; b=DUwEIYSiRivBz7EfyqhzEfFQiBGr1kcfmOnqh2cwYxAsglRp03BmvGnaDG5N+dTbtv KpEgp5YkAoDcUNXTmTnWvsL95yWFzo8heGiiJZr290zWSdyjc24JmfWTQzdk4JQnkGXl tSw63PEqS4KK3dZeEpgLRz017OBqjc9qBkR8aeexxl9k/3xy7396LzfxNo1bgILbQKn1 SVEuy+iRmZCQN2/N25odobvMCii1aVsJ0RcJY+RQOlydrqM6UDNBI3MFqGaY25VRaDzU Kg2gn4perH1iEgNRmyjEEWPhRE06ohEZnD77aWnFb+dIQSMz1PzMVUtbbto0Q+vZ3e+y MZ5A== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=R+mRpIZ7Zgu21uwMA0nvMtTfDGIisuZ8eNPyxKRxmQE=; b=jOTTRgI/zXTRiGLGO3f50E6wmMRtXHuosr+qcSLa8OGiwhPZlCR0IvuufsV+gjV6U6 3D1+9ZrAKwYhe68ymhGt+kMRSJO+R3Ihie17SArlDkLP57xUlePDOaWl3Z8YhwiCw8VU hADhetWCg0UMzsLpDquBSp182O7XtcWeQPSNpVQKRwNQejrGl1ILsTtOClaGjKStxcEA DEOTMzlUFSlHlhST6oUK5pA1jaZq8JeJl+EcceXGyrp7f1RaGliZL5Oc4BUB+GiiRglC tkWjh6/MyPWb//G370br6ybcOtKJnpsjUstt8vhqRfs0Bwq+pXPSg/brU9qSS4AlgKeL tINw== 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 x63-20020a17090a6c4500b001fabbdda4a1si898866pjj.60.2022.08.17.07.33.26; Wed, 17 Aug 2022 07:33:38 -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 S240113AbiHQOZl (ORCPT + 99 others); Wed, 17 Aug 2022 10:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240156AbiHQOZj (ORCPT ); Wed, 17 Aug 2022 10:25:39 -0400 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1594861DBE for ; Wed, 17 Aug 2022 07:25:38 -0700 (PDT) Received: by mail-wm1-f44.google.com with SMTP id k17so6765723wmr.2 for ; Wed, 17 Aug 2022 07:25:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=R+mRpIZ7Zgu21uwMA0nvMtTfDGIisuZ8eNPyxKRxmQE=; b=ZdNkKadhuNVx5KC4HvyViA9VgA3bjeNTo8VTSSX6mW5/bvsQytmqfQtcHGGyBggp9Z 2Iulkt4pbmNfg3ShTEZvIkVkh1Kz7lBWljrxe2iR6Csm0eVYFweJ7sQXKRDL7wBfPu0A T5Y5lCm+cAW4GMlGjTvQZOKS9Dgg8/EQvE9X/SQXlDeAoazoGY7mL9LcrBSvX/SC0Ju2 i7lF3p3FSIB2Tkgk+78NGmlmymlvdAba3NOPLf1KPTpquIZg5QNLpiSqaV0ensaAwA1e Ks3kEGsVELXUTYLlzkyVNg8UqUBT2HRWgfHYviyvxuI8qkqQEqPFVUERM2PHmUOqMRTU igOQ== X-Gm-Message-State: ACgBeo0hd2TUW58KwNMsINA7MYTwgD5XdrbcdX0h7K02l+Tcv206l9Xe nDYYhF6dm6AD1b3EQ3TA0AU= X-Received: by 2002:a05:600c:3502:b0:3a6:edc:39f8 with SMTP id h2-20020a05600c350200b003a60edc39f8mr2392754wmq.200.1660746336588; Wed, 17 Aug 2022 07:25:36 -0700 (PDT) Received: from [10.100.102.14] (85-250-24-41.bb.netvision.net.il. [85.250.24.41]) by smtp.gmail.com with ESMTPSA id l20-20020adfa394000000b002250c35826dsm7449729wrb.104.2022.08.17.07.25.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Aug 2022 07:25:35 -0700 (PDT) Message-ID: <7c5c3e39-650e-c0ae-c9ce-8b23c8c15493@grimberg.me> Date: Wed, 17 Aug 2022 17:25:34 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC PATCH] nvmet-tcp: Don't kmap() pages which can't come from HIGHMEM Content-Language: en-US To: Keith Busch Cc: "Fabio M. De Francesco" , Christoph Hellwig , Chaitanya Kulkarni , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Ira Weiny References: <20220816091808.23236-1-fmdefrancesco@gmail.com> From: Sagi Grimberg In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 >>> You should also remove the cmd's 'nr_mapped' field while you're at it, >>> otherwise you'll hit the WARN in nvmet_tcp_free_cmd_buffers(). >> >> Not remove nr_mapped because we use it to know the iovec entries, but >> we can just remove the WARN statement. > > It's only used locally within nvmet_tcp_map_pdu_iovec() after this change, so > no need to carry it in struct nvmet_tcp_cmd anymore. You are right, we can kill it.