diff --git a/include/linux/page_ref.h b/include/linux/page_ref.h index 610e1327191849bf6ef5564ec1d2ddef690a0123..1fd71733aa68efb95b390eb708616213271a0fd9 100644 --- a/include/linux/page_ref.h +++ b/include/linux/page_ref.h @@ -174,6 +174,7 @@ static inline void page_ref_unfreeze(struct page *page, int count) VM_BUG_ON_PAGE(page_count(page) != 0, page); VM_BUG_ON(count == 0); + smp_mb(); atomic_set(&page->_refcount, count); if (page_ref_tracepoint_active(__tracepoint_page_ref_unfreeze)) __page_ref_unfreeze(page, count);