From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 1A6154201E2 for ; Thu, 20 Jan 2022 09:45:36 +0100 (CET) Date: Thu, 20 Jan 2022 09:37:46 +0100 From: Christoph Hellwig To: Jinpu Wang Message-ID: <20220120083746.GA5622@lst.de> References: <20220118071952.1243143-1-hch@lst.de> <20220118071952.1243143-11-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Jens Axboe , linux-block@vger.kernel.org, linux-nfs@vger.kernel.org, Pavel Begunkov , Mike Snitzer , Philipp Reisner , Christoph Hellwig , Konstantin Komarov , Roger Pau =?iso-8859-1?Q?Monn=E9?= , dm-devel@redhat.com, linux-nilfs@vger.kernel.org, "Md . Haris Iqbal" , Lars Ellenberg , linux-fsdevel@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton , ntfs3@lists.linux.dev, Ryusuke Konishi , drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] [PATCH 10/19] rnbd-srv: simplify bio mapping in process_rdma List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Jan 19, 2022 at 01:20:54AM +0100, Jinpu Wang wrote: > this changes lead to IO error all the time, because bio_add_page return len. > We need if (bio_add_page(bio, virt_to_page(data), datalen, > offset_in_page(data)) < datalen) Does this version look good to you? http://git.infradead.org/users/hch/block.git/commitdiff/62adb08e765b889dd8db4227cad33a710e36d631