diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2014-09-19 14:09:51 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2014-10-28 14:42:35 +0100 |
commit | 88ffc75a690481a20bf8dd2b864f3ba91a698532 (patch) | |
tree | d96581eb47712c03b0b015eabe250ad2a781e28c /net/packet | |
parent | 5fc897d5626f59d7fcda45d41401f0baaf558c1f (diff) |
yaffs: fix spinning when flush inodes
While in list_for_each_entry() of yaffs_flush_inodes, the fs code
can delete inodes. This leads to an endless loop which causes a
softlockup. Typically this happend in sync_supers when creating
and deleting files while under CPU load.
This fix checks whether we get twice the same inode. If this is
true, we just retry again.
This is an alternative fix to the proposed fix Jisheng Zhang:
yaffs: fix softlockup cauesed by inode deleted when scanning s_inodes list
http://www.aleph1.co.uk/lurker/message/20110831.075307.3cfeacdf.fr.html
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions