summaryrefslogtreecommitdiffstats
path: root/net/atm/svc.c
diff options
context:
space:
mode:
authorSage Weil2010-11-09 21:40:00 +0100
committerSage Weil2010-11-09 21:43:17 +0100
commitc5c6b19d4b8f5431fca05f28ae9e141045022149 (patch)
tree0961d9aeee49f481134089ac5b93b7118cf3a34b /net/atm/svc.c
parentceph: make page alignment explicit in osd interface (diff)
downloadkernel-qcow2-linux-c5c6b19d4b8f5431fca05f28ae9e141045022149.tar.gz
kernel-qcow2-linux-c5c6b19d4b8f5431fca05f28ae9e141045022149.tar.xz
kernel-qcow2-linux-c5c6b19d4b8f5431fca05f28ae9e141045022149.zip
ceph: explicitly specify page alignment in network messages
The alignment used for reading data into or out of pages used to be taken from the data_off field in the message header. This only worked as long as the page alignment matched the object offset, breaking direct io to non-page aligned offsets. Instead, explicitly specify the page alignment next to the page vector in the ceph_msg struct, and use that instead of the message header (which probably shouldn't be trusted). The alloc_msg callback is responsible for filling in this field properly when it sets up the page vector. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/atm/svc.c')
0 files changed, 0 insertions, 0 deletions