|
|
12a457 |
From 62cb8d22b7ed01882182ab40be88c68d6b7704b1 Mon Sep 17 00:00:00 2001
|
|
|
12a457 |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
12a457 |
Date: Tue, 26 Apr 2016 14:52:29 +0530
|
|
|
12a457 |
Subject: [PATCH 098/104] gfapi: set need_lookup flag on response list
|
|
|
12a457 |
|
|
|
12a457 |
back port of : http://review.gluster.org/#/c/14098/
|
|
|
12a457 |
|
|
|
12a457 |
We set need_lookup flag for entries returned by readdirp
|
|
|
12a457 |
to force lookup. Currently we are setting on the previously
|
|
|
12a457 |
stored list, rather than response list returned by readdirp.
|
|
|
12a457 |
|
|
|
12a457 |
This patch will iterate over current list returned by readdirp
|
|
|
12a457 |
and will set need_lookup flag.
|
|
|
12a457 |
|
|
|
12a457 |
Back port of>
|
|
|
12a457 |
>Change-Id: Ibd6fcbc188f4c87f40ece7a9dcda27645401c240
|
|
|
12a457 |
>BUG: 1330476
|
|
|
12a457 |
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
12a457 |
>Reviewed-on: http://review.gluster.org/14073
|
|
|
12a457 |
>NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
12a457 |
>Reviewed-by: Niels de Vos <ndevos@redhat.com>
|
|
|
12a457 |
>Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
12a457 |
>Smoke: Gluster Build System <jenkins@build.gluster.com>
|
|
|
12a457 |
>CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
|
|
|
12a457 |
|
|
|
12a457 |
>(cherry picked from commit 537557da59876536d33cd25a8ef485e7b5fe8849)
|
|
|
12a457 |
|
|
|
12a457 |
Change-Id: I9efe9de15afdd4099b9db870d6c815361789faff
|
|
|
12a457 |
BUG: 1322247
|
|
|
12a457 |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
12a457 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/73264
|
|
|
12a457 |
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
12a457 |
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
12a457 |
---
|
|
|
12a457 |
api/src/glfs-fops.c | 2 +-
|
|
|
12a457 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
12a457 |
|
|
|
12a457 |
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
|
|
|
12a457 |
index fdffc7b..98be987 100644
|
|
|
12a457 |
--- a/api/src/glfs-fops.c
|
|
|
12a457 |
+++ b/api/src/glfs-fops.c
|
|
|
12a457 |
@@ -2443,7 +2443,7 @@ glfd_entry_refresh (struct glfs_fd *glfd, int plus)
|
|
|
12a457 |
* to a race where a fop comes after inode link
|
|
|
12a457 |
* but before setting need_lookup flag.
|
|
|
12a457 |
*/
|
|
|
12a457 |
- list_for_each_entry (entry, &glfd->entries, list) {
|
|
|
12a457 |
+ list_for_each_entry (entry, &entries.list, list) {
|
|
|
12a457 |
if (entry->inode)
|
|
|
12a457 |
inode_set_need_lookup (entry->inode, THIS);
|
|
|
12a457 |
}
|
|
|
12a457 |
--
|
|
|
12a457 |
1.7.1
|
|
|
12a457 |
|