[4189] in arla-drinkers
nnpfs/linux: replacing call to shrink_dcache_sb
daemon@ATHENA.MIT.EDU (Alexander =?ISO-8859-1?Q?Bostr=F6m)
Tue Jun 5 04:51:24 2007
From arla-drinkers-bounces@stacken.kth.se Tue Jun 05 08:51:24 2007
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 16903 invoked from network); 5 Jun 2007 08:51:24 -0000
Received: from mx1.kth.se (130.237.32.140)
by charon.mit.edu with SMTP; 5 Jun 2007 08:51:24 -0000
Received: from localhost (localhost [127.0.0.1])
by mx1.kth.se (Postfix) with ESMTP id 6D121FD2BF;
Tue, 5 Jun 2007 10:51:20 +0200 (CEST)
X-Virus-Scanned: by amavisd-new at kth.se
Received: from mx1.kth.se ([127.0.0.1])
by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id i16N-uRrSnzo; Tue, 5 Jun 2007 10:51:18 +0200 (CEST)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
by mx1.kth.se (Postfix) with ESMTP id 3344AFD2C8;
Tue, 5 Jun 2007 10:50:53 +0200 (CEST)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
by tapas.stacken.kth.se (Postfix) with ESMTP id 2DC4B53523;
Tue, 5 Jun 2007 10:50:53 +0200 (CEST)
X-Original-To: arla-drinkers@tapas.stacken.kth.se
Delivered-To: arla-drinkers@tapas.stacken.kth.se
Received: from brev.stacken.kth.se (brev.stacken.kth.se [130.237.234.84])
by tapas.stacken.kth.se (Postfix) with ESMTP id 553FF53523
for <arla-drinkers@tapas.stacken.kth.se>;
Tue, 5 Jun 2007 10:50:51 +0200 (CEST)
Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175])
by brev.stacken.kth.se (8.12.10/8.12.10) with ESMTP id l558ooMW011749
for <arla-drinkers@stacken.kth.se>;
Tue, 5 Jun 2007 10:50:51 +0200 (MET DST)
Received: from localhost (localhost [127.0.0.1])
by smtp-1.sys.kth.se (Postfix) with ESMTP id C48D6155841
for <arla-drinkers@stacken.kth.se>;
Tue, 5 Jun 2007 10:50:45 +0200 (CEST)
X-Virus-Scanned: by amavisd-new at kth.se
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-200 required=5
tests=[BAYES_00=-2.599, DKIM_POLICY_SIGNSOME=0.001, NO_RELAYS=-0.001]
Received: from smtp-1.sys.kth.se ([127.0.0.1])
by localhost (smtp-1.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 4RngXXh+a-Yl for <arla-drinkers@stacken.kth.se>;
Tue, 5 Jun 2007 10:50:44 +0200 (CEST)
Received: from endor.ite.kth.se (endor.ite.kth.se
[IPv6:2001:6b0:1:11f0:240:63ff:fec3:3f38])
by smtp-1.sys.kth.se (Postfix) with ESMTP id D3CD9155214
for <arla-drinkers@stacken.kth.se>;
Tue, 5 Jun 2007 10:50:44 +0200 (CEST)
Subject: nnpfs/linux: replacing call to shrink_dcache_sb
From: Alexander =?ISO-8859-1?Q?Bostr=F6m?= <abo@kth.se>
To: arla-drinkers@stacken.kth.se
Date: Tue, 05 Jun 2007 10:50:44 +0200
Message-Id: <1181033444.24328.70.camel@endor.ite.kth.se>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.2 (2.0.2-35.0.2.el4)
X-BeenThere: arla-drinkers@stacken.kth.se
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Arla discussions <arla-drinkers.stacken.kth.se>
List-Unsubscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=unsubscribe>
List-Archive: <http://lists.stacken.kth.se/pipermail/arla-drinkers>
List-Post: <mailto:arla-drinkers@stacken.kth.se>
List-Help: <mailto:arla-drinkers-request@stacken.kth.se?subject=help>
List-Subscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
Hi,
In RHEL5 there's a subset of the kernel ABI which RH guarantees to be
stable, so if you stick to that, you can (hopefully) compile your out-
of-tree module once and use it for all kernel revisions. Also, if you
build an RPM of your kernel module, the find-requires magic will output
deps that are satisifed by any kernel instead of just the one you
compiled against. The output of this command gives the list of symbols:
/usr/lib/rpm/redhat/symset-table
But the problem is, I can't do this for the kmod-nnpfs RPM, because
nnpfs uses three symbols outside of this ABI, namely register_security,
unregister_security and shrink_dcache_sb. The first two I can just
comment out, but the third is a problem. It's used here in nnpfs_dev.c:
static void
nnpfs_invalidate_all(struct nnpfs *nnpfsp)
{
NNPFSDEB(XDEBNODE, ("free_all_nnpfs_nodes starting\n"));
shrink_dcache_sb(nnpfs->sb);
invalidate_inodes(nnpfs->sb);
NNPFSDEB(XDEBNODE, ("free_all_nnpfs_nodes done\n"));
}
Any hope of getting around that somehow?
The kernel has a function generic_shutdown_super which is in the ABI and
looks like it's doing something similar to nnpfs_invalidate_all, but
more complex. But it probably does too much, I guess... Any other ideas?
/abo
_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers