login
Header Space

 
 

__lock_page(9)

July 19, 2007 - 1:23am
Submitted by Jeremy on July 19, 2007 - 1:23am.

INDEX

    NAME, SYNOPSIS, ARGUMENTS, DESCRIPTION, COPYRIGHT

    "__LOCK_PAGE" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Memory Management in Linux"

    NAME

    __lock_page - get a lock on the page, assuming we need to sleep to get it

    SYNOPSIS

    "void fastcall __lock_page(struct page * " "page" ");"

    ARGUMENTS

    page
    the page to lock

    DESCRIPTION

    Ugly. Running sync_pagefR
    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_pagefR
    will then return in state TASK_UNINTERRUPTIBLE.

    COPYRIGHT

speck-geostationary