Files
linux/fs
Chad Austin d9267e1360 fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns ENOSYS
commit 2e64ff154c upstream.

When FUSE_OPEN returns ENOSYS, the no_open bit is set on the connection.

Because the FUSE_RELEASE and FUSE_RELEASEDIR paths share code, this
incorrectly caused the FUSE_RELEASEDIR request to be dropped and never sent
to userspace.

Pass an isdir bool to distinguish between FUSE_RELEASE and FUSE_RELEASEDIR
inside of fuse_file_put.

Fixes: 7678ac5061 ("fuse: support clients that don't implement 'open'")
Cc: <stable@vger.kernel.org> # v3.14
Signed-off-by: Chad Austin <chadaustin@fb.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-19 19:19:51 +01:00
..
2018-11-13 11:08:46 -08:00
2018-08-21 23:54:17 -04:00
2018-12-05 19:32:11 +01:00
2018-11-13 11:08:39 -08:00
2018-12-17 09:24:41 +01:00
2018-08-17 16:20:28 -07:00
2018-05-22 14:27:52 -04:00
2018-08-17 16:20:27 -07:00
2018-12-17 09:24:41 +01:00
2018-05-22 14:27:52 -04:00
2018-12-19 19:19:50 +01:00
2018-07-03 16:44:45 -04:00
2018-06-05 19:23:26 +02:00
2018-12-17 09:24:41 +01:00
2018-05-03 16:11:37 -06:00
2018-06-11 08:22:34 -07:00
2018-02-15 15:34:42 -05:00