diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2010-10-14 13:58:26 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-18 08:50:49 (GMT) |
commit | ccc901ee58cfb090a31216a6eda0f1e9dfc572fa (patch) | |
tree | 84ef5ceb36f6b44c2ba66830c20ebb1fd3b85dcd /kernel/early_res.c | |
parent | 724829b3ad8e8aeb0aec46de383d35bfa1ad3875 (diff) | |
download | linux-ccc901ee58cfb090a31216a6eda0f1e9dfc572fa.tar.xz |
tipc: Simplify bearer shutdown logic
Optimize processing in TIPC's bearer shutdown code, including:
1. Remove an unnecessary check to see if TIPC bearer's can exist.
2. Don't release spinlocks before calling a media-specific disabling
routine, since the routine can't sleep.
3. Make bearer_disable() operate directly on a struct bearer, instead
of needlessly taking a name and then mapping that to the struct.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Reviewed-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/early_res.c')
0 files changed, 0 insertions, 0 deletions