diff options
author | Maxim Patlasov <mpatlasov@parallels.com> | 2013-03-21 15:02:04 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-04-17 12:31:44 +0200 |
commit | 8b41e6715ed555e2d8e8dac52ec1f05a9f04dcb4 (patch) | |
tree | a3302435ed781462e1780b89e4ac5e9833158cb0 /fs/fuse/fuse_i.h | |
parent | fuse: fix type definitions in uapi header (diff) | |
download | linux-8b41e6715ed555e2d8e8dac52ec1f05a9f04dcb4.tar.xz linux-8b41e6715ed555e2d8e8dac52ec1f05a9f04dcb4.zip |
fuse: make request allocations for background processing explicit
There are two types of processing requests in FUSE: synchronous (via
fuse_request_send()) and asynchronous (via adding to fc->bg_queue).
Fortunately, the type of processing is always known in advance, at the time
of request allocation. This preparatory patch utilizes this fact making
fuse_get_req() aware about the type. Next patches will use it.
Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 6aeba864f070..47c94d28ff88 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -708,6 +708,8 @@ void fuse_request_free(struct fuse_req *req); * caller should specify # elements in req->pages[] explicitly */ struct fuse_req *fuse_get_req(struct fuse_conn *fc, unsigned npages); +struct fuse_req *fuse_get_req_for_background(struct fuse_conn *fc, + unsigned npages); /** * Get a request, may fail with -ENOMEM, |