diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2016-11-16 23:06:17 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-02-01 23:46:36 +0100 |
commit | 9b7c18a2d4b798963ea80f6769701dcc4c24b55e (patch) | |
tree | 5bae0246771770c48892534805407b136a823066 /fs/cifs/cifsglob.h | |
parent | CIFS: Add transform header handling callbacks (diff) | |
download | linux-9b7c18a2d4b798963ea80f6769701dcc4c24b55e.tar.xz linux-9b7c18a2d4b798963ea80f6769701dcc4c24b55e.zip |
CIFS: Add mid handle callback
We need to process read responses differently because the data
should go directly into preallocated pages. This can be done
by specifying a mid handle callback.
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 35cf62ba5416..8a04a013a4ac 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1312,6 +1312,13 @@ typedef int (mid_receive_t)(struct TCP_Server_Info *server, */ typedef void (mid_callback_t)(struct mid_q_entry *mid); +/* + * This is the protopyte for mid handle function. This is called once the mid + * has been recognized after decryption of the message. + */ +typedef int (mid_handle_t)(struct TCP_Server_Info *server, + struct mid_q_entry *mid); + /* one of these for every pending CIFS request to the server */ struct mid_q_entry { struct list_head qhead; /* mids waiting on reply from this server */ @@ -1326,6 +1333,7 @@ struct mid_q_entry { #endif mid_receive_t *receive; /* call receive callback */ mid_callback_t *callback; /* call completion callback */ + mid_handle_t *handle; /* call handle mid callback */ void *callback_data; /* general purpose pointer for callback */ void *resp_buf; /* pointer to received SMB header */ int mid_state; /* wish this were enum but can not pass to wait_event */ |