Received: by 10.223.164.202 with SMTP id h10csp2946149wrb; Fri, 24 Nov 2017 22:00:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMaHwgzxIOBzTwb9u1+GjX9yWrLg2qDbWRJdE8V1fZ5nVeRJvmXcyfU/qlkD28XrXCIf4+Ho X-Received: by 10.84.241.15 with SMTP id a15mr32257522pll.103.1511589604747; Fri, 24 Nov 2017 22:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511589604; cv=none; d=google.com; s=arc-20160816; b=g8T6nMddsgefTEFWK9XDD8rDlm0+O5arerCnA5fCDw+JhkcDk+/6ewk7eWqMyTMKjV AAok3LC1bbQp2h5e2rCh/nbcKXOLKX0ZIGkynLnCasUiTgI8weXRRF1eB3YRP8QoFvbm 103iR4w9i4meuW4nmHiUSNFG4y8O2N78PRWJ62Du3K4R6KhR2VBiIuaQGIInWsb50Hqk AQu/VhDs5L2q2wACZ3Rr6DbpoiBhnpf2Wtx17+/o1jgZKdf+JH133OSZEIsID6fAC9/L HNYPm/WpTHIWj+8UhPb6ZVOu/BuZWtmHnbzyhNFQEZf/ZtQ5IOh8+fZnLQMpkxDUsNYc cgGw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=5g+0zeqylY9RXZTBj94tBLFxH7ZkpdBXVIRU70wy1dU=; b=N1m456Jp4bkwjP+pDMvAiyhFSyaxqIPDBZrMQ9/eXQEp5m1sGRFgPZBm2B1lZyKxI2 ooQ65XtPCBnzOq2bV1Mw0rOmwEGItb6QqNk0P0Gps4a/1C0wKNPE307CgdM+1+278Pr3 JDNw9znjZORh7dlU7K+mSvLhomKQD+dFiwHYZORZZQSRlF3n7N7c7p7P01M3qAu0r5SF kgWBK/4lp8cABKMlg3tZY85/iZTLJy5/U+6v37Zm0uiVWKcjZyUlk0seouadrx43r/PI eKaVRpmd1NR5qSa80at+cOHAQxlOFCE1qmw6nnBBr1rbNCh0aMTGDDCm07Jqxt04afC5 FUKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=icGteWs0; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h192si21368312pfe.371.2017.11.24.21.59.53; Fri, 24 Nov 2017 22:00:04 -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=fail header.i=@gmail.com header.s=20161025 header.b=icGteWs0; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751378AbdKYF45 (ORCPT + 78 others); Sat, 25 Nov 2017 00:56:57 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35713 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbdKYF4z (ORCPT ); Sat, 25 Nov 2017 00:56:55 -0500 Received: by mail-lf0-f66.google.com with SMTP id o41so27380411lfi.2; Fri, 24 Nov 2017 21:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5g+0zeqylY9RXZTBj94tBLFxH7ZkpdBXVIRU70wy1dU=; b=icGteWs00btt7rb9hjNZ1i6dZSFwB+P/Y8M50LQNF86g/lZVNkkpMeqsvy9cVUHaA6 N44b+jTC4+Et9l2OsP8upsmNTvXMS4T5RAo3tGhRKc25L0FO4m63Q6pz/aVEmOO7l9vx XjKeYuWXrWjmwsaX6LUZV6I3cMnulN5pFjvpYs0YwoHROdshzckX4BtI3VMzcjGlop8a a1iwhLfoFk3kWa9tcZBoUvLDeaJ35+dGCSyJ9TFVysbAnNTU22VFloDo/qinEI7k8ZXx 8jcvQ8BmQj0IGJB+eimYYX24cbAqPc5j3ASFf4wV+HMnCuWLMCYVIteNBE/7iOnqSLqk ZbjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5g+0zeqylY9RXZTBj94tBLFxH7ZkpdBXVIRU70wy1dU=; b=EGjnsQd0Q+u9LrxTZm3hPPlBKIK5TCyv0F3mMrjokaT1O3i6O7zzSInUZVqJbyqEYX codLoa5y9HTa4i6DPrQD/RHAsWXJ+MNOb/b+NiOczhTfUcXQALM4Bb5VM+l2Rix1HysI VFCclDvE91oTDyjrxxVWH59PjD8W7NOU6xPK18iiu5bBNOkYaGpMBv7VPfvUPtGe1e4u q0C9v633eBj7k8KI34/wvZvgvcLAE5crfkJTPvVDk4UBgkRp2ag1Qsg+HbPZe/ZdzXxa vICoi7YW5V1obeM2t0xOQFu2gLTgHp4MLVd0qF2ojDlCgzY3VlltewlfqV1Ntlg3JvXp EKhg== X-Gm-Message-State: AJaThX7duhWidXihMi+6FnFImkv9q6FKzLucJup6gLGvIeaD7J4OYb/2 vao8XJfDXdcxhSDKtJsbt9lY4mX54ovq84jhM1Q= X-Received: by 10.25.59.155 with SMTP id d27mr9183947lfl.207.1511589413649; Fri, 24 Nov 2017 21:56:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.229.84 with HTTP; Fri, 24 Nov 2017 21:56:32 -0800 (PST) In-Reply-To: <2236FBA76BA1254E88B949DDB74E612B802C1F07@IRSMSX102.ger.corp.intel.com> References: <1508485059-21881-1-git-send-email-elena.reshetova@intel.com> <1508485059-21881-4-git-send-email-elena.reshetova@intel.com> <20171123154941.GA15790@agk-dp.fab.redhat.com> <2236FBA76BA1254E88B949DDB74E612B802C1F07@IRSMSX102.ger.corp.intel.com> From: Mike Snitzer Date: Sat, 25 Nov 2017 00:56:32 -0500 X-Google-Sender-Auth: RN1cIB7Rv24pm6cpMO0kzIfwFjE Message-ID: Subject: Re: [dm-devel] [PATCH 3/4] dm: convert dm_dev_internal.count from atomic_t to refcount_t To: "Reshetova, Elena" Cc: Alasdair G Kergon , "dm-devel@redhat.com" , "keescook@chromium.org" , "peterz@infradead.org" , "shli@kernel.org" , "koverstreet@google.com" , "linux-kernel@vger.kernel.org" , "linux-raid@vger.kernel.org" , "linux-bcache@vger.kernel.org" , "ejt@redhat.comg" , "kent.overstreet@gmail.com" , Zdenek Kabelac 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 Fri, Nov 24, 2017 at 2:36 AM, Reshetova, Elena wrote: >> On Fri, Oct 20, 2017 at 10:37:38AM +0300, Elena Reshetova wrote: >> > } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) { >> > r = upgrade_mode(dd, mode, t->md); >> > if (r) >> > return r; >> > + refcount_inc(&dd->count); >> > } >> >> Missing here: >> >> else >> refcount_inc(&dd->count); >> >> ? > > Oh, yes, thanks for catching this! I think this got unnoticed so far and patch was merged, so I am going to send a followup patch now. I pushed this fix and will send to Linus next week: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.15&id=d908af82d06cc420f9581c97c6db941cb87e4434 From 1584932109001489846@xxx Fri Nov 24 07:37:25 +0000 2017 X-GM-THRID: 1581761449867113637 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread