From: Xiubo Li <xiubli@xxxxxxxxxx> Signed-off-by: Xiubo Li <xiubli@xxxxxxxxxx> --- fs/ceph/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 0cf6afe283e9..6184cf123fa2 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -521,6 +521,7 @@ static int ceph_readdir(struct file *file, struct dir_context *ctx) ceph_present_ino(inode->i_sb, le64_to_cpu(rde->inode.in->ino)), le32_to_cpu(rde->inode.in->mode) >> 12)) { dout("filldir stopping us...\n"); + ceph_mdsc_put_request(dfi->last_readdir); return 0; } ctx->pos++; -- 2.31.1