mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
fuse: move fuse_dev_waitq to dev.c
Move wake_up_all(&fuse_dev_waitq) into fuse_dev_install() where it logically belongs. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
4f5f0038d6
commit
3344b7367a
|
|
@ -31,6 +31,8 @@
|
|||
MODULE_ALIAS_MISCDEV(FUSE_MINOR);
|
||||
MODULE_ALIAS("devname:fuse");
|
||||
|
||||
static DECLARE_WAIT_QUEUE_HEAD(fuse_dev_waitq);
|
||||
|
||||
static struct kmem_cache *fuse_req_cachep;
|
||||
|
||||
static void fuse_request_init(struct fuse_mount *fm, struct fuse_req *req)
|
||||
|
|
@ -481,6 +483,7 @@ void fuse_dev_install(struct fuse_dev *fud, struct fuse_conn *fc)
|
|||
} else {
|
||||
list_add_tail(&fud->entry, &fc->chan->devices);
|
||||
fuse_conn_get(fc);
|
||||
wake_up_all(&fuse_dev_waitq);
|
||||
}
|
||||
spin_unlock(&fc->chan->lock);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@
|
|||
#define FUSE_INT_REQ_BIT (1ULL << 0)
|
||||
#define FUSE_REQ_ID_STEP (1ULL << 1)
|
||||
|
||||
extern struct wait_queue_head fuse_dev_waitq;
|
||||
|
||||
struct fuse_arg;
|
||||
struct fuse_args;
|
||||
struct fuse_pqueue;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ MODULE_LICENSE("GPL");
|
|||
static struct kmem_cache *fuse_inode_cachep;
|
||||
struct list_head fuse_conn_list;
|
||||
DEFINE_MUTEX(fuse_mutex);
|
||||
DECLARE_WAIT_QUEUE_HEAD(fuse_dev_waitq);
|
||||
|
||||
static int set_global_limit(const char *val, const struct kernel_param *kp);
|
||||
|
||||
|
|
@ -1789,10 +1788,9 @@ int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx)
|
|||
|
||||
list_add_tail(&fc->entry, &fuse_conn_list);
|
||||
sb->s_root = root_dentry;
|
||||
if (fud) {
|
||||
if (fud)
|
||||
fuse_dev_install(fud, fc);
|
||||
wake_up_all(&fuse_dev_waitq);
|
||||
}
|
||||
|
||||
mutex_unlock(&fuse_mutex);
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user