From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Carstens Subject: Re: [PATCH 1/4] s390: convert debug_info.ref_count from atomic_t to refcount_t Date: Mon, 20 Feb 2017 14:34:31 +0100 Message-ID: <20170220133431.GB5656@osiris> References: <1487588781-15123-1-git-send-email-elena.reshetova@intel.com> <1487588781-15123-2-git-send-email-elena.reshetova@intel.com> <20170220132424.GA5656@osiris> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Elena Reshetova , linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, x86@kernel.org, sparclinux@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, peterz@infradead.org, gregkh@linuxfoundation.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, tony.luck@intel.com, hpa@zytor.com, Hans Liljestrand , Kees Cook , David Windsor Return-path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35898 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752562AbdBTNe5 (ORCPT ); Mon, 20 Feb 2017 08:34:57 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1KDXmdA084083 for ; Mon, 20 Feb 2017 08:34:41 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 28r012m0pm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 20 Feb 2017 08:34:41 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Feb 2017 13:34:38 -0000 Content-Disposition: inline In-Reply-To: <20170220132424.GA5656@osiris> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Feb 20, 2017 at 02:24:24PM +0100, Heiko Carstens wrote: > > @@ -361,7 +361,7 @@ debug_info_create(const char *name, int pages_per_area, int nr_areas, > > debug_area_last = rc; > > rc->next = NULL; > > > > - debug_info_get(rc); > > + refcount_set(&rc->ref_count, 1); > > This is not wrong, but I will remove this hunk before applying your patch, > since this doesn't look like an obvious correct change at first glance. Actually your version is needed - just looked at refcount_inc(). Sorry for the confusion in my side now.