[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87y5a6n71o.fsf@rustcorp.com.au>
Date: Wed, 19 Jun 2013 12:25:14 +0930
From: Rusty Russell <rusty@...tcorp.com.au>
To: Tejun Heo <tj@...nel.org>,
Kent Overstreet <koverstreet@...gle.com>,
linux-kernel@...r.kernel.org, Oleg Nesterov <oleg@...hat.com>,
Christoph Lameter <cl@...ux-foundation.org>
Subject: Re: [PATCH percpu/for-3.11 1/2] percpu-refcount: add __must_check to percpu_ref_init() and don't use ACCESS_ONCE() in percpu_ref_kill_rcu()
Tejun Heo <tj@...nel.org> writes:
> Two small changes.
>
> * Unlike most init functions, percpu_ref_init() allocates memory and
> may fail. Let's mark it with __must_check in case the caller
> forgets.
But it's quite OK to ignore OOM errors in builtin init functions.
It would be neatest to have it fail into slow mode, of course, but it's
probably not worth the pain.
Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists