[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1446483719-30310-1-git-send-email-aconole@bytheb.org>
Date: Mon, 2 Nov 2015 12:01:59 -0500
From: Aaron Conole <aconole@...heb.org>
To: netdev@...r.kernel.org
Cc: Aaron Conole <aconole@...heb.org>
Subject: [PATCH net-next] af_unix: optimize unix_writable by inlining
unix_writable() originally was inlined, but was changed as part of
commit 1586a5877db9 ("af_unix: do not report POLLOUT on
listeners"). Re-enable the inline flag.
Signed-off-by: Aaron Conole <aconole@...heb.org>
Cc: Eric Dumazet <edumazet@...gle.com>
---
net/unix/af_unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index aaa0b58..f0c7f0c 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -326,7 +326,7 @@ found:
return s;
}
-static int unix_writable(const struct sock *sk)
+static inline int unix_writable(const struct sock *sk)
{
return sk->sk_state != TCP_LISTEN &&
(atomic_read(&sk->sk_wmem_alloc) << 2) <= sk->sk_sndbuf;
--
2.6.1.133.gf5b6079
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists