Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18653
b: refs/heads/master
c: 9ba7cbb
h: refs/heads/master
i:
  18651: b1fce27
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Jan 17, 2006
1 parent 6659853 commit a367217
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d77a1d5b611742c538364f041ff4610d27b14fe7
refs/heads/master: 9ba7cbba100bdaca7316d71d6c6298e61191f8b2
6 changes: 3 additions & 3 deletions trunk/fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static struct fuse_conn *fuse_get_conn(struct file *file)
struct fuse_conn *fc;
spin_lock(&fuse_lock);
fc = file->private_data;
if (fc && !fc->mounted)
if (fc && !fc->connected)
fc = NULL;
spin_unlock(&fuse_lock);
return fc;
Expand Down Expand Up @@ -594,7 +594,7 @@ static void request_wait(struct fuse_conn *fc)
DECLARE_WAITQUEUE(wait, current);

add_wait_queue_exclusive(&fc->waitq, &wait);
while (fc->mounted && list_empty(&fc->pending)) {
while (fc->connected && list_empty(&fc->pending)) {
set_current_state(TASK_INTERRUPTIBLE);
if (signal_pending(current))
break;
Expand Down Expand Up @@ -634,7 +634,7 @@ static ssize_t fuse_dev_readv(struct file *file, const struct iovec *iov,
goto err_unlock;
request_wait(fc);
err = -ENODEV;
if (!fc->mounted)
if (!fc->connected)
goto err_unlock;
err = -ERESTARTSYS;
if (list_empty(&fc->pending))
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/fuse/fuse_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ struct fuse_conn {
/** Mount is active */
unsigned mounted : 1;

/** Connection established */
/** Connection established, cleared on umount and device
release */
unsigned connected : 1;

/** Connection failed (version mismatch) */
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/fuse/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ static void fuse_put_super(struct super_block *sb)

spin_lock(&fuse_lock);
fc->mounted = 0;
fc->connected = 0;
/* Flush all readers on this fs */
wake_up_all(&fc->waitq);
up_write(&fc->sbput_sem);
Expand Down

0 comments on commit a367217

Please sign in to comment.