x86, PAT: Change order of cpa and free in set_memory_wb
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Thu, 9 Apr 2009 21:26:48 +0000 (14:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 11:55:46 +0000 (13:55 +0200)
commita5593e0b329a14dea41ea173380dbf1533de2bd2
treeaa488fcab5e4327192a052f576b15db839124408
parent43a432b1559798d33970261f710030f787770231
x86, PAT: Change order of cpa and free in set_memory_wb

To be free of aliasing due to races, set_memory_* interfaces should
follow ordering of reserving, changing memtype to UC/WC, changing
memtype back to WB followed by free.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <20090409212708.512280000@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c