Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 Nov 2016 13:48:46 +0100
From: Peter Zijlstra <>
To: "Reshetova, Elena" <>
Cc: "" <>,
	Greg KH <>,
	Kees Cook <>,
	"" <>,
	Boqun Feng <>,
	Hans Liljestrand <>,
	David Windsor <>,,
Subject: Re: Conversion from atomic_t to refcount_t: summary of issues

On Mon, Nov 28, 2016 at 01:13:47PM +0100, Peter Zijlstra wrote:
> > -    if (atomic_add_unless(&inode->i_count, -1, 1)) (typical for fs and other code)

Many instances are variants of dec_and_lock/dec_and_mutex_lock(), like
for example the one in put_css_set().

However, there are a few, like in super.c and in XFS that are more
complex, but I have too much of a head-ache to actually think about that

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.