[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error handling
- To: linux-mm@kvack.org
- Subject: Error handling
- From: Anil Kumar Nanduri <anil@india.hp.com>
- Date: Thu, 05 Dec 2002 18:50:20 +0530
- Fake-Sender: owner-linux-mm@kvack.org
- Organization: HPISO
- Original-Recipient: rfc822;linux-mm-archive@humbolt.geo.uu.nl
- Sender: Rik van Riel <riel@nl.linux.org>
Hi All,
While I am browsing the page_launder code, I found an interesting scenario
which is not considered in 2.4-7 kernel, I do not know about other kernels(2.5).
The following is the scenario....
As page launder initiates disk transfers using submit_bh as part of cleaning
inactive dirty pages, if that disk I/O fails, drivers generally call "buffer_IO_error"
which will ultimately set the page_error flag for that page.
As the page launder in its next pass or in the same pass(if the disk i/o is fast enough)
tries to move this page into the clean list without checking page-error flag. This is fine
with file's data, but not with swap pages.
Incase of swap pages the ideal thing would be not to move that page to inactive list
if the disk I/O for that block fails which is not happening currently.
Is this a BUG?
Regards,
-anil.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/