Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp721135ybl; Tue, 13 Aug 2019 01:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyDWN7wcRIc7hDOdiDC0aEF2qqRrW7t3izCywWZY/pVsvf+kyWH43DI6j+o85+8IBq+pJi X-Received: by 2002:a17:902:166:: with SMTP id 93mr21898419plb.195.1565684514739; Tue, 13 Aug 2019 01:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565684514; cv=none; d=google.com; s=arc-20160816; b=clXeAbJozZyxMSkVEurFsS3R6QB3Om8gLWhQ13+KqI7lNPgmnhBr853enmi/SOcIgl kXk/abx52Mymdg+e6YTXFKhoo9F5NfK8h4ntSDMp0H2EBidEx7uymCod7FDZaaN/ZxLD MASw5yYdNwoR+q7eVmzAwsV3BHeCVjmvs50NRqe31OHsAY0w+jurn2l0z4hQD5CBlk6R m6L7xbMnf5NZmNZrRhQaTSGfGs+WeKqyYPLuvwo/+M6+goOj9mtHFPHFjIgrqWJbyb8y Z4RCey3Kk7JS7Posd7iin8dBXGx0F775qBecaUiqlkS3eLA09+y5BT0uYWJopOsleFyv HFag== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :dkim-signature; bh=z/8j86O0YKe8UMMXhfQxZEIlnH7GnGV5zNnElYjUmW8=; b=JWx+YHQNIrovgqT5V6ieT4dqkSQEQqxyX6YKw5DEvHjfS5aVATVOmsIG/EwXlxaYAb Ew/nVhKDqX/hdRtkOUdQSXO+4DWN8CqUutuilP5hVCCjamIV+cM+4pCkWAFpO+bNMoUg YSGx3+XuTPJce+rbYwtH0nOkBGn4N3nAS4mHtTz6G5rR+wLM+18Avp+xPtCxv2ViE8pg gJHiRSsopokg1xglcxTujzCFIK7quL4RaD0fAhL3BHLksleWXqi3X/BaddbmHAO9ERSU Tu3D58aQYeYvXHlF3DT7upEmRMf8cnKHrTwISaWZ664MIXdoCvBKuTDYoFUQEkC3hIO1 dHKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=Y13i+U+x; 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 h6si61204374plr.105.2019.08.13.01.21.38; Tue, 13 Aug 2019 01:21:54 -0700 (PDT) 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=@citrix.com header.s=securemail header.b=Y13i+U+x; 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 S1727582AbfHMIU3 (ORCPT + 99 others); Tue, 13 Aug 2019 04:20:29 -0400 Received: from esa5.hc3370-68.iphmx.com ([216.71.155.168]:9755 "EHLO esa5.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbfHMIU2 (ORCPT ); Tue, 13 Aug 2019 04:20:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1565684428; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=MSNDb5M/uhPTXoW2QG6d7ZGLQTVW3BXr4dqZJhjvQKQ=; b=Y13i+U+x/AgK3isELAIBDsHkbNux7rc1RKX2+zt0jz+pec7S/CmE3nMb VRCmM4zdkvDAdcOCvgmWIRhu2KQZxmMqMafGeVFyXV7PTILtlb6MyO6vM 2akom2Z1OOv92hF5gKT9b+715PxBS2I4iper+udSswO6k4yJWkmKT02m+ Q=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa5.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: YyJYPQ6VXMkgmOH9bE1bW7wGRnEWWYVdrhqf1LUNH9JZt+GUSq/a+mDF8iOZMrkfEZepWz3MKB Nbl/e827DePlYKulChWdpxlyiyCPXsSZwI3waKlSrxQtvyQHMnB796aa+296RQS+E6MqK4aQiJ Ih2+dXOCKw2EarPKHZodwm4FdZkwjlQZF+Psh/QfCgm0QI1BZrC0/Rs7ltNVStNAsgoeRAzvAI J0wCCJBaCBN938BDYB6CeYXoTL2y3zsHEmo7JiHgunnzNyMeFLf/2QMEZHcjVWFJqd/8sKSpgQ yWU= X-SBRS: 2.7 X-MesageID: 4340732 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,380,1559534400"; d="scan'208";a="4340732" Date: Tue, 13 Aug 2019 10:20:00 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Chuhong Yuan CC: Jens Axboe , Konrad Rzeszutek Wilk , , , Subject: Re: [Xen-devel] [PATCH v2 3/3] xen/blkback: Use refcount_t for refcount Message-ID: <20190813082000.shprs2ci33v5eapd@Air-de-Roger> References: <20190813061650.5483-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190813061650.5483-1-hslester96@gmail.com> User-Agent: NeoMutt/20180716 X-ClientProxiedBy: AMSPEX02CAS01.citrite.net (10.69.22.112) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 02:16:50PM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan Acked-by: Roger Pau Monn? Thanks, Roger.