* [PATCH] configfs: export config_group_find_obj
@ 2005-08-18 6:26 David Teigland
2005-08-19 15:09 ` Joel Becker
[not found] ` <20050818211749.GD22742@insight>
0 siblings, 2 replies; 4+ messages in thread
From: David Teigland @ 2005-08-18 6:26 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, mark.fasheh
In the dlm I use config_group_find_obj() which isn't exported.
Signed-off-by: David Teigland <teigland@redhat.com>
diff -urpN a/fs/configfs/item.c b/fs/configfs/item.c
--- a/fs/configfs/item.c 2005-08-17 17:19:23.000000000 +0800
+++ b/fs/configfs/item.c 2005-08-18 14:15:51.681973168 +0800
@@ -224,4 +224,5 @@ EXPORT_SYMBOL(config_item_init);
EXPORT_SYMBOL(config_group_init);
EXPORT_SYMBOL(config_item_get);
EXPORT_SYMBOL(config_item_put);
+EXPORT_SYMBOL(config_group_find_obj);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] configfs: export config_group_find_obj
2005-08-18 6:26 [PATCH] configfs: export config_group_find_obj David Teigland
@ 2005-08-19 15:09 ` Joel Becker
[not found] ` <20050818211749.GD22742@insight>
1 sibling, 0 replies; 4+ messages in thread
From: Joel Becker @ 2005-08-19 15:09 UTC (permalink / raw)
To: David Teigland; +Cc: akpm, linux-kernel, mark.fasheh
On Thu, Aug 18, 2005 at 02:26:02PM +0800, David Teigland wrote:
> In the dlm I use config_group_find_obj() which isn't exported.
Did you notice the /* XXX Locking */? Let me go see how you use
it, if it is the best way, we'll need to revisit the function and be
sure it's happy.
Joel
>
> Signed-off-by: David Teigland <teigland@redhat.com>
>
> diff -urpN a/fs/configfs/item.c b/fs/configfs/item.c
> --- a/fs/configfs/item.c 2005-08-17 17:19:23.000000000 +0800
> +++ b/fs/configfs/item.c 2005-08-18 14:15:51.681973168 +0800
> @@ -224,4 +224,5 @@ EXPORT_SYMBOL(config_item_init);
> EXPORT_SYMBOL(config_group_init);
> EXPORT_SYMBOL(config_item_get);
> EXPORT_SYMBOL(config_item_put);
> +EXPORT_SYMBOL(config_group_find_obj);
>
> -
> 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/
--
"Time is an illusion, lunchtime doubly so."
-Douglas Adams
http://www.jlbec.org/
jlbec@evilplan.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] configfs: export config_group_find_obj
[not found] ` <20050818211749.GD22742@insight>
@ 2005-08-19 15:09 ` Joel Becker
[not found] ` <20050818212022.GE22742@insight>
1 sibling, 0 replies; 4+ messages in thread
From: Joel Becker @ 2005-08-19 15:09 UTC (permalink / raw)
To: David Teigland, akpm, linux-kernel, mark.fasheh
On Thu, Aug 18, 2005 at 02:17:49PM -0700, Joel Becker wrote:
> On Thu, Aug 18, 2005 at 02:26:02PM +0800, David Teigland wrote:
> > In the dlm I use config_group_find_obj() which isn't exported.
>
> Did you notice the /* XXX Locking */? Let me go see how you use
> it, if it is the best way, we'll need to revisit the function and be
> sure it's happy.
Yeah, your usage is unsafe, but the fault lies with find_obj().
Needs fixing.
Joel
--
"Vote early and vote often."
- Al Capone
http://www.jlbec.org/
jlbec@evilplan.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] configfs: export config_group_find_obj
[not found] ` <20050818212022.GE22742@insight>
@ 2005-08-19 15:09 ` Joel Becker
0 siblings, 0 replies; 4+ messages in thread
From: Joel Becker @ 2005-08-19 15:09 UTC (permalink / raw)
To: David Teigland, akpm, linux-kernel, mark.fasheh
On Thu, Aug 18, 2005 at 02:20:23PM -0700, Joel Becker wrote:
> On Thu, Aug 18, 2005 at 02:17:49PM -0700, Joel Becker wrote:
> > On Thu, Aug 18, 2005 at 02:26:02PM +0800, David Teigland wrote:
> > > In the dlm I use config_group_find_obj() which isn't exported.
> >
> > Did you notice the /* XXX Locking */? Let me go see how you use
> > it, if it is the best way, we'll need to revisit the function and be
> > sure it's happy.
>
> Yeah, your usage is unsafe, but the fault lies with find_obj().
> Needs fixing.
And you copied the same issue into get_comm(). When navigating
cg_children (or any part of the object tree), you need to be holding the
subsystem semaphore. Someone could race with mkdir/rmdir.
Joel
--
"Senator let's be sincere,
As much as you can."
http://www.jlbec.org/
jlbec@evilplan.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-19 15:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18 6:26 [PATCH] configfs: export config_group_find_obj David Teigland
2005-08-19 15:09 ` Joel Becker
[not found] ` <20050818211749.GD22742@insight>
2005-08-19 15:09 ` Joel Becker
[not found] ` <20050818212022.GE22742@insight>
2005-08-19 15:09 ` Joel Becker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox