table of contents
other versions
- stretch 4.9.168-1
UNLOCK_PAGE(9) | Memory Management in Linux | UNLOCK_PAGE(9) |
NAME¶
unlock_page - unlock a locked pageSYNOPSIS¶
void unlock_page(struct page * page);
ARGUMENTS¶
pagethe page
DESCRIPTION¶
Unlocks the page and wakes up sleepers in ___wait_on_page_locked. Also wakes sleepers in wait_on_page_writeback because the wakeup mechanism between PageLocked pages and PageWriteback pages is shared. But that's OK - sleepers in wait_on_page_writeback just go back to sleep.The mb is necessary to enforce ordering between the clear_bit and the read of the waitqueue (to avoid SMP races with a parallel wait_on_page_locked).
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |