diff options
author | Xin Long <lucien.xin@gmail.com> | 2015-12-30 18:50:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-05 20:24:02 +0300 |
commit | c79c0666915418f9c0f01a6d0e93179416fb0c9e (patch) | |
tree | 457dc1b37d533fb20d9ea757fbce413c8d5a4f79 | |
parent | b5eff7128366c4a7a9b502097a968ec9cae2bea2 (diff) | |
download | linux-c79c0666915418f9c0f01a6d0e93179416fb0c9e.tar.xz |
sctp: remove the local_bh_disable/enable in sctp_endpoint_lookup_assoc
sctp_endpoint_lookup_assoc is called in the protection of sock lock
there is no need to call local_bh_disable in this function. so remove
them.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/endpointola.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 8838bf492a12..52838eaa1582 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c @@ -317,7 +317,7 @@ struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *ep, * We lookup the transport from hashtable at first, then get association * through t->assoc. */ -static struct sctp_association *__sctp_endpoint_lookup_assoc( +struct sctp_association *sctp_endpoint_lookup_assoc( const struct sctp_endpoint *ep, const union sctp_addr *paddr, struct sctp_transport **transport) @@ -342,21 +342,6 @@ out: return asoc; } -/* Lookup association on an endpoint based on a peer address. BH-safe. */ -struct sctp_association *sctp_endpoint_lookup_assoc( - const struct sctp_endpoint *ep, - const union sctp_addr *paddr, - struct sctp_transport **transport) -{ - struct sctp_association *asoc; - - local_bh_disable(); - asoc = __sctp_endpoint_lookup_assoc(ep, paddr, transport); - local_bh_enable(); - - return asoc; -} - /* Look for any peeled off association from the endpoint that matches the * given peer address. */ |