Re: Witness warning with SCTP
- From: "Attilio Rao" <attilio@xxxxxxxxxxx>
- Date: Thu, 11 Jan 2007 16:44:51 +0100
2007/1/10, John Baldwin <jhb@xxxxxxxxxxx>:
On Wednesday 10 January 2007 10:03, Randall Stewart wrote:
> Robert/All:
>
> Ok, here is the deal... I have looked in a bit
> closer at this..
>
> Here is what is happening...
>
> When a cookie arrives, we get a "create lock" on
> the socket this prevents the user on the same
> socket from creating a assoc at the same exact time.
Can't you do a model like this:
lock();
if (need to create pcb) {
unlock();
create_pcb(); // can sleep w/o holding lock
lock();
if (someone else created the pcb)
free(pcb_I_just_created);
}
unlock();
But it is quite impossible to get rid of M_WAITOK in this case (IIUC,
this should be the sleeping point)?
Attilio
--
Peace can only be achieved by understanding - A. Einstein
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- References:
- Witness warning with SCTP
- From: Craig Rodrigues
- Re: Witness warning with SCTP
- From: Robert Watson
- Re: Witness warning with SCTP
- From: Randall Stewart
- Re: Witness warning with SCTP
- From: John Baldwin
- Witness warning with SCTP
- Prev by Date: Thread libs version bump??
- Next by Date: Re: cvs commit: src/sys/dev/bce if_bce.c src/sys/dev/em if_em.c if_em.h src/sys/dev/mpt mpt.h mpt_pci.c
- Previous by thread: Re: Witness warning with SCTP
- Next by thread: Re: KDE 3.5.5 lock issue was (Xorg with lock session issue)
- Index(es):
Relevant Pages
|