* [PATCH 1/7][MAC8021]: Fix one more call to synchronize_rcu in atomic context.
@ 2008-05-07 15:44 Pavel Emelyanov
[not found] ` <4821CE54.9000401-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Emelyanov @ 2008-05-07 15:44 UTC (permalink / raw)
To: Johannes Berg, John W. Linville
Cc: linux-wireless-u79uwXL29TY76Z2rM5mHXA, Linux Netdev List
(This set applies OK without the previous one of 4 patches,
but with some fuzz in the 7th one)
The mesh_path_node_free() does so under hashwlock.
But, this one is called
1. from mesh_path_add() after an old hash is hidden and
synchronize_rcu() is calld
2. mesh_pathtbl_unregister(), when the module is being
unloaded and no devices exist to mess with this hash.
So, it seems to me, that simply removing the call is OK.
Signed-off-by: Pavel Emelyanov <xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
---
net/mac80211/mesh_pathtbl.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index 7097ef9..0b6c4bf 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -458,7 +458,6 @@ static void mesh_path_node_free(struct hlist_node *p, bool free_leafs)
struct mpath_node *node = hlist_entry(p, struct mpath_node, list);
mpath = node->mpath;
hlist_del_rcu(p);
- synchronize_rcu();
if (free_leafs)
kfree(mpath);
kfree(node);
--
1.5.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/7][MAC8021]: Fix one more call to synchronize_rcu in atomic context.
[not found] ` <4821CE54.9000401-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
@ 2008-05-16 11:05 ` Pavel Emelyanov
[not found] ` <482D6A80.6030804-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Emelyanov @ 2008-05-16 11:05 UTC (permalink / raw)
To: John W. Linville
Cc: Johannes Berg, linux-wireless-u79uwXL29TY76Z2rM5mHXA,
Linux Netdev List
Hi, John.
Sorry for bothering you, I guess that you're very busy now,
but what are you plans about this set?
After I saw my first set included in some wireless git update,
I thought this one would be in some of the next ones (since
this set fixes some bugs in mesh tables), and started waiting.
Here's a new wireless git update and this set is still not in.
Shall I resubmit one?
Thanks,
Pavel
> (This set applies OK without the previous one of 4 patches,
> but with some fuzz in the 7th one)
>
>
> The mesh_path_node_free() does so under hashwlock.
>
> But, this one is called
> 1. from mesh_path_add() after an old hash is hidden and
> synchronize_rcu() is calld
> 2. mesh_pathtbl_unregister(), when the module is being
> unloaded and no devices exist to mess with this hash.
>
> So, it seems to me, that simply removing the call is OK.
>
> Signed-off-by: Pavel Emelyanov <xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
>
> ---
> net/mac80211/mesh_pathtbl.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
> index 7097ef9..0b6c4bf 100644
> --- a/net/mac80211/mesh_pathtbl.c
> +++ b/net/mac80211/mesh_pathtbl.c
> @@ -458,7 +458,6 @@ static void mesh_path_node_free(struct hlist_node *p, bool free_leafs)
> struct mpath_node *node = hlist_entry(p, struct mpath_node, list);
> mpath = node->mpath;
> hlist_del_rcu(p);
> - synchronize_rcu();
> if (free_leafs)
> kfree(mpath);
> kfree(node);
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/7][MAC8021]: Fix one more call to synchronize_rcu in atomic context.
[not found] ` <482D6A80.6030804-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
@ 2008-05-16 15:16 ` John W. Linville
[not found] ` <20080516151620.GC6510-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: John W. Linville @ 2008-05-16 15:16 UTC (permalink / raw)
To: Pavel Emelyanov
Cc: Johannes Berg, linux-wireless-u79uwXL29TY76Z2rM5mHXA,
Linux Netdev List
On Fri, May 16, 2008 at 03:05:36PM +0400, Pavel Emelyanov wrote:
> Sorry for bothering you, I guess that you're very busy now,
> but what are you plans about this set?
>
> After I saw my first set included in some wireless git update,
> I thought this one would be in some of the next ones (since
> this set fixes some bugs in mesh tables), and started waiting.
>
> Here's a new wireless git update and this set is still not in.
> Shall I resubmit one?
Pavel,
I still have your patchset. I'm still working on clearing my
backlog, as well as waiting for some fixes to make the round-trip
net-2.6->linux-2.6->net-next-2.6. The combination of that and the
fact that your patch hit locking and "the usual suspects" had not
yet commented on it made me decide to wait until the next round.
If you are desperate to see them sooner, I could probably put them
in the -testing tree early? Let me know if you would like that.
John
--
John W. Linville
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/7][MAC8021]: Fix one more call to synchronize_rcu in atomic context.
[not found] ` <20080516151620.GC6510-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
@ 2008-05-16 15:53 ` Pavel Emelyanov
0 siblings, 0 replies; 4+ messages in thread
From: Pavel Emelyanov @ 2008-05-16 15:53 UTC (permalink / raw)
To: John W. Linville
Cc: Johannes Berg, linux-wireless-u79uwXL29TY76Z2rM5mHXA,
Linux Netdev List
John W. Linville wrote:
> On Fri, May 16, 2008 at 03:05:36PM +0400, Pavel Emelyanov wrote:
>
>> Sorry for bothering you, I guess that you're very busy now,
>> but what are you plans about this set?
>>
>> After I saw my first set included in some wireless git update,
>> I thought this one would be in some of the next ones (since
>> this set fixes some bugs in mesh tables), and started waiting.
>>
>> Here's a new wireless git update and this set is still not in.
>> Shall I resubmit one?
>
> Pavel,
>
> I still have your patchset. I'm still working on clearing my
> backlog, as well as waiting for some fixes to make the round-trip
> net-2.6->linux-2.6->net-next-2.6. The combination of that and the
> fact that your patch hit locking and "the usual suspects" had not
> yet commented on it made me decide to wait until the next round.
>
> If you are desperate to see them sooner, I could probably put them
> in the -testing tree early? Let me know if you would like that.
No, this is not critical for me. You may keep this set in any
place in your queue. I just wanted to make sure, that this set
didn't get accidentally lost and no additional help from me is
required (at least for now).
> John
Thanks,
Pavel
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-16 15:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 15:44 [PATCH 1/7][MAC8021]: Fix one more call to synchronize_rcu in atomic context Pavel Emelyanov
[not found] ` <4821CE54.9000401-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-05-16 11:05 ` Pavel Emelyanov
[not found] ` <482D6A80.6030804-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-05-16 15:16 ` John W. Linville
[not found] ` <20080516151620.GC6510-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2008-05-16 15:53 ` Pavel Emelyanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).