Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1954782imu; Tue, 6 Nov 2018 06:57:45 -0800 (PST) X-Google-Smtp-Source: AJdET5cTCDqukj7Fk/q5toEDTMiiTc28Xor1MY9sbSZebGMVLhaoxU8YGCtb5WYaMZ2md1KVCSN9 X-Received: by 2002:a63:1204:: with SMTP id h4mr24102236pgl.51.1541516265850; Tue, 06 Nov 2018 06:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541516265; cv=none; d=google.com; s=arc-20160816; b=uY6sD33sZG97butnJTvGEJnMUDamZvlLh4J1NeqdBPdJZ96ec5yfQQ8Kxvc9CQpq8B hyGXxRPhWGwoPayDfQllJL/lDf7329JEy+yfVhqwu15GEQp6OeT31kO7F1sVE26omzIY riLr4IVGuBHhHyaO8fdt1gdBX9KQnqJ2+6Pvj4VrcC68WqbxfTAXGXUzaU/wmwz/bhpY mZ28GZHaJjrlSvJs3NVuwLVCNC/to2pNizL7FoJj2cuHIAYpiAYKhcjJtUBG1EKXzao2 8VMzWxlXnHKW1oBaDOPql7gT+mfsmkQ85Ie/qZaMyCITEwzLFMJE9T5YbLWuq3ZtvBfv JOcg== 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; bh=Au5ScHTI2Gb+GmgJF7KkEGBz7R1QJ63Hu8hupGWNwrI=; b=gfNn91ay77Y5hpyUFLvyzNVUKgmctIHQuc0HGq/FqINcUphFWBKJp9GKPdi2OU7tni OwHYoKK403x+kg+WKsYE7GKfrERZbby279BspXhImIEX5aWePkPic/OvvgcVf6FdAKfb xoXCfaCRpg2f4vp5s+jvshHEA4luwSXoMWU2a/GEGIjwwtpL0bN/YqGzPz4eYlRCHsha SXE/LdjAQoJLPdhvPZzS3o/gHntDJW87mxFrOk8wYKSEuR9ZttGeeSjorIma1b1ces9K 5uqP/GFEuYi0Wljqioopoad0bOltdjilcnD22CrOyziLuca4uQE6FQIS8v6NT3NVZI6m L/1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rCkTD4s6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184-v6si3222611pfa.274.2018.11.06.06.57.29; Tue, 06 Nov 2018 06:57:45 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=rCkTD4s6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389019AbeKGAWm (ORCPT + 99 others); Tue, 6 Nov 2018 19:22:42 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:56173 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388851AbeKGAWl (ORCPT ); Tue, 6 Nov 2018 19:22:41 -0500 Received: by mail-wm1-f68.google.com with SMTP id s10-v6so11513838wmc.5; Tue, 06 Nov 2018 06:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Au5ScHTI2Gb+GmgJF7KkEGBz7R1QJ63Hu8hupGWNwrI=; b=rCkTD4s6V8qEzugDh4du9P3lmZpYz6eZAEN8QjcKb3c8YmNTYewiAhYNoMlK9Rih5A ASHiU7D9JEZXcvgGPgn1+pApEy6qZVS3PlJTIHYVdaHmH4wNR/h6uFGP92sFdtZk1Oh5 H+oUOLY/OJgFSayZf/hYXiAiuuHerF0oTwywg0F32lGgitHFZTS1KonAaGFNok6KN3Xm 0wSIW8XRKFrpidk9TvIohLsWSspEM8uZW9uTBn6RcXp650UyiJC4SNhqXMtv7QPN00bu wQ6CkLFcl7IXOCgJ69u4LbohFCju6tNTald+AOp+w2fCsWyTKhNpGVlOMg9KgRAUrLLG 8Upg== 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=Au5ScHTI2Gb+GmgJF7KkEGBz7R1QJ63Hu8hupGWNwrI=; b=C2TcK52jr6qdI8h4R63PzsbQnx9lJtWvuF9U2absGdFRGbkS/RJm99RoWuVtXTp+c0 1hC7e7HWMQWSluFLb8HwMtPWTmOoNo+78eLsBPF7yb/3WnU1aD64BhyNqPmA+1XLHVho WIe9ZEyCfYRsKup0X9t4RIevpk7dwbvVoP3pmhXP/dzTsyL8NCM+NtUqoZqGx5hVIyyo U+FydOSBphJpPoj+6TBQy+A6BnYGfZp6j8pjswY309pz16Soh22EsHjuFr5cFRC95KTh Mz//KuT5z1BdjgN3agVVc0xo5TwamoxPZ8gbhA753avzQQZ8IFLFKTQ+7m5h9V/iKj2X arrw== X-Gm-Message-State: AGRZ1gIOS8b5X2wdxAH4qNeYzLrzd1wVeTSdJbuCpZRkPCkfRgDwCppd gk8FtqFZrEGi3zbBg0+4c2svAZEsRzyzbvpzQkhZ8SIIl4c= X-Received: by 2002:a1c:e03:: with SMTP id 3-v6mr2251101wmo.13.1541516224588; Tue, 06 Nov 2018 06:57:04 -0800 (PST) MIME-Version: 1.0 References: <20181105102301.9752-1-jthumshirn@suse.de> <20181105105548.GC12367@ming.t460p> <7c649b43-f952-cf94-93d6-44fb153acced@suse.de> <20181105120153.GD12367@ming.t460p> <3c3dd9c2-4240-7bb5-c0ff-af6f2e479c31@suse.de> In-Reply-To: <3c3dd9c2-4240-7bb5-c0ff-af6f2e479c31@suse.de> From: Ming Lei Date: Tue, 6 Nov 2018 22:56:52 +0800 Message-ID: Subject: Re: [PATCH] block: respect virtual boundary mask in bvecs To: Johannes Thumshirn Cc: Ming Lei , Jens Axboe , linux-block , Hannes Reinecke , Linux Kernel Mailing List , Jan Kara , Sagi Grimberg 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 Tue, Nov 6, 2018 at 8:35 PM Johannes Thumshirn wrote: > > On 05/11/2018 13:01, Ming Lei wrote: > > If you mean the real huge page, this patch shouldn't have made a difference > > because bio_vec->bv_offset is in [0, PAGE_SIZE), and iSer sets virt > > boundary as 4K - 1. > > > > However, things will change after multipage bvec is introduced. > > > Hi Ming, > > I've received a blktrace from our customer showing the issue [1]. > > In this example trace they've submitted (contiguous) 64K I/Os and > without this patch, they're seeing a lot of splits as indicated by the > trace. > > With the patch applied the I/O is directly issued to the LLDD without > the splits. > > [1] http://beta.suse.com/private/jthumshirn/blktrace.txt blktrace won't help on this issue because .bv_offset isn't recorded. This patch makes sense on >4KB PAGE_SIZE. If your issue happens on ARCH with 4K PAGE_SIZE, maybe you should root cause why it makes a difference on iSer. And it is highly possible there is bug somewhere. As I mentioned, the description of huge page part in the commit log is misleading, and it has to be fixed. Otherwise, the patch itself is fine: Reviewed-by: Ming Lei Thanks Ming Lei