Re: [RFC] assorted changes to atm protocol stack

chas williams (chas@cmf.nrl.navy.mil)
Mon, 09 Jun 2003 07:01:06 -0400


> vcc->local = *addr;
> vcc->reply = WAITING;
>- add_wait_queue(&vcc->sleep,&wait);
>- sigd_enq(vcc,as_bind,NULL,NULL,&vcc->local);
>+ add_wait_queue(&vcc->sleep, &wait);
>+ sigd_enq(vcc, as_bind, NULL, NULL, &vcc->local);
> while (vcc->reply == WAITING && sigd) {
> set_current_state(TASK_UNINTERRUPTIBLE);
> schedule();
> }
>- remove_wait_queue(&vcc->sleep,&wait);

forgot to ask but i imagine that the add_wait_queue() and remove_wait_queue()
should probably be converted to prepare_to_wait() and finish_wait()?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/