Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102791450
D32742.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D32742.diff
View Options
Index: sys/dev/cxgbe/tom/t4_cpl_io.c
===================================================================
--- sys/dev/cxgbe/tom/t4_cpl_io.c
+++ sys/dev/cxgbe/tom/t4_cpl_io.c
@@ -2377,8 +2377,7 @@
NET_EPOCH_EXIT(et);
free_toepcb(toep);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
}
Index: sys/kern/kern_sendfile.c
===================================================================
--- sys/kern/kern_sendfile.c
+++ sys/kern/kern_sendfile.c
@@ -399,8 +399,7 @@
(void)(so->so_proto->pr_usrreqs->pru_ready)(so, sfio->m,
sfio->npages);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
#ifdef KERN_TLS
out_with_ref:
#endif
Index: sys/kern/sys_socket.c
===================================================================
--- sys/kern/sys_socket.c
+++ sys/kern/sys_socket.c
@@ -727,8 +727,7 @@
sb->sb_flags &= ~SB_AIO_RUNNING;
SOCKBUF_UNLOCK(sb);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
}
Index: sys/kern/uipc_ktls.c
===================================================================
--- sys/kern/uipc_ktls.c
+++ sys/kern/uipc_ktls.c
@@ -2077,8 +2077,7 @@
SOCKBUF_UNLOCK_ASSERT(sb);
CURVNET_SET(so->so_vnet);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
}
@@ -2427,8 +2426,7 @@
mb_free_notready(top, total_pages);
}
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
}
@@ -2472,8 +2470,7 @@
mb_free_notready(m, npages);
}
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
}
@@ -2523,8 +2520,7 @@
counter_u64_add(ktls_offload_failed_crypto, 1);
free(state, M_KTLS);
CURVNET_SET(so->so_vnet);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
break;
}
@@ -2539,8 +2535,7 @@
mb_free_notready(m, total_pages - npages);
}
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
}
@@ -2732,8 +2727,7 @@
}
out:
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
if (!in_pcbrele_wlocked(inp))
INP_WUNLOCK(inp);
ktls_free(tls);
Index: sys/netinet/tcp_subr.c
===================================================================
--- sys/netinet/tcp_subr.c
+++ sys/netinet/tcp_subr.c
@@ -3845,8 +3845,7 @@
error = ktls_set_tx_mode(so,
arg2 == 0 ? TCP_TLS_MODE_SW : TCP_TLS_MODE_IFNET);
INP_WUNLOCK(inp);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
}
} else
error = ESRCH;
Index: sys/rpc/clnt_vc.c
===================================================================
--- sys/rpc/clnt_vc.c
+++ sys/rpc/clnt_vc.c
@@ -912,8 +912,7 @@
}
/* Must sorele() to get rid of reference. */
CURVNET_SET(so->so_vnet);
- SOCK_LOCK(so);
- sorele(so);
+ sorele_unlocked(so);
CURVNET_RESTORE();
} else {
soshutdown(so, SHUT_WR);
Index: sys/rpc/svc_vc.c
===================================================================
--- sys/rpc/svc_vc.c
+++ sys/rpc/svc_vc.c
@@ -468,8 +468,7 @@
}
/* Must sorele() to get rid of reference. */
CURVNET_SET(xprt->xp_socket->so_vnet);
- SOCK_LOCK(xprt->xp_socket);
- sorele(xprt->xp_socket);
+ sorele_unlocked(xprt->xp_socket);
CURVNET_RESTORE();
} else
(void)soclose(xprt->xp_socket);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 6:19 AM (22 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14691045
Default Alt Text
D32742.diff (3 KB)
Attached To
Mode
D32742: Use sorele_unlocked().
Attached
Detach File
Event Timeline
Log In to Comment