summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-19 08:49:46 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-19 08:49:46 -0700
commita90c6ac2b5651b1f907de512c2fa648c9fa6bb6e (patch)
treebf9d9d2a1aae7c2702a81b45e930b2aa5963778f /fs
parent74cbd96bc2e00f5daa805e2ebf49e998f7045062 (diff)
parent7c40b22f6f84c98a1d36e6d0a4346e58f05e45d8 (diff)
downloadlinux-stable-a90c6ac2b5651b1f907de512c2fa648c9fa6bb6e.tar.gz
linux-stable-a90c6ac2b5651b1f907de512c2fa648c9fa6bb6e.tar.bz2
linux-stable-a90c6ac2b5651b1f907de512c2fa648c9fa6bb6e.zip
Merge tag 'ceph-for-4.13-rc2' of git://github.com/ceph/ceph-client
Pull ceph fixes from Ilya Dryomov: "A number of small fixes for -rc1 Luminous changes plus a readdir race fix, marked for stable" * tag 'ceph-for-4.13-rc2' of git://github.com/ceph/ceph-client: libceph: potential NULL dereference in ceph_msg_data_create() ceph: fix race in concurrent readdir libceph: don't call encode_request_finish() on MOSDBackoff messages libceph: use alloc_pg_mapping() in __decode_pg_upmap_items() libceph: set -EINVAL in one place in crush_decode() libceph: NULL deref on osdmap_apply_incremental() error path libceph: fix old style declaration warnings
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/dir.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index e071d23f6148..ef7240ace576 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -271,6 +271,11 @@ out:
if (ret < 0)
err = ret;
dput(last);
+ /* last_name no longer match cache index */
+ if (fi->readdir_cache_idx >= 0) {
+ fi->readdir_cache_idx = -1;
+ fi->dir_release_count = 0;
+ }
}
return err;
}