Commit e180d34f authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: Mark lock_sock and release_sock as FASTCALL.

parent 96531b37
......@@ -561,8 +561,8 @@ extern void __lock_sock(struct sock *sk);
extern void __release_sock(struct sock *sk);
#define sock_owned_by_user(sk) ((sk)->sk_lock.owner)
extern void lock_sock(struct sock *sk);
extern void release_sock(struct sock *sk);
extern void FASTCALL(lock_sock(struct sock *sk));
extern void FASTCALL(release_sock(struct sock *sk));
/* BH context may only use the following locking interface. */
#define bh_lock_sock(__sk) spin_lock(&((__sk)->sk_lock.slock))
......
......@@ -1138,7 +1138,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)
atomic_set(&sk->sk_refcnt, 1);
}
void lock_sock(struct sock *sk)
void fastcall lock_sock(struct sock *sk)
{
might_sleep();
spin_lock_bh(&(sk->sk_lock.slock));
......@@ -1150,7 +1150,7 @@ void lock_sock(struct sock *sk)
EXPORT_SYMBOL(lock_sock);
void release_sock(struct sock *sk)
void fastcall release_sock(struct sock *sk)
{
spin_lock_bh(&(sk->sk_lock.slock));
if (sk->sk_backlog.tail)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment