Re: [patch 4/4] char/snsc: reorder set_current_state() and add_wait_queue()

From: Martin Waitz
Date: Mon Nov 22 2004 - 16:14:25 EST


hoi :)

On Sat, Nov 20, 2004 at 03:47:03AM +0100, janitor@xxxxxxxxxxxxxx wrote:
> Description: Reorder add_wait_queue() and set_current_state() as a
> signal could be lost in between the two functions.

couldn't you loose a wake event that way?

Perhaps you want to use prepare_to_wait()?


--
Martin Waitz

Attachment: signature.asc
Description: Digital signature