NeilBrown 5dd33c9a4c md/async: don't pass a memory pointer as a page pointer.
md/raid6 passes a list of 'struct page *' to the async_tx routines,
which then either DMA map them for offload, or take the page_address
for CPU based calculations.

For RAID6 we sometime leave 'blanks' in the list of pages.
For CPU based calcs, we want to treat theses as a page of zeros.
For offloaded calculations, we simply don't pass a page to the
hardware.

Currently the 'blanks' are encoded as a pointer to
raid6_empty_zero_page.  This is a 4096 byte memory region, not a
'struct page'.  This is mostly handled correctly but is rather ugly.

So change the code to pass and expect a NULL pointer for the blanks.
When taking page_address of a page, we need to check for a NULL and
in that case use raid6_empty_zero_page.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-10-16 16:40:25 +11:00
..
2009-09-24 09:34:38 +09:30
2009-09-22 07:17:27 -07:00
2009-09-23 07:39:41 -07:00
2009-09-23 07:39:29 -07:00
2009-09-24 07:21:05 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 07:39:29 -07:00
2009-09-15 15:08:40 -04:00
2009-09-23 07:39:44 -07:00
2009-09-16 16:21:00 -04:00
2009-09-23 22:26:32 +09:30
2009-09-18 08:39:37 +00:00
2009-09-23 10:07:49 -07:00