diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-07-01 16:26:06 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-07-01 16:26:06 +0200 |
commit | 45a91cb1a4fd9bb0e53c95e3dc9185dd5b5ba245 (patch) | |
tree | 121d4f3faa29a20bd583c725a3d905856133f714 /fs/fuse/fuse_i.h | |
parent | 24b4d33d46e9c4c671a43f2640d80fe1159f488c (diff) | |
download | op-kernel-dev-45a91cb1a4fd9bb0e53c95e3dc9185dd5b5ba245.zip op-kernel-dev-45a91cb1a4fd9bb0e53c95e3dc9185dd5b5ba245.tar.gz |
fuse: pqueue locking
Add a fpq->lock for protecting members of struct fuse_pqueue and FR_LOCKED
request flag.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 5897d89..ad3799e 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -405,6 +405,9 @@ struct fuse_pqueue { /** Connection established */ unsigned connected; + /** Lock protecting accessess to members of this structure */ + spinlock_t lock; + /** The list of requests being processed */ struct list_head processing; |