From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7EBBC5B57D for ; Wed, 3 Jul 2019 01:35:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B82AA2063F for ; Wed, 3 Jul 2019 01:35:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbfGCBfj (ORCPT ); Tue, 2 Jul 2019 21:35:39 -0400 Received: from verein.lst.de ([213.95.11.211]:47048 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbfGCBfj (ORCPT ); Tue, 2 Jul 2019 21:35:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 092F768B20; Wed, 3 Jul 2019 03:35:37 +0200 (CEST) Date: Wed, 3 Jul 2019 03:35:36 +0200 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , Matias Bjorling , linux-block@vger.kernel.org Subject: Re: remove bi_phys_segments and related cleanups Message-ID: <20190703013536.GA31366@lst.de> References: <20190606102904.4024-1-hch@lst.de> <20190702133406.GC15874@lst.de> <20190702182934.GA20763@lst.de> <20190703000055.GA28981@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, Jul 02, 2019 at 07:32:40PM -0600, Jens Axboe wrote: > The issue is a discard request, 4kb, with a bio but no bi_io_vec. > The sync is a red herring, apart from the fact that it triggers > the ext4 discards. > > I'm guessing, when you tried to reproduce, that you didn't have discard > enabled? I didn't run with online discard, but I tried FITRIM (with XFS). I'll try looking into ext4. I remember we had some weird one offs in that area for the different ways the physical segments are calculated, so this makes sense. Off to dinner now, but I'll look into it tomorrow.