diff options
author | Javier Cardona <javier@cozybit.com> | 2011-08-30 00:23:05 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 23:42:32 +0400 |
commit | f5e50cd0757cc97cd1caded0d3f07ff09b5319e4 (patch) | |
tree | 6a223d09ae0a6122d7d6cd99da63d3251a8eabf1 /net/mac80211/mesh.h | |
parent | ece1a2e7e86078c8379937b546e32cb7f25fcb6c (diff) | |
download | linux-f5e50cd0757cc97cd1caded0d3f07ff09b5319e4.tar.xz |
mac80211: Improve mpath state locking
No need to take the mpath state lock when an mpath is removed.
Also, no need checking the lock when reading mpath flags.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.h')
-rw-r--r-- | net/mac80211/mesh.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index 57a2ad021bee..7118e8e8855c 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h @@ -80,7 +80,9 @@ enum mesh_deferred_task_flags { * retry * @discovery_retries: number of discovery retries * @flags: mesh path flags, as specified on &enum mesh_path_flags - * @state_lock: mesh path state lock + * @state_lock: mesh path state lock used to protect changes to the + * mpath itself. No need to take this lock when adding or removing + * an mpath to a hash bucket on a path table. * @is_gate: the destination station of this path is a mesh gate * * |