summaryrefslogtreecommitdiff
path: root/drivers/md/dm-round-robin.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2017-03-10 21:34:20 +0300
committerDoug Ledford <dledford@redhat.com>2017-03-24 23:50:51 +0300
commitcb8864559631754ac93d5734b165ccd0cad4728c (patch)
treeebc218fa46b4ca0feb11029cb7acaab9d0086d1a /drivers/md/dm-round-robin.c
parent86f46aba8d1ac3ed0904542158a9b9cb9c7a143c (diff)
downloadlinux-cb8864559631754ac93d5734b165ccd0cad4728c.tar.xz
infiniband: Fix alignment of mmap cookies to support VIPT caching
When vmalloc_user is used to create memory that is supposed to be mmap'd to user space, it is necessary for the mmap cookie (eg the offset) to be aligned to SHMLBA. This creates a situation where all virtual mappings of the same physical page share the same virtual cache index and guarantees VIPT coherence. Otherwise the cache is non-coherent and the kernel will not see writes by userspace when reading the shared page (or vice-versa). Reported-by: Josh Beavers <josh.beavers@gmail.com> Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/md/dm-round-robin.c')
0 files changed, 0 insertions, 0 deletions