lkml.org 
[lkml]   [1999]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectoops if free a locked page
I have a problem with pre-2.3.8-2. It issues an Oops if I attempt to free
a locked page. I think I am allowed to free a locked page without first
unlock it, because if there's a waiter waiting for the page, the waiter
will have just increased the reference count of the page before go to
sleep on the page.

I want to run try_to_free_buffers() with the page locked and so I want to
be allowed to run:

/* And free the page */
page->buffers = NULL;
if (__free_page(page)) {
buffermem -= PAGE_SIZE;
return 1;
}

with the page locked. If try_to_free_buffers() will return 1, then I'll
avoid the unlock, otherwise I'll do the unlock but after a lot of time
(I'll take the page locked just ready for the shrink_mmap-inode path).
Right now I removed the BUG() in free-page.

Comments?

Andrea Arcangeli


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.047 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site