Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
Em Mon, 6 Aug 2007 10:36:55 -0300 "Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> escreveu: | Em Mon, 6 Aug 2007 09:46:08 +0200 | Ingo Molnar <[EMAIL PROTECTED]> escreveu: | | | | | > typedef struct { | | > int size; | | > - struct semaphore sem; | | > + struct mutex lock; | | | | hm, loo

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
Em 06 Aug 2007 21:32:29 +0200 Andi Kleen <[EMAIL PROTECTED]> escreveu: | "Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> writes: | > | > I'll manage to test it then. Do you have a test-case or has any | > suggestion? | | LTP has some simple test cases for modify_ldt I've just ran them from

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Andi Kleen
"Luiz Fernando N. Capitulino" <[EMAIL PROTECTED]> writes: > > I'll manage to test it then. Do you have a test-case or has any > suggestion? LTP has some simple test cases for modify_ldt -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Ingo Molnar
* Luiz Fernando N. Capitulino <[EMAIL PROTECTED]> wrote: > But I've managed to run wine with a game called 'Align-it!', and > I have the following result: > > """ > ~/tmp/ egrep -c 'modify_ldt' wine-strace.txt > 46 > ~/tmp/ > """ > > I've checked the calls and none has failed. Not sure how

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
Em Mon, 6 Aug 2007 17:25:02 +0200 Ingo Molnar <[EMAIL PROTECTED]> escreveu: | | * Luiz Fernando N. Capitulino <[EMAIL PROTECTED]> wrote: | | > | hm, looks good to me but i'm wondering why this was a holdout for | > | such a long time :-) Did you manage to test actual LDT functionality | > | wi

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Ingo Molnar
* Luiz Fernando N. Capitulino <[EMAIL PROTECTED]> wrote: > | hm, looks good to me but i'm wondering why this was a holdout for > | such a long time :-) Did you manage to test actual LDT functionality > | with this patch applied? > > No, I didn't. The only test I did was to run the kernel with

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
86/mm/fault.c' so the patch I sent was incomplete. Fixed version below. Shame on me. [PATCH] i386: convert mm_context_t semaphore to a mutex --- arch/i386/kernel/i386_ksyms.c |1 + arch/i386/kernel/ldt.c| 14 +++--- arch/i386/kernel/ptrace.c |4 ++-- arch/i386/mm/fau

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
86/mm/fault.c' so the patch I sent was incomplete. Fixed version below. Shame on me. [PATCH] i386: convert mm_context_t semaphore to a mutex --- arch/i386/kernel/i386_ksyms.c |1 + arch/i386/kernel/ldt.c| 14 +++--- arch/i386/kernel/ptrace.c |4 ++-- arch/i386/mm/fau

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
86/mm/fault.c' so the patch I sent was incomplete. Fixed version below. Shame on me. [PATCH] i386: convert mm_context_t semaphore to a mutex --- arch/i386/kernel/i386_ksyms.c |1 + arch/i386/kernel/ldt.c| 14 +++--- arch/i386/kernel/ptrace.c |4 ++-- arch/i386/mm/fau

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Luiz Fernando N. Capitulino
86/mm/fault.c' so the patch I sent was incomplete. Fixed version below. Shame on me. [PATCH] i386: convert mm_context_t semaphore to a mutex --- arch/i386/kernel/i386_ksyms.c |1 + arch/i386/kernel/ldt.c| 14 +++--- arch/i386/kernel/ptrace.c |4 ++-- arch/i386/mm/fau

Re: [PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-06 Thread Ingo Molnar
> typedef struct { > int size; > - struct semaphore sem; > + struct mutex lock; hm, looks good to me but i'm wondering why this was a holdout for such a long time :-) Did you manage to test actual LDT functionality with this patch applied? Ingo - To unsubscribe from thi

[PATCH] i386: convert mm_context_t semaphore to a mutex

2007-08-03 Thread Luiz Fernando N. Capitulino
Signed-off-by: Luiz Fernando N. Capitulino <[EMAIL PROTECTED]> --- arch/i386/kernel/i386_ksyms.c |1 + arch/i386/kernel/ldt.c| 14 +++--- arch/i386/kernel/ptrace.c |4 ++-- include/asm-i386/mmu.h|4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-)