Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp628785ybt; Wed, 17 Jun 2020 09:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbWFITSp1yD3O34oPOdaeEGJU1d7CFs+ZVyWsfgI5z3B9TZZirlHP/RxCkpW86lBh0LqaN X-Received: by 2002:aa7:cd6d:: with SMTP id ca13mr76609edb.280.1592412366516; Wed, 17 Jun 2020 09:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592412366; cv=none; d=google.com; s=arc-20160816; b=VYP5Sdy4WnKcxYWCbqvufmQy7DryFjk1vUqE5pmoiGubbuxx++hsStT3csQqlLYewW Sp2NT6SGd96HnSv9JAvHr2wdAvL+R+dVkJ8F1wRt+n47IQqR6wpuCAV6PVSpHRLNa7Kh R42akCN08cCRNmRq5gMA4NQfxjZb5+lyu0s2ChBXxbUEBRso7T4+xDtlLQ0pbNmlZY9X GkrMvPdmeno2Xwyf60gSMHgfR2b5V8aIB/Dn4sNvnG45rQGB6rqWTJdHkvML7Kd3ubSj /toR42o2jqonjyH/WL28LLTQSmledrJ8YW/mm/vTykwp6rmu/j5H+AgxD//Lcsy9vySg +dOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/k/xClA9+2hYuzh1XXM/hvm+D0ZEKs/cLEa2dBU6DKY=; b=M6s8igtINJEUs5cQQa7Q/KSbm1HpwHzyWDVmh1tpSXaH/FzkuZ9E4Tto8/kxgX2InY Dvhfh8ewq6s+QQMbcDOYRg2WjrAem2BnqLWMDh006rie8i+HSF4GMGvyw5GEnrke91om aiWR6A5JPf4oy4qYKHu/55kiSvRdh0ewACrTj6JpXmr+ABFTOjMtQ2fF5Z8RlqJ00cAs LfT/hsj2iYlHUQTZWt0s5RLwJcBfXfy1MbIsjCW1Ficsr1IdnlUwpcWr2gcuKsqcF2SM iMyl6XFWxifUdHpjRVZoK+kir7+XCc1UL59RuIh2jXasqiq2onR2ZzIspSqpKm73TLrC wlFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dVH2ixxJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm9si290928ejc.624.2020.06.17.09.45.44; Wed, 17 Jun 2020 09:46:06 -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=@redhat.com header.s=mimecast20190719 header.b=dVH2ixxJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgFQQlo (ORCPT + 99 others); Wed, 17 Jun 2020 12:41:44 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:35561 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726496AbgFQQlo (ORCPT ); Wed, 17 Jun 2020 12:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592412103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/k/xClA9+2hYuzh1XXM/hvm+D0ZEKs/cLEa2dBU6DKY=; b=dVH2ixxJ7Vp/uMnF5MoExqsWB1ODeMk8ByLxavudyH0xatiwlTQd/X7Zzi54bD+qLKXxn7 6n64C5b26Okh64HND/BgAZi5UEYG5mqqxc8mmj9d6ZcyCGDUN08I23uUtgFvqE43R2r2Lf PDWNKemqQGmvPunQvBuWdePrlzF2ZtM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-fYJfJdjHNyCKNT-QaEcWbQ-1; Wed, 17 Jun 2020 12:41:39 -0400 X-MC-Unique: fYJfJdjHNyCKNT-QaEcWbQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BCCB0891C5B; Wed, 17 Jun 2020 16:41:13 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1E6C16EDBE; Wed, 17 Jun 2020 16:41:10 +0000 (UTC) Date: Wed, 17 Jun 2020 12:41:09 -0400 From: Mike Snitzer To: Mikulas Patocka Cc: Huaisheng Ye , agk@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org, Huaisheng Ye Subject: Re: dm writecache: correct uncommitted_block when discarding uncommitted entry Message-ID: <20200617164108.GA12131@redhat.com> References: <20200612155911.96528-1-yehs2007@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 13 2020 at 8:40am -0400, Mikulas Patocka wrote: > > > On Fri, 12 Jun 2020, Huaisheng Ye wrote: > > > From: Huaisheng Ye > > > > When uncommitted entry has been discarded, correct wc->uncommitted_block > > for getting the exact number. > > > > Signed-off-by: Huaisheng Ye > > Acked-by: Mikulas Patocka > > Also, add: > Cc: stable@vger.kernel.org I picked this up for 5.8 but I inverted the patch order because this stable@ fix was dependent on the prior patch to skip waiting if in pmem mode (due to locality of changes within same function). See: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-5.8&id=39495b12ef1cf602e6abd350dce2ef4199906531 Mike