Skip to content

Commit c79c066

Browse files
lxindavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b5eff71 commit c79c066

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

net/sctp/endpointola.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *ep,
317317
* We lookup the transport from hashtable at first, then get association
318318
* through t->assoc.
319319
*/
320-
static struct sctp_association *__sctp_endpoint_lookup_assoc(
320+
struct sctp_association *sctp_endpoint_lookup_assoc(
321321
const struct sctp_endpoint *ep,
322322
const union sctp_addr *paddr,
323323
struct sctp_transport **transport)
@@ -342,21 +342,6 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc(
342342
return asoc;
343343
}
344344

345-
/* Lookup association on an endpoint based on a peer address. BH-safe. */
346-
struct sctp_association *sctp_endpoint_lookup_assoc(
347-
const struct sctp_endpoint *ep,
348-
const union sctp_addr *paddr,
349-
struct sctp_transport **transport)
350-
{
351-
struct sctp_association *asoc;
352-
353-
local_bh_disable();
354-
asoc = __sctp_endpoint_lookup_assoc(ep, paddr, transport);
355-
local_bh_enable();
356-
357-
return asoc;
358-
}
359-
360345
/* Look for any peeled off association from the endpoint that matches the
361346
* given peer address.
362347
*/

0 commit comments

Comments
 (0)