summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/socket
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2009-02-10 20:27:05 +0000
committeremax <emax@FreeBSD.org>2009-02-10 20:27:05 +0000
commitb3c91fe7ccae478adb14c15f469d49a98deb8c3f (patch)
tree21f393de80bc6a45ae4a01486afe94b8738ecf4b /sys/netgraph/bluetooth/socket
parent50792711b6cbefd6bddaf1d78592e30d9b5056c1 (diff)
downloadFreeBSD-src-b3c91fe7ccae478adb14c15f469d49a98deb8c3f.zip
FreeBSD-src-b3c91fe7ccae478adb14c15f469d49a98deb8c3f.tar.gz
Update comment. soalloc() is no longer performing M_WAITOK memory allocations.
Submitted by: ru MFC after: 3 days
Diffstat (limited to 'sys/netgraph/bluetooth/socket')
-rw-r--r--sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
index 0fc1938..0f409b5 100644
--- a/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
+++ b/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
@@ -518,13 +518,9 @@ ng_btsocket_rfcomm_connect(struct socket *so, struct sockaddr *nam,
return (EDESTADDRREQ);
/*
- * XXX FIXME - This is FUBAR. socreate() will call soalloc(1), i.e.
- * soalloc() is allowed to sleep in MALLOC. This creates "could sleep"
- * WITNESS warnings. To work around this problem we will create L2CAP
- * socket first and then check if we actually need it. Note that we
- * will not check for errors in socreate() because if we failed to
- * create L2CAP socket at this point we still might have already open
- * session.
+ * Note that we will not check for errors in socreate() because
+ * if we failed to create L2CAP socket at this point we still
+ * might have already open session.
*/
error = socreate(PF_BLUETOOTH, &l2so, SOCK_SEQPACKET,
@@ -857,13 +853,9 @@ ng_btsocket_rfcomm_listen(struct socket *so, int backlog, struct thread *td)
mtx_unlock(&pcb->pcb_mtx);
/*
- * XXX FIXME - This is FUBAR. socreate() will call soalloc(1), i.e.
- * soalloc() is allowed to sleep in MALLOC. This creates "could sleep"
- * WITNESS warnings. To work around this problem we will create L2CAP
- * socket first and then check if we actually need it. Note that we
- * will not check for errors in socreate() because if we failed to
- * create L2CAP socket at this point we still might have already open
- * session.
+ * Note that we will not check for errors in socreate() because
+ * if we failed to create L2CAP socket at this point we still
+ * might have already open session.
*/
socreate_error = socreate(PF_BLUETOOTH, &l2so, SOCK_SEQPACKET,
OpenPOWER on IntegriCloud