From: Mark Fasheh <mark@fasheh.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] o2nm: Get rid of arguments to the timeout routines
Date: Sat Mar 22 08:36:11 2008 [thread overview]
Message-ID: <20080322153551.GG27205@ZenIV.linux.org.uk> (raw)
In-Reply-To: <47DEB30E.8060605@suse.com>
On Mon, Mar 17, 2008 at 02:06:06PM -0400, Jeff Mahoney wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> We keep seeing bug reports related to NULL pointer derefs in
> o2net_set_nn_state(). When I originally wrote up the configurable timeout
> patch, I had tried to plan for multiple clusters. This was silly.
>
> The timeout routines all use o2nm_single_cluster so there's no point
> in passing an argument at all. This patch removes the arguments and kills
> those bugs dead.
>
> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
> - ---
> fs/ocfs2/cluster/tcp.c | 45 +++++++++++++++++++--------------------------
> 1 file changed, 19 insertions(+), 26 deletions(-)
>
> - --- a/fs/ocfs2/cluster/tcp.c
> +++ b/fs/ocfs2/cluster/tcp.c
> @@ -149,23 +149,17 @@ static void o2net_idle_timer(unsigned lo
> static void o2net_sc_postpone_idle(struct o2net_sock_container *sc);
> static void o2net_sc_reset_idle_timer(struct o2net_sock_container *sc);
>
> - -/*
> - - * FIXME: These should use to_o2nm_cluster_from_node(), but we end up
> - - * losing our parent link to the cluster during shutdown. This can be
> - - * solved by adding a pre-removal callback to configfs, or passing
> - - * around the cluster with the node. -jeffm
> - - */
> - -static inline int o2net_reconnect_delay(struct o2nm_node *node)
> +static inline int o2net_reconnect_delay(void)
> {
> return o2nm_single_cluster->cl_reconnect_delay_ms;
> }
That all looks fine, but it seems that the patch is a diff of a diff. Was
that intentional? Neither git nor I have any idea how to handle something like this
:)
--Mark
--
"There's nothing like a cantankerous old man who takes a 'hey you kids, get
off my lawn!' approach to foreign policy" -Jon Stewart on the subject of
Donald Rumsfeld
next prev parent reply other threads:[~2008-03-22 8:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 11:06 [Ocfs2-devel] [PATCH] o2nm: Get rid of arguments to the timeout routines Jeff Mahoney
2008-03-17 17:00 ` [Ocfs2-devel] " Sunil Mushran
2008-03-22 8:36 ` Mark Fasheh [this message]
2008-03-22 11:31 ` [Ocfs2-devel] " Jeff Mahoney
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=20080322153551.GG27205@ZenIV.linux.org.uk \
--to=mark@fasheh.com \
--cc=ocfs2-devel@oss.oracle.com \
/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.