]> git.baikalelectronics.ru Git - kernel.git/commit
lib/scatterlist: add a flags to signalize mapping direction
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Thu, 18 Jun 2009 08:19:12 +0000 (10:19 +0200)
committerPierre Ossman <pierre@ossman.eu>
Fri, 31 Jul 2009 10:28:45 +0000 (12:28 +0200)
commitd756f8e97d4717f54ad02a409363e26dcc8df333
tree09b341b7c1371448a5ae8a9cd4009a4f81f4a3dd
parentb972007baa6db0e98a92bc0d7d41ae7f6ef9d3d2
lib/scatterlist: add a flags to signalize mapping direction

sg_miter_start() is currently unaware of the direction of the copy
process (to or from the scatter list). It is important to know the
direction because the page has to be flushed in case the data written
is seen on a different mapping in user land on cache incoherent
architectures.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
include/linux/scatterlist.h
lib/scatterlist.c