lkml.org 
[lkml]   [2004]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PPC64: vio_find_node removal?
Date
On Jul 1, 2004, at 5:51 PM, Dmitry Torokhov wrote:
>
> Ok, so if we add call to kobject_get in kset_find_obj we can just add
> kobject_put right in vio_find_name because there can be only one-to-one
> match between a slot and a vio device and we don't need refcounting
> there,
> right?

Hmm. Yes, I agree that we need kobject_get and _put between
kset_find_obj() and vio_find_name().

As for the lack of vio_dev refcounting... I think we can get away with
it because rpaphp_vio.c is the only user who might unregister a
vio_dev.

--
Hollis Blanchard
IBM Linux Technology Center

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.059 / U:1.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site