diff options
author | Jeff Layton <[email protected]> | 2022-02-26 06:33:03 -0500 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2023-08-22 09:01:47 +0200 |
commit | 03bc06c7b0bd8d86b9f17f459acaeb1283ba2700 (patch) | |
tree | 4fac68b0dbfa895f1851e00653a8e1a2ca7f217f /net/lapb/lapb_in.c | |
parent | f628d799972799023d32c2542bb2639eb8c4f84e (diff) |
ceph: add new mount option to enable sparse reads
Add a new mount option that has the client issue sparse reads instead of
normal ones. The callers now preallocate an sparse extent buffer that
the libceph receive code can populate and hand back after the operation
completes.
After a successful sparse read, we can't use the req->r_result value to
determine the amount of data "read", so instead we set the received
length to be from the end of the last extent in the buffer. Any
interstitial holes will have been filled by the receive code.
[ xiubli: fix a double free on req reported by Ilya ]
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Xiubo Li <[email protected]>
Reviewed-and-tested-by: Luís Henriques <[email protected]>
Reviewed-by: Milind Changire <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions