make the filesystem inaccessible and all applications that try to access it hangs
hello,
please cc me since I'm not registered
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.....
best regards
JLM
Quoted 11 lines · jlm_devel
I work on swapd and I found a way to "crash" a filesystem entry with operations on swaps :
kernel version 2.6.7step to reproduce :
make a swap file into one directory
activate it
rm itnow 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