diff options
author | Jeff Mahoney <jeffm@suse.com> | 2014-04-02 14:40:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-06 07:51:44 -0700 |
commit | 15e5f90c0f1d3f597981ffe18112aae9421f57c0 (patch) | |
tree | 7b23c1679b69ac6d3b79da9aec33ecfcfe828c48 /tools/testing | |
parent | 86455b800f7544e239b2fa5a16962ea780a1e9d8 (diff) |
reiserfs: fix race in readdir
commit 01d8885785a60ae8f4c37b0ed75bdc96d0fc6a44 upstream.
jdm-20004 reiserfs_delete_xattrs: Couldn't delete all xattrs (-2)
The -ENOENT is due to readdir calling dir_emit on the same entry twice.
If the dir_emit callback sleeps and the tree is changed underneath us,
we won't be able to trust deh_offset(deh) anymore. We need to save
next_pos before we might sleep so we can find the next entry.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions