Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108112295
D33543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
856 B
Referenced Files
None
Subscribers
None
D33543.diff
View Options
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -501,8 +501,6 @@
struct inpcb *il_inp[]; /* (h) */
};
-#define INP_LOCK_INIT(inp, d, t) \
- rw_init_flags(&(inp)->inp_lock, (t), RW_RECURSE | RW_DUPOK)
#define INP_LOCK_DESTROY(inp) rw_destroy(&(inp)->inp_lock)
#define INP_RLOCK(inp) rw_rlock(&(inp)->inp_lock)
#define INP_WLOCK(inp) rw_wlock(&(inp)->inp_lock)
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -2498,7 +2498,8 @@
SCTP_INP_INFO_WLOCK();
SCTP_INP_LOCK_INIT(inp);
- INP_LOCK_INIT(&inp->ip_inp.inp, "inp", "sctpinp");
+ rw_init_flags(&inp->ip_inp.inp.inp_lock, "sctpinp",
+ RW_RECURSE | RW_DUPOK);
SCTP_INP_READ_INIT(inp);
SCTP_ASOC_CREATE_LOCK_INIT(inp);
/* lock the new ep */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 12:37 PM (7 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16029912
Default Alt Text
D33543.diff (856 B)
Attached To
Mode
D33543: inpcb: garbage collect INP_LOCK_INIT(), used only once in sctp
Attached
Detach File
Event Timeline
Log In to Comment