From: Akinobu Mita <akinobu.mita@gmail.com>
To: Neil Brown <neilb@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
Trond Myklebust <Trond.Myklebust@netapp.com>,
linux-kernel@vger.kernel.org,
Andy Adamson <andros@citi.umich.edu>,
"J. Bruce Fields" <bfields@citi.umich.edu>,
Olaf Kirch <okir@monad.swb.de>
Subject: [PATCH -mm] sunrpc/auth_gss: auth_domain refcount fix
Date: Mon, 30 Oct 2006 23:57:01 +0900 [thread overview]
Message-ID: <20061030145701.GB7258@localhost> (raw)
In-Reply-To: <17733.37127.64785.591939@cse.unsw.edu.au>
On Mon, Oct 30, 2006 at 04:43:35PM +1100, Neil Brown wrote:
> 1/ We were adding to the refcount when inserting in the hash table,
> but only removing from the hashtable when the refcount reached zero.
> Obviously it never would. So don't count the implied reference of
> being in the hash table.
...
> diff .prev/net/sunrpc/svcauth.c ./net/sunrpc/svcauth.c
> --- .prev/net/sunrpc/svcauth.c 2006-10-30 15:41:10.000000000 +1100
> +++ ./net/sunrpc/svcauth.c 2006-10-30 16:12:00.000000000 +1100
> @@ -148,10 +148,8 @@ auth_domain_lookup(char *name, struct au
> return hp;
> }
> }
> - if (new) {
> + if (new)
> hlist_add_head(&new->hash, head);
> - kref_get(&new->ref);
> - }
> spin_unlock(&auth_domain_lock);
> return new;
> }
This refcount change affects [PATCH 2/2].
(http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.19-rc3/2.6.19-rc3-mm1/broken-out/auth_gss-unregister-gss_domain-when-unloading-module.patch)
Subject: sunrpc/auth_gss: auth_domain refcount fix
auth_domain_lookup() has been changed not to increase refcount when
inserting in the hash table.
Cc: Neil Brown <neilb@suse.de>
Cc: Andy Adamson <andros@citi.umich.edu>
Cc: J. Bruce Fields <bfields@citi.umich.edu>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Index: 2.6-mm/net/sunrpc/auth_gss/svcauth_gss.c
===================================================================
--- 2.6-mm.orig/net/sunrpc/auth_gss/svcauth_gss.c
+++ 2.6-mm/net/sunrpc/auth_gss/svcauth_gss.c
@@ -770,7 +770,6 @@ svcauth_gss_register_pseudoflavor(u32 ps
kfree(new->h.name);
goto out_free_dom;
}
- auth_domain_put(&new->h);
return 0;
out_free_dom:
next prev parent reply other threads:[~2006-10-30 14:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-28 18:55 [PATCH] auth_gss: unregister gss_domain when unloading module Akinobu Mita
2006-10-29 13:35 ` Akinobu Mita
2006-10-29 13:37 ` [PATCH 1/2] sunrpc: add missing spin_unlock Akinobu Mita
2006-10-29 13:38 ` [PATCH 2/2] auth_gss: unregister gss_domain when unloading module Akinobu Mita
2006-10-29 20:15 ` Trond Myklebust
2006-10-30 14:54 ` Akinobu Mita
2006-10-30 15:17 ` Trond Myklebust
2006-10-31 3:15 ` Akinobu Mita
2006-10-31 4:13 ` Neil Brown
2006-10-29 20:21 ` [PATCH 1/2] sunrpc: add missing spin_unlock Trond Myklebust
2006-10-30 5:43 ` Neil Brown
2006-10-30 14:57 ` Akinobu Mita [this message]
2006-11-05 16:35 ` Peter Zijlstra
2006-11-05 19:45 ` Andrew Morton
2006-11-05 19:58 ` Peter Zijlstra
2006-11-05 22:04 ` Elimar Riesebieter
2006-10-29 19:46 ` [PATCH] auth_gss: unregister gss_domain when unloading module Trond Myklebust
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061030145701.GB7258@localhost \
--to=akinobu.mita@gmail.com \
--cc=Trond.Myklebust@netapp.com \
--cc=akpm@osdl.org \
--cc=andros@citi.umich.edu \
--cc=bfields@citi.umich.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
--cc=okir@monad.swb.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.