Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp178731ybk; Tue, 12 May 2020 19:26:00 -0700 (PDT) X-Google-Smtp-Source: APiQypJK15JtNFJA0/DXQ2Gwy9yFnsl7lgXX6XEyGC5XDCDACB3TpArO7Ezpwk96RzIiKeVdhdfu X-Received: by 2002:a17:906:e098:: with SMTP id gh24mr20880084ejb.44.1589336760498; Tue, 12 May 2020 19:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589336760; cv=none; d=google.com; s=arc-20160816; b=rFfjKAuKzfjGbow56/wAVNKs0R4ZsLfllS55a0xDIXPg+t2bK9wtqzzUjYb9qtMLCH s/I4UX0QVKl90bZjojEAIRv73kdmE2mvLQvvpEE0G6EGFJn7uQv0TpG+5Wucel6QytJB WF4NQYEj0sGKzU+c7I/aR57DRXb0OqxbEeHQzhptT7tWqcN3qsK9GFFZznF7NkIu1xkT ve+0LXjvzHRd8Nta34OnctEP1aBmDIdMzX+m0fsWeq5U1OdvxLA3licrM1zXMMQ2G+sv sNsTs9jodVnej8ZAXvd1VDZz5C/0v/VvccUmOjASH9tI80kF91Tvczc5ecIp3uAk7cnP /W9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=WL6LqGqep6zlwpLFE3J2WtwpQ1zPXw+qIg3YMMRroEc=; b=STb3skWAiEu54mx+9zjGzYwVx2ZW09P1z/nHTD33KM1E5URiIFXgLFhf7ypNfnvfSU /8Gk36MXVZO49wQeegwL5z5Dwk9PMHyv55airoP1Hg97fihoDd7nhrSl92rWODXboL9e lctsU1HkyA2Wx5rPnHTxvMxZlIVIntkrCYRnrqUs+27gTC9wuOHPrsfHWrAiGVBMkTk4 WtWo6sP7HiFSJuSMRuojlsdJ9Ov8e4Rc6KnUdE3EbpvKZ4XwBaNHEYhQybQrTEZeLH9F BTdBMTM3M2SgR2Xopn0bGwGcBam2H5ZFNdNSI8yN8Ottdv1w5QQLXKMYP4Sr74r0ZG66 8+Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=ODn9WEuN; 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 z8si5422382ejp.460.2020.05.12.19.25.37; Tue, 12 May 2020 19:26:00 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=ODn9WEuN; 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 S1729773AbgEMCWP (ORCPT + 99 others); Tue, 12 May 2020 22:22:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbgEMCWM (ORCPT ); Tue, 12 May 2020 22:22:12 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 589C6C061A0C for ; Tue, 12 May 2020 19:22:12 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id a4so7095594pgc.0 for ; Tue, 12 May 2020 19:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WL6LqGqep6zlwpLFE3J2WtwpQ1zPXw+qIg3YMMRroEc=; b=ODn9WEuN3+VIjabru6hxefEEFpSjA/Z6TMKlCJQ8GFk0WbZMHU01ilMeVQ152xyzqB /ksC/wI4GAaRQFkGM4O8JOaS/B0eqajte+SZj6KRKLnHLQ8BqUJms9eBz8gZVf8sT6gV MoCCRNsdZpC+0NXfAmksqDDFCsvvztUei3BoG6I5rR0YbrFIBysb1pPrU1j9tKPVybkN hU/iMaSGS8dfUMgTLlPIhNgX+Mj7E2r3jd4gIO+F+Kans8g9jnYAXmfI9bSUnWZWBHAn VSI0wXCKKLevcpVOIqC0zrrM+vKsBtVAQN1CYpeHITQ6o1hMFVH/d7MNQadn5AZVVH74 9dhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WL6LqGqep6zlwpLFE3J2WtwpQ1zPXw+qIg3YMMRroEc=; b=GqQ9ZpwggLlmTF6CZTBQUNrhED/F9NWrokfn8BIh9FDTYeOsNDahBpiC84+zvDSZy3 OOkB/7OOtUQ97d51Lqwe3ZDfGeD41yiYleXKQnf3yEGSPzXYXEEGVSucupanoEtaoQrg 0I8DdjQvWTgp4Xp2ylcqLy+12vr3k17t+2sBtKw4snlAYddHVxBCYC+ZFlQmWWltDivZ FN29flNSbg2wTOsvIywbj6Ksg4/iYLnLdxsUWydMQuIy1SPY1Bnw9ouaSJpfnkIYOiGp UeGVdkYOhiGI8u0RQYFxVELBECtgz529MyQB7P0BBRV2+XslXSjZel8KFMllUop8tN6L nglw== X-Gm-Message-State: AOAM530fUPH0JA1sfshkTvi7xvqL9DgFtWmLpbItItlN3kUzooSWEstT NwUQnZoCR1fvpvgp1wzmevn1BA== X-Received: by 2002:a65:40c3:: with SMTP id u3mr9448390pgp.305.1589336531879; Tue, 12 May 2020 19:22:11 -0700 (PDT) Received: from ?IPv6:2605:e000:100e:8c61:1d8:eb9:1d84:211c? ([2605:e000:100e:8c61:1d8:eb9:1d84:211c]) by smtp.gmail.com with ESMTPSA id k10sm13228551pfa.163.2020.05.12.19.22.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2020 19:22:10 -0700 (PDT) Subject: Re: BUG:loop:blk_update_request: I/O error, dev loop6, sector 49674 op 0x9:(WRITE_ZEROES) To: "Xu, Yanfei" Cc: LKML , linux-block@vger.kernel.org, "Darrick J. Wong" References: From: Jens Axboe Message-ID: <8f3eeb22-2e85-aa3f-6287-b3c467d39a8e@kernel.dk> Date: Tue, 12 May 2020 20:22:08 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/12/20 8:14 PM, Xu, Yanfei wrote: > Hi, > > After operating the /dev/loop which losetup with an image placed in**tmpfs, > > I got the following ERROR messages: > > ----------------[cut here]--------------------- > > [  183.110770] blk_update_request: I/O error, dev loop6, sector 524160 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.123949] blk_update_request: I/O error, dev loop6, sector 522 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.137123] blk_update_request: I/O error, dev loop6, sector 16906 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.150314] blk_update_request: I/O error, dev loop6, sector 32774 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.163551] blk_update_request: I/O error, dev loop6, sector 49674 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.176824] blk_update_request: I/O error, dev loop6, sector 65542 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.190029] blk_update_request: I/O error, dev loop6, sector 82442 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.203281] blk_update_request: I/O error, dev loop6, sector 98310 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.216531] blk_update_request: I/O error, dev loop6, sector 115210 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > [  183.229914] blk_update_request: I/O error, dev loop6, sector 131078 op 0x9:(WRITE_ZEROES) flags 0x1000800 phys_seg 0 prio class 0 > > > I have found the commit which introduce this issue by git bisect : > >     commit :efcfec57[loop: fix no-unmap write-zeroes request behavior] Please CC the author of that commit too. Leaving the rest quoted below. > Kernrel version: Linux version 5.6.0 > > Frequency: everytime > > steps to reproduce: > >   1.git clone mainline kernel > >   2.compile kernel with ARCH=x86_64, and then boot the system with it > >     (seems other arch also can reproduce it ) > >   3.make an image by "dd of=/tmp/image if=/dev/zero bs=1M count=256" > >   *4.**place the image in tmpfs directory* > >   5.losetup /dev/loop6 /PATH/TO/image > >   6.mkfs.ext2 /dev/loop6 > > > Any comments will be appreciated. > > > Thanks, > > Yanfei > > > > > -- Jens Axboe