fuse: add flag fc->initialized
authorMaxim Patlasov <mpatlasov@parallels.com>
Thu, 21 Mar 2013 14:02:15 +0000 (18:02 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 17 Apr 2013 10:31:44 +0000 (12:31 +0200)
Existing flag fc->blocked is used to suspend request allocation both in case
of many background request submitted and period of time before init_reply
arrives from userspace. Next patch will skip blocking allocations of
synchronous request (disregarding fc->blocked). This is mostly OK, but
we still need to suspend allocations if init_reply is not arrived yet. The
patch introduces flag fc->initialized which will serve this purpose.

Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/cuse.c
fs/fuse/dev.c
fs/fuse/fuse_i.h
fs/fuse/inode.c

diff --cc fs/fuse/cuse.c
Simple merge
diff --cc fs/fuse/dev.c
Simple merge
Simple merge
diff --cc fs/fuse/inode.c
Simple merge