git: async_rcvd: Don't add/drop socket reference on hot path

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Mar 19 01:49:13 PDT 2013


commit 901b9bd6b1962d0dd6f0f11f30b205f34ff11827
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Mar 19 16:51:49 2013 +0800

    async_rcvd: Don't add/drop socket reference on hot path
    
    Instead, add reference in tcp_attach(), and drop the reference in
    tcp_close()

Summary of changes:
 sys/kern/uipc_msg.c      | 5 +----
 sys/kern/uipc_socket2.c  | 5 ++++-
 sys/netinet/tcp_subr.c   | 2 ++
 sys/netinet/tcp_usrreq.c | 2 ++
 4 files changed, 9 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/901b9bd6b1962d0dd6f0f11f30b205f34ff11827


-- 
DragonFly BSD source repository


More information about the Commits mailing list