Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3345750pxa; Tue, 18 Aug 2020 12:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykbBovGJkI4xjqgX3kuCn8+itI1lF7vs/GJoMpM/dEFp3ZcxdAdc7E0fm0xuYvK2IzRD4q X-Received: by 2002:a17:906:4d89:: with SMTP id s9mr20786017eju.365.1597780237916; Tue, 18 Aug 2020 12:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597780237; cv=none; d=google.com; s=arc-20160816; b=szLOeo3d2GZVNGF47VyuW/yfSmiNfP+c31AD0r7ODztj9DC9ObIA7sCRcGu/3hKUfB du8hMIui322Or/bm2KHnvEX4OLEhX3jTFra4L1e+XwXPffJj34F9YTgcg9kDercYECWn OSAkrvGIoxnbYaKppGg96LKSTZR5LK6RcT7dBzEJLYh9yKp7qBKW55C09aQLKkx0GnVO 6/ejk4onqEU9LZ7C5WmgNnZweY6H+WR8eJbzMgK+Qo7uYGMRxTJLKq5hNjMK4HtHNrFj accp9S40wjDGdrGlS7jfnm10qGXABz/DbJsoDdLc1PrNV7bJ1+GNxbLmiV/jp1sVijA9 OGIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8TAQPrbuU0UfyQIuachOa61bzosk9z6o6Pvu2fhMhh0=; b=w9InmU1ljWU6KPEgf98sYcsNcYhIZGeIJLEU/AXKYr6z4tL26csqVRFRXW0/hFqris 5YGCpO6fXMEH/ZNp6875eeTRNPEq2cTZEXjv3/3fjUAEeSLCRSk7dmDt17i/mTWyKHGG PbJqYMg9zD+Q3Ffa5fxupUGoViX0OupA4DHsTK8nvLpSLqzK2eCVn7d09mxIjVobrZmo vvaxwaCQbCenIOE4TfW8iWartKXsx8CZ7xpr9RtPSG7gt9Usn6Q6jSbnH2oTbqUeBRsj 25dBqUgUsqUvD5p9JHRla2QBStKrJHAkfFC5qZFvGznvdUpoN6tKKsiYRweGO/diOysK rQcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k20si14165871ejq.330.2020.08.18.12.50.12; Tue, 18 Aug 2020 12:50:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgHRTth (ORCPT + 99 others); Tue, 18 Aug 2020 15:49:37 -0400 Received: from verein.lst.de ([213.95.11.211]:34891 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbgHRTte (ORCPT ); Tue, 18 Aug 2020 15:49:34 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 79BEA68AFE; Tue, 18 Aug 2020 21:49:30 +0200 (CEST) Date: Tue, 18 Aug 2020 21:49:30 +0200 From: Christoph Hellwig To: Coly Li Cc: Christoph Hellwig , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, netdev@vger.kernel.org, open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Chaitanya Kulkarni , Hannes Reinecke , Jan Kara , Jens Axboe , Mikhail Skorzhinskii , Philipp Reisner , Sagi Grimberg , Vlastimil Babka , stable@vger.kernel.org Subject: Re: [PATCH v7 1/6] net: introduce helper sendpage_ok() in include/linux/net.h Message-ID: <20200818194930.GA31966@lst.de> References: <20200818131227.37020-1-colyli@suse.de> <20200818131227.37020-2-colyli@suse.de> <20200818162404.GA27196@lst.de> <217ec0ec-3c5a-a8ed-27d9-c634f0b9a045@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <217ec0ec-3c5a-a8ed-27d9-c634f0b9a045@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 12:33:37AM +0800, Coly Li wrote: > On 2020/8/19 00:24, Christoph Hellwig wrote: > > I think we should go for something simple like this instead: > > This idea is fine to me. Should a warning message be through here? IMHO > the driver still sends an improper page in, fix it in silence is too > kind or over nice to the buggy driver(s). I don't think a warning is a good idea. An API that does the right thing underneath and doesn't require boiler plate code in most callers is the right API.