From fbffb9fe77eb414fd12f35fe1347075156b71fab Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 21 Sep 2005 23:09:14 +0000 Subject: [PATCH] - drop ll_capa_stat flag in order to preven flood --- lustre/llite/llite_capa.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lustre/llite/llite_capa.c b/lustre/llite/llite_capa.c index e9296b1..e9bb75b 100644 --- a/lustre/llite/llite_capa.c +++ b/lustre/llite/llite_capa.c @@ -258,11 +258,13 @@ int ll_set_capa(struct inode *inode, struct lookup_intent *it, LASSERT_REPSWABBED(req, 1); /* and swabbed down */ if (!(body->valid & OBD_MD_CAPA)) { - if (atomic_read(&ll_capa_stat)) + if (atomic_read(&ll_capa_stat)) { DEBUG_REQ(D_ERROR, req, "no capa for (uid %u, op %d, "DLID4"\n", - (unsigned)current->uid, it->it_flags, - OLID4(&lli->lli_id)); + (unsigned)current->uid, it->it_flags, + OLID4(&lli->lli_id)); + atomic_set(&ll_capa_stat, 0); + } return 0; } -- 1.8.3.1