On 3/1/22 8:49 PM, Jeff Layton wrote:
On Tue, 2022-03-01 at 13:59 +0800, xiubli@xxxxxxxxxx wrote:
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++;
Good catch!
It looks like there is another missing put around line 482 after the
note_last_dentry call. Could you fix that one up in the same patch?
Sure. Will fix it.
- Xiubo
Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>