Re: Witness warning with SCTP



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"



Relevant Pages

  • Re: Color asteroids revisited.
    ... When you peruse the originol pics of the hack done by andy one thing ... ugly enough for me to whip out the radio shack predrilled pcb and lay ... Next I laid a long tailed machine pin socket down on ...
    (rec.games.video.arcade.collecting)
  • Re: info needed for 6L6GC tube voltage or shematic for old TUSC guitar head
    ... PCB and sistering the new caps to those leads. ... going to socket 1 of the 6L6GC section of the board. ... pin 3: 436 DC Volts ...
    (alt.guitar.amps)
  • Re: Star Trek 25th Anniversary or Hook chase light pcb
    ... I can sell you the board for ... - 14pin IC Socket ... > missing the "chase light" board. ... > checking for shorts in the rope lights that cause failure in the PCB, ...
    (rec.games.pinball)
  • Re: Does "I/O error" mean hardware problem?
    ... I just checked a system here with a 1 year old 500GB WD BLUE SATA II ... connector either at the drive or the PCB socket, ... CRC errors indicate a transmission problem on the interface conductors. ...
    (Debian-User)
  • Re: Witness warning with SCTP
    ... When a cookie arrives, we get a "create lock" on ... socket from creating a assoc at the same exact time. ... Since this lock is in place, ... The PCB is then put on the forming ...
    (freebsd-current)