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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E33DC43334 for ; Fri, 1 Jul 2022 23:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbiGAXtH (ORCPT ); Fri, 1 Jul 2022 19:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiGAXtG (ORCPT ); Fri, 1 Jul 2022 19:49:06 -0400 Received: from gw2.atmark-techno.com (gw2.atmark-techno.com [35.74.137.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 316033AA4E for ; Fri, 1 Jul 2022 16:49:05 -0700 (PDT) Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 95F3220CFB for ; Sat, 2 Jul 2022 08:49:04 +0900 (JST) Received: by mail-pg1-f199.google.com with SMTP id w191-20020a6382c8000000b0040c9dc669ccso1811574pgd.16 for ; Fri, 01 Jul 2022 16:49:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LSJ3PXNbjfPuNCs9zB53If0JZ50L8HtGybH/fHIylFg=; b=hf/N7KczpaXZxlgesbb/2csS8AjjurlDCvIZbRVZshCwiq+VwYTTGy5ouSsEMwi5ls fyaHBRRCUCOGvJmCLl7khUy1ttgqqVlufRWa4iECglt8XdcKUk6wXxqNUy/ZIlQtkg9J ydH+fYDCO/cCSZ69jai6s4Zr9nPMAeCXb37obrpymmFmTsFmJI1+wr9FYRrfbOlvygv3 DNM9GsQFg8DxkSmPXfUxj3P1GWlM0iVKSAjsnjc5uwzSb5q6u3MGz1UFk3qgsjkMq6A+ /D+BnvZ1PtpTxCTLFETe/iYfSo+9/JmYdpohg4ua67B++2dPwaxAMo80Ml8TXIoweeVu eo2w== X-Gm-Message-State: AJIora9ft2ca5X4msSu0iRDPkPkSI+ohCl8BtC+BQjqAifdyJRWbvL/R sp0q2w0R6Jkpn7gKkEvmZ/3/x8ePj9heOwcdnLRgCqOm/AV1amDgGNJQLFcamIcXrDXP869gJLX pDGWBMC4LTg/zniybw3VmRU7n X-Received: by 2002:a17:902:cec9:b0:16a:416c:3d27 with SMTP id d9-20020a170902cec900b0016a416c3d27mr23600846plg.107.1656719343615; Fri, 01 Jul 2022 16:49:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t24xm/saXDVdTU339pirGwPhG1TYMSSgsSiNSXwcWt6iYPii6OI8spYIMjJfkGLSdGcUIVJw== X-Received: by 2002:a17:902:cec9:b0:16a:416c:3d27 with SMTP id d9-20020a170902cec900b0016a416c3d27mr23600832plg.107.1656719343274; Fri, 01 Jul 2022 16:49:03 -0700 (PDT) Received: from pc-zest.atmarktech (117.209.187.35.bc.googleusercontent.com. [35.187.209.117]) by smtp.gmail.com with ESMTPSA id a3-20020aa780c3000000b0050dc76281f8sm16140626pfn.210.2022.07.01.16.49.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2022 16:49:02 -0700 (PDT) Received: from martinet by pc-zest.atmarktech with local (Exim 4.95) (envelope-from ) id 1o7QNh-001Bed-0v; Sat, 02 Jul 2022 08:49:01 +0900 Date: Sat, 2 Jul 2022 08:48:51 +0900 From: Dominique MARTINET To: Filipe Manana Cc: Nikolay Borisov , Jens Axboe , io-uring@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: read corruption with qemu master io_uring engine / linux master / btrfs(?) Message-ID: References: <20220630104536.GA434846@falcondesktop> <20220630125124.GA446657@falcondesktop> <20220630151038.GA459423@falcondesktop> <20220701084504.GA493565@falcondesktop> <20220701103329.GA503971@falcondesktop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220701103329.GA503971@falcondesktop> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Filipe Manana wrote on Fri, Jul 01, 2022 at 11:33:29AM +0100: > > I'll give it some more testing here along with other minor fixes I have for > > other scenarios. I'll submit a patchset, with this fix included, on monday. > > In the meanwhile, I've left the patches staging here: > > https://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git/log/?h=dio_fixes Thanks! Just a small typo in commit message for 'return -EAGAIN for NOWAIT' patch: > After having read the first extent, when we find the compressed extent we > eturn -ENOTBLK from btrfs_dio_iomap_begin(), which results in iomap to return at start of second line missing its r rest looks good to me, thank you for the fixes :) -- Dominique