Re: [system crash] [swaps] make the filesystem inaccessible and all applications that try to access it hangs

From: Hugh Dickins
Date: Tue Jun 29 2004 - 01:25:29 EST


On Mon, 28 Jun 2004, jlm_devel wrote:
> I work on swapd and I found a way to "crash" a filesystem entry with
> operations on swaps :
> kernel version 2.6.7
>
> step to reproduce :
> make a swap file into one directory
> activate it
> rm it
>
> now all application trying to access the containing directory will
> hangs..... including the swapd I write.....

You'll find that fixed, I believe, in latest 2.6.7-bk or 2.6.7-mm3:
we used to hold i_sem while the swapfile was in use, but are now
protecting it differently (S_SWAPFILE): to end reports like yours!

Thanks,
Hugh

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