percpu-refcount: improve WARN messages
authorTejun Heo <tj@kernel.org>
Sat, 20 Sep 2014 05:27:24 +0000 (01:27 -0400)
committerTejun Heo <tj@kernel.org>
Sat, 20 Sep 2014 05:27:24 +0000 (01:27 -0400)
commit4843c3320c3d23ab4ecf520f5eaf485aff8c7252
tree959c13745e8f4372ec5d0558a27af53ef9104758
parent23cb8981ed929b4dd48141401cd0fd31e0fa4ed0
percpu-refcount: improve WARN messages

percpu_ref's WARN messages can be a lot more helpful by indicating
who's the culprit.  Make them report the release function that the
offending percpu-refcount is associated with.  This should make it a
lot easier to track down the reported invalid refcnting operations.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kent Overstreet <kmo@daterainc.com>
lib/percpu-refcount.c