Re: end_swap_bio_write error handling

From: KAMEZAWA Hiroyuki
Date: Wed Aug 30 2006 - 21:53:16 EST


On Tue, 29 Aug 2006 21:48:34 +0100
Richard Purdie <rpurdie@xxxxxxxxx> wrote:
> end_swap_bio_write() simply does:
>
> if (!uptodate)
> SetPageError(page);
>
> I know the uptodate flag is being cleared in the error cases. I'm having
> trouble working out which code the setting of an error flag for a swap
> page should trigger (any pointers appreciated!). I noticed its also used
> for the read case which is unrecoverable.
>
> Should this code be marking the page as dirty and the section of the
> swap device as bad instead, does it already do that or is that not
> possible for some reason?
>
> Any comments and/or pointers to documentation on this would be
> appreciated.
>
Now, swap-write-failure-fixup.patch is merged in -mm kernel.
==
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc4/2.6.18-rc4-mm3/broken-out/mm-swap-write-failure-fixup.patch
==
error message comes and a page turns to be dirty again.

Thanks,
- Kame

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