]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: add simple background helper
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 10 Sep 2019 13:04:10 +0000 (15:04 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 10 Sep 2019 14:29:49 +0000 (16:29 +0200)
commitaa5300cd1ce5d47def24aa8a9a1576bbd1834b24
tree3821ca6b5e930157a48fa2ca0948a9e7d7fa7fcc
parent367d68aff0044430ad373d7690dfd6703751e7ef
fuse: add simple background helper

Create a helper named fuse_simple_background() that is similar to
fuse_simple_request().  Unlike the latter, it returns immediately and calls
the supplied 'end' callback when the reply is received.

The supplied 'args' pointer is stored in 'fuse_req' which allows the
callback to interpret the output arguments decoded from the reply.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/fuse_i.h