diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-16 10:12:59 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2001-11-16 10:12:59 +0000 |
commit | fff56ab1242e3ad7cddf15e7e981da55d06c4da5 (patch) | |
tree | baca68469ea73b679ac2e74aba52e7312e0ea7a8 /kernel/dev.c | |
parent | 39f28679ed1c313bbeea85d370d95f62551bb21b (diff) | |
download | android_external_fuse-fff56ab1242e3ad7cddf15e7e981da55d06c4da5.tar.gz android_external_fuse-fff56ab1242e3ad7cddf15e7e981da55d06c4da5.tar.bz2 android_external_fuse-fff56ab1242e3ad7cddf15e7e981da55d06c4da5.zip |
better thread management
Diffstat (limited to 'kernel/dev.c')
-rw-r--r-- | kernel/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/dev.c b/kernel/dev.c index d183616..1cc12a2 100644 --- a/kernel/dev.c +++ b/kernel/dev.c @@ -163,8 +163,8 @@ static int request_wait(struct fuse_conn *fc) { int ret = 0; DECLARE_WAITQUEUE(wait, current); - - add_wait_queue(&fc->waitq, &wait); + + add_wait_queue_exclusive(&fc->waitq, &wait); while(list_empty(&fc->pending)) { set_current_state(TASK_INTERRUPTIBLE); if(signal_pending(current)) { |