[RESEND v2 PATCH 2/2] aio, mem-hotplug: Add memory barrier to aio ring page migration.

2014-03-10 Thread Tang Chen
When doing aio ring page migration, we migrated the page, and update ctx->ring_pages[]. Like the following: aio_migratepage() |-> migrate_page_copy(new, old) | .. /* Need barrier here */ |-> ctx->ring_pages[idx] = new Actually, we need a memory barrier between

[V2 PATCH 2/2] aio, mem-hotplug: Add memory barrier to aio ring page migration.

2014-03-09 Thread Tang Chen
When doing aio ring page migration, we migrated the page, and update ctx->ring_pages[]. Like the following: aio_migratepage() |-> migrate_page_copy(new, old) | .. /* Need barrier here */ |-> ctx->ring_pages[idx] = new Actually, we need a memory barrier betwee

[Update v2 PATCH 2/2] aio, mem-hotplug: Add memory barrier to aio ring page migration.

2014-03-04 Thread Yasuaki Ishimatsu
When doing aio ring page migration, we migrated the page, and update ctx->ring_pages[]. Like the following: aio_migratepage() |-> migrate_page_copy(new, old) | .. /* Need barrier here */ |-> ctx->ring_pages[idx] = new Actually, we need a memory barrier between