Update comment. soalloc() is no longer performing M_WAITOK memory allocations.

Submitted by:	ru
MFC after:	3 days
This commit is contained in:
Maksim Yevmenkin 2009-02-10 20:27:05 +00:00
parent 330528331c
commit 320a819087
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188452

View File

@ -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,