aboutsummaryrefslogtreecommitdiff
path: root/kernel/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/dev.c')
-rw-r--r--kernel/dev.c4
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)) {