md/raid6: move the spare page to a percpu allocation
authorDan Williams <dan.j.williams@intel.com>
Tue, 14 Jul 2009 18:48:22 +0000 (11:48 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 30 Aug 2009 02:09:26 +0000 (19:09 -0700)
commit36d1c6476be51101778882897b315bd928c8c7b5
tree55b4ecd93ce9c22722c9c9da0dd28a2d2f7c082d
parenta11034b4282515fd7d9f6fdc0a1380781da461c3
md/raid6: move the spare page to a percpu allocation

In preparation for asynchronous handling of raid6 operations move the
spare page to a percpu allocation to allow multiple simultaneous
synchronous raid6 recovery operations.

Make this allocation cpu hotplug aware to maximize allocation
efficiency.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/raid5.c
drivers/md/raid5.h