From: Andrew Morton <akpm@linux-foundation.org>
To: holt@sgi.com
Cc: linux-kernel@vger.kernel.org, holt@sgi.com, dcn@sgi.com
Subject: Re: [Patch 2/3] Prevent false sgi-xpc heartbeat failures.
Date: Tue, 7 Apr 2009 12:49:33 -0700 [thread overview]
Message-ID: <20090407124933.c2fb210f.akpm@linux-foundation.org> (raw)
In-Reply-To: <20090403160449.144474404@attica.americas.sgi.com>
On Fri, 03 Apr 2009 11:04:42 -0500
holt@sgi.com wrote:
> +void (*xpc_allow_hb) (short partid);
> +void (*xpc_disallow_hb) (short partid);
> +void (*xpc_disallow_all_hbs) (void);
> void (*xpc_heartbeat_init) (void);
> void (*xpc_heartbeat_exit) (void);
> void (*xpc_increment_heartbeat) (void);
The driver adds a huge number of globals.
As a pointless cleanup it might be nice to convert all this:
: int (*xpc_setup_partitions_sn) (void);
: void (*xpc_teardown_partitions_sn) (void);
: enum xp_retval (*xpc_get_partition_rsvd_page_pa) (void *buf, u64 *cookie,
: unsigned long *rp_pa,
: size_t *len);
: int (*xpc_setup_rsvd_page_sn) (struct xpc_rsvd_page *rp);
:
: void (*xpc_allow_hb) (short partid);
: void (*xpc_disallow_hb) (short partid);
: void (*xpc_disallow_all_hbs) (void);
: void (*xpc_heartbeat_init) (void);
: void (*xpc_heartbeat_exit) (void);
: void (*xpc_increment_heartbeat) (void);
: void (*xpc_offline_heartbeat) (void);
: void (*xpc_online_heartbeat) (void);
: enum xp_retval (*xpc_get_remote_heartbeat) (struct xpc_partition *part);
:
: enum xp_retval (*xpc_make_first_contact) (struct xpc_partition *part);
: void (*xpc_notify_senders_of_disconnect) (struct xpc_channel *ch);
: u64 (*xpc_get_chctl_all_flags) (struct xpc_partition *part);
: enum xp_retval (*xpc_setup_msg_structures) (struct xpc_channel *ch);
: void (*xpc_teardown_msg_structures) (struct xpc_channel *ch);
: void (*xpc_process_msg_chctl_flags) (struct xpc_partition *part, int ch_number);
: int (*xpc_n_of_deliverable_payloads) (struct xpc_channel *ch);
: void *(*xpc_get_deliverable_payload) (struct xpc_channel *ch);
:
: void (*xpc_request_partition_activation) (struct xpc_rsvd_page *remote_rp,
: unsigned long remote_rp_pa,
: int nasid);
: void (*xpc_request_partition_reactivation) (struct xpc_partition *part);
: void (*xpc_request_partition_deactivation) (struct xpc_partition *part);
: void (*xpc_cancel_partition_deactivation_request) (struct xpc_partition *part);
:
: void (*xpc_process_activate_IRQ_rcvd) (void);
: enum xp_retval (*xpc_setup_ch_structures_sn) (struct xpc_partition *part);
: void (*xpc_teardown_ch_structures_sn) (struct xpc_partition *part);
:
: void (*xpc_indicate_partition_engaged) (struct xpc_partition *part);
: int (*xpc_partition_engaged) (short partid);
: int (*xpc_any_partition_engaged) (void);
: void (*xpc_indicate_partition_disengaged) (struct xpc_partition *part);
: void (*xpc_assume_partition_disengaged) (short partid);
:
: void (*xpc_send_chctl_closerequest) (struct xpc_channel *ch,
: unsigned long *irq_flags);
: void (*xpc_send_chctl_closereply) (struct xpc_channel *ch,
: unsigned long *irq_flags);
: void (*xpc_send_chctl_openrequest) (struct xpc_channel *ch,
: unsigned long *irq_flags);
: void (*xpc_send_chctl_openreply) (struct xpc_channel *ch,
: unsigned long *irq_flags);
:
: enum xp_retval (*xpc_save_remote_msgqueue_pa) (struct xpc_channel *ch,
: unsigned long msgqueue_pa);
:
: enum xp_retval (*xpc_send_payload) (struct xpc_channel *ch, u32 flags,
: void *payload, u16 payload_size,
: u8 notify_type, xpc_notify_func func,
: void *key);
: void (*xpc_received_payload) (struct xpc_channel *ch, void *payload);
into
struct xpc_operations {
int (*setup_partitions_sn)(void);
...
void (*xpc_received_payload)(struct xpc_channel *ch, void *payload);
} xpc_operations;
Or not ;)
next prev parent reply other threads:[~2009-04-07 19:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 16:04 [Patch 0/3] Some SGI XPC Updates holt
2009-04-03 16:04 ` [Patch 1/3] Update SGI XP/XPC/XPNET maintainer holt
2009-04-03 16:04 ` [Patch 2/3] Prevent false sgi-xpc heartbeat failures holt
2009-04-07 19:49 ` Andrew Morton [this message]
2009-04-08 1:04 ` Robin Holt
2009-04-08 1:15 ` Andrew Morton
2009-04-03 16:04 ` [Patch 3/3] Implement sgi-xpc opencomplete messaging holt
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=20090407124933.c2fb210f.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dcn@sgi.com \
--cc=holt@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox