Received: by 10.223.164.202 with SMTP id h10csp1698718wrb; Thu, 23 Nov 2017 23:37:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMYn5GihMBJCfXHeFJxEJMQsL972hCqiI/91LGvQF0QgW1KZorIFL3tXQX8e4W1zKHTV9v+z X-Received: by 10.98.36.25 with SMTP id r25mr23951563pfj.72.1511509045462; Thu, 23 Nov 2017 23:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511509045; cv=none; d=google.com; s=arc-20160816; b=e8zbAWWzPZBJOCUlFM+sF7qTfUD93wcWAyKxoHxL68RPYgVTu5UY4xYMdx6/JyCOdQ YEeL0jS4ABiTnUojYTZBT77jHxEGKrdXcWXear3HxtmzZxiC+YbaEkeaO44iZvGwCmlJ 4Kd1KGULUBK3b9zh7xQ+WHLOKCZEq49/A8Y0r/ibyt2M424V2OlMZF/TDYpHbO264ZXT +G/XyCx/5EGN8FmXUESoJpetzVE8LHgMMcBUjfk4jMxDU3l7pWAM96D1/oT1BH8bCQx8 FL3XiZ00q3Pil7d5IyTqx554KgBZp7d+tQ3/EPg0e00M18HyN/rTTo9nAsK/6uhcuugo icTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=fJK0XSBRiw+DNWVwR8Y0NFx1c3F8xlNJQS9FjXEfBlg=; b=B+619MZnQr405YcNwzEjRnzJunP84QoqkQXgepTbCTOFk9+5/TW2jjEORbnZbrRccx rS1dq7KLFLIdIiaGE2Kvkq+WRypm5lrttBXnFJzsvASdoBsh1+BVVDX0dSErpqk5Ozlc uCBFXSp6xB2vj4HoPoFhOj6ng0altp5rUmP8JD0vLVrvAPTZtcud4bfb4I53qmLAQQtq fUxo4VtRHH6Nqr/jabfrodqo0p147uyVUb83CAQ9vOCL9dMI3SqEUIyIYGKYUCMusAsn 6DBoWI0qATwwi7iOkYzI78eEbW5AibnTgGDn/u5mhHgbCyDhwjDUac5CYp4lBLLsjw1U tdMA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si17469610pgq.7.2017.11.23.23.37.13; Thu, 23 Nov 2017 23:37:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbdKXHgc convert rfc822-to-8bit (ORCPT + 76 others); Fri, 24 Nov 2017 02:36:32 -0500 Received: from mga05.intel.com ([192.55.52.43]:58318 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbdKXHga (ORCPT ); Fri, 24 Nov 2017 02:36:30 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Nov 2017 23:36:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,445,1505804400"; d="scan'208";a="6425284" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by fmsmga001.fm.intel.com with ESMTP; 23 Nov 2017 23:36:28 -0800 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.180]) by irsmsx110.ger.corp.intel.com ([163.33.3.25]) with mapi id 14.03.0319.002; Fri, 24 Nov 2017 07:36:27 +0000 From: "Reshetova, Elena" To: Alasdair G Kergon CC: "dm-devel@redhat.com" , "keescook@chromium.org" , "snitzer@redhat.com" , "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 Subject: RE: [dm-devel] [PATCH 3/4] dm: convert dm_dev_internal.count from atomic_t to refcount_t Thread-Topic: [dm-devel] [PATCH 3/4] dm: convert dm_dev_internal.count from atomic_t to refcount_t Thread-Index: AQHTZHLMw1oIU3Dii0GTg8yMWjM14aMjJJsA Date: Fri, 24 Nov 2017 07:36:26 +0000 Message-ID: <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> In-Reply-To: <20171123154941.GA15790@agk-dp.fab.redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDUwODNiMTEtZWQxMC00MmU3LWI0NDMtZGZkN2JlYjQzN2ZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiI2bGd0TERJM1kzQ3Q4WU5UdnNpOENYS1ZtRHZHalYyeXlCXC9Fd3YyUlZ6dmFDd3U5M0ZrZHFPK0lPV1ZmeHBjcSJ9 x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. Best Regards, Elena. > > Alasdair From 1584872581275790590@xxx Thu Nov 23 15:51:15 +0000 2017 X-GM-THRID: 1581761449867113637 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread