]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fuse: add missing FR_FORCE
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 22 Feb 2017 19:08:25 +0000 (20:08 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:21:30 +0000 (09:21 +0100)
commit7a7e0e64ded2195379de5e4a05c2b92dbb3b25ab
tree4405d060a8d0d4472941b9fec751dfb2f7344f02
parent82e64b20fac670e974deddccd3b56d6c5fbb8cfb
fuse: add missing FR_FORCE

BugLink: http://bugs.launchpad.net/bugs/1673538
commit 2e38bea99a80eab408adee27f873a188d57b76cb upstream.

fuse_file_put() was missing the "force" flag for the RELEASE request when
sending synchronously (fuseblk).

If this flag is not set, then a sync request may be interrupted before it
is dequeued by the userspace filesystem.  In this case the OPEN won't be
balanced with a RELEASE.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 5a18ec176c93 ("fuse: fix hang of single threaded fuseblk filesystem")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/fuse/file.c