Re: Helding the Kernel lock while doing IO???

From: Stephen C. Tweedie (sct@redhat.com)
Date: Sat May 06 2000 - 07:48:09 EDT

  • Next message: Igmar Palsenberg: "Re: do_execve()."

    Hi,

    On Sat, May 06, 2000 at 03:30:47AM +0200, Juan J. Quintela wrote:
    >
    > read_swap_cache is called synchronously, then we can have to wait
    > until we read the page to liberate the lock kernel. It is intended?
    > I am losing some detail?

    Holding the big kernel lock while we sleep is quite legal. The
    scheduler drops the lock while we sleep and reacquires it when we
    are rescheduled. The lock_kernel() lock is not at all like other
    spinlocks.

    --Stephen

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat May 06 2000 - 07:53:50 EDT