[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190813082000.shprs2ci33v5eapd@Air-de-Roger>
Date: Tue, 13 Aug 2019 10:20:00 +0200
From: Roger Pau Monné <roger.pau@...rix.com>
To: Chuhong Yuan <hslester96@...il.com>
CC: Jens Axboe <axboe@...nel.dk>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
<linux-kernel@...r.kernel.org>, <linux-block@...r.kernel.org>,
<xen-devel@...ts.xenproject.org>
Subject: Re: [Xen-devel] [PATCH v2 3/3] xen/blkback: Use refcount_t for
refcount
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 <hslester96@...il.com>
Acked-by: Roger Pau Monné <roger.pau@...rix.com>
Thanks, Roger.
Powered by blists - more mailing lists