* [Cluster-devel] [PATCH] DLM: Fix static buffer alignment
@ 2008-01-15 4:51 Fabio M. Di Nitto
2008-01-15 13:33 ` [Cluster-devel] " Steven Whitehouse
0 siblings, 1 reply; 5+ messages in thread
From: Fabio M. Di Nitto @ 2008-01-15 4:51 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi Steven,
gcc does not guarantee that a static buffer is 64bit aligned. This change
allows sparc64 to mount and use gfs2.
Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
index f8c69dd..da653b5 100644
--- a/fs/dlm/midcomms.c
+++ b/fs/dlm/midcomms.c
@@ -58,7 +58,7 @@ static void copy_from_cb(void *dst, const void *base, unsigned offset,
int dlm_process_incoming_buffer(int nodeid, const void *base,
unsigned offset, unsigned len, unsigned limit)
{
- unsigned char __tmp[DLM_INBUF_LEN];
+ unsigned char __tmp[DLM_INBUF_LEN] __attribute__((aligned(64)));
struct dlm_header *msg = (struct dlm_header *) __tmp;
int ret = 0;
int err = 0;
--
I'm going to make him an offer he can't refuse.
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Cluster-devel] Re: [PATCH] DLM: Fix static buffer alignment
2008-01-15 4:51 [Cluster-devel] [PATCH] DLM: Fix static buffer alignment Fabio M. Di Nitto
@ 2008-01-15 13:33 ` Steven Whitehouse
2008-01-15 18:50 ` Fabio M. Di Nitto
0 siblings, 1 reply; 5+ messages in thread
From: Steven Whitehouse @ 2008-01-15 13:33 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi,
There is something not quite right about this patch... it doesn't seem
to apply and I suspect whitespace, but I can't see what the problem is
at the moment,
Steve.
On Tue, 2008-01-15 at 05:51 +0100, Fabio M. Di Nitto wrote:
> Hi Steven,
>
> gcc does not guarantee that a static buffer is 64bit aligned. This change
> allows sparc64 to mount and use gfs2.
>
> Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
>
> diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
> index f8c69dd..da653b5 100644
> --- a/fs/dlm/midcomms.c
> +++ b/fs/dlm/midcomms.c
> @@ -58,7 +58,7 @@ static void copy_from_cb(void *dst, const void *base, unsigned offset,
> int dlm_process_incoming_buffer(int nodeid, const void *base,
> unsigned offset, unsigned len, unsigned limit)
> {
> - unsigned char __tmp[DLM_INBUF_LEN];
> + unsigned char __tmp[DLM_INBUF_LEN] __attribute__((aligned(64)));
> struct dlm_header *msg = (struct dlm_header *) __tmp;
> int ret = 0;
> int err = 0;
>
>
> --
> I'm going to make him an offer he can't refuse.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] Re: [PATCH] DLM: Fix static buffer alignment
2008-01-15 13:33 ` [Cluster-devel] " Steven Whitehouse
@ 2008-01-15 18:50 ` Fabio M. Di Nitto
2008-01-15 19:28 ` Fabio M. Di Nitto
0 siblings, 1 reply; 5+ messages in thread
From: Fabio M. Di Nitto @ 2008-01-15 18:50 UTC (permalink / raw)
To: cluster-devel.redhat.com
Ok this is weird.. not the first time that this is happening between us..
tho i did change MUA that has a slightly more sane way of adding stuff...
anyway I will prepare a git tree you can pull from..
at this point it will just save us pain for the future.
Thanks
Fabio
On Tue, 15 Jan 2008, Steven Whitehouse wrote:
> Hi,
>
> There is something not quite right about this patch... it doesn't seem
> to apply and I suspect whitespace, but I can't see what the problem is
> at the moment,
>
> Steve.
>
> On Tue, 2008-01-15 at 05:51 +0100, Fabio M. Di Nitto wrote:
>> Hi Steven,
>>
>> gcc does not guarantee that a static buffer is 64bit aligned. This change
>> allows sparc64 to mount and use gfs2.
>>
>> Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
>>
>> diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
>> index f8c69dd..da653b5 100644
>> --- a/fs/dlm/midcomms.c
>> +++ b/fs/dlm/midcomms.c
>> @@ -58,7 +58,7 @@ static void copy_from_cb(void *dst, const void *base, unsigned offset,
>> int dlm_process_incoming_buffer(int nodeid, const void *base,
>> unsigned offset, unsigned len, unsigned limit)
>> {
>> - unsigned char __tmp[DLM_INBUF_LEN];
>> + unsigned char __tmp[DLM_INBUF_LEN] __attribute__((aligned(64)));
>> struct dlm_header *msg = (struct dlm_header *) __tmp;
>> int ret = 0;
>> int err = 0;
>>
>>
>> --
>> I'm going to make him an offer he can't refuse.
>
--
I'm going to make him an offer he can't refuse.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] Re: [PATCH] DLM: Fix static buffer alignment
2008-01-15 18:50 ` Fabio M. Di Nitto
@ 2008-01-15 19:28 ` Fabio M. Di Nitto
2008-01-15 22:45 ` David Teigland
0 siblings, 1 reply; 5+ messages in thread
From: Fabio M. Di Nitto @ 2008-01-15 19:28 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi Steven,
you can try to pull from here:
git pull git://git.fugedabout.it/people/fabbione/gfs2-2.6-nmw.git
[DLM] Fix endian issue when transmitting or receiving LOCK_REPLY
[DLM] align static buffer
gitweb: http://git.fugedabout.it/?p=people/fabbione/gfs2-2.6-nmw.git;a=summary
Let me know if there are any problems...
Cheers
Fabio
On Tue, 15 Jan 2008, Fabio M. Di Nitto wrote:
>
> Ok this is weird.. not the first time that this is happening between us.. tho
> i did change MUA that has a slightly more sane way of adding stuff... anyway
> I will prepare a git tree you can pull from..
>
> at this point it will just save us pain for the future.
>
> Thanks
> Fabio
>
> On Tue, 15 Jan 2008, Steven Whitehouse wrote:
>
>> Hi,
>>
>> There is something not quite right about this patch... it doesn't seem
>> to apply and I suspect whitespace, but I can't see what the problem is
>> at the moment,
>>
>> Steve.
>>
>> On Tue, 2008-01-15 at 05:51 +0100, Fabio M. Di Nitto wrote:
>>> Hi Steven,
>>>
>>> gcc does not guarantee that a static buffer is 64bit aligned. This change
>>> allows sparc64 to mount and use gfs2.
>>>
>>> Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
>>>
>>> diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
>>> index f8c69dd..da653b5 100644
>>> --- a/fs/dlm/midcomms.c
>>> +++ b/fs/dlm/midcomms.c
>>> @@ -58,7 +58,7 @@ static void copy_from_cb(void *dst, const void *base,
>>> unsigned offset,
>>> int dlm_process_incoming_buffer(int nodeid, const void *base,
>>> unsigned offset, unsigned len, unsigned
>>> limit)
>>> {
>>> - unsigned char __tmp[DLM_INBUF_LEN];
>>> + unsigned char __tmp[DLM_INBUF_LEN] __attribute__((aligned(64)));
>>> struct dlm_header *msg = (struct dlm_header *) __tmp;
>>> int ret = 0;
>>> int err = 0;
>>>
>>>
>>> --
>>> I'm going to make him an offer he can't refuse.
>>
>
>
> --
> I'm going to make him an offer he can't refuse.
>
--
I'm going to make him an offer he can't refuse.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Cluster-devel] Re: [PATCH] DLM: Fix static buffer alignment
2008-01-15 19:28 ` Fabio M. Di Nitto
@ 2008-01-15 22:45 ` David Teigland
0 siblings, 0 replies; 5+ messages in thread
From: David Teigland @ 2008-01-15 22:45 UTC (permalink / raw)
To: cluster-devel.redhat.com
> Hi Steven,
>
> you can try to pull from here:
>
> git pull git://git.fugedabout.it/people/fabbione/gfs2-2.6-nmw.git
>
> [DLM] Fix endian issue when transmitting or receiving LOCK_REPLY
> [DLM] align static buffer
>
> gitweb:
> http://git.fugedabout.it/?p=people/fabbione/gfs2-2.6-nmw.git;a=summary
>
> Let me know if there are any problems...
I'm collecting all dlm patches for 2.6.25 here:
http://people.redhat.com/teigland/dlm-patches-testing/
It includes the dlm patches already in the gfs2nmw git tree, plus the new
patches you've sent the past couple days. I'm working on getting them
into my own public git tree. If that doesn't happen soon enough for
2.6.25 I'll send the lot to Steve.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-15 22:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 4:51 [Cluster-devel] [PATCH] DLM: Fix static buffer alignment Fabio M. Di Nitto
2008-01-15 13:33 ` [Cluster-devel] " Steven Whitehouse
2008-01-15 18:50 ` Fabio M. Di Nitto
2008-01-15 19:28 ` Fabio M. Di Nitto
2008-01-15 22:45 ` David Teigland
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.