Dan Williams eb0645a8b1 async_tx: fix kmap_atomic usage in async_memcpy
Andrew Morton:
	[async_memcpy] is very wrong if both ASYNC_TX_KMAP_DST and
	ASYNC_TX_KMAP_SRC can ever be set.  We'll end up using the same kmap
	slot for both src add dest and we get either corrupted data or a BUG.

Evgeniy Polyakov:
	Btw, shouldn't it always be kmap_atomic() even if flag is not set.
	That pages are usual one returned by alloc_page().

So fix the usage of kmap_atomic and kill the ASYNC_TX_KMAP_DST and
ASYNC_TX_KMAP_SRC flags.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-20 08:44:19 -07:00
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2007-07-12 15:01:08 -07:00
2005-04-16 15:20:36 -07:00
2007-07-12 15:01:08 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:46 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:47 -07:00
2007-05-09 12:30:48 -07:00
2007-07-12 15:01:23 -07:00
2007-07-12 15:01:08 -07:00
2007-07-12 15:01:08 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:47 -07:00
2007-07-12 15:01:08 -07:00
2007-07-17 10:23:15 -07:00
2007-07-12 15:01:08 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-17 11:49:58 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00