Rechercher une page de manuel
__lock_page
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
__lock_page - get a lock on the page, assuming we need to sleep to get itSYNOPSIS
- void __lock_page(struct page * page);
ARGUMENTS
page
- the page to lock
DESCRIPTION
Ugly. Running sync_page in state TASK_UNINTERRUPTIBLE is scary. If some random driver's requestfn sets TASK_RUNNING, we could busywait. However chances are that on the second loop, the block layer's plug list is empty, so sync_page will then return in state TASK_UNINTERRUPTIBLE.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre