2005-11-01 08:16:31

by Michael Krufky

[permalink] [raw]
Subject: [PATCH 24/37] dvb: dst: protect the read/write commands with a mutex




Attachments:
2395.patch (4.27 kB)

2005-11-03 03:57:49

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH 24/37] dvb: dst: protect the read/write commands with a mutex

Michael Krufky <[email protected]> wrote:
>
> + sema_init(&state->dst_mutex, 1);

We normally use init_MUTEX(), so we don't have to remember that 1 == unlocked.

2005-11-03 09:40:59

by Manu Abraham

[permalink] [raw]
Subject: Re: [PATCH 24/37] dvb: dst: protect the read/write commands with a mutex

Andrew Morton wrote:

>Michael Krufky <[email protected]> wrote:
>
>
>>+ sema_init(&state->dst_mutex, 1);
>>
>>
>
>We normally use init_MUTEX(), so we don't have to remember that 1 == unlocked.
>
>
>
Hello Andrew,

I will have that changed in dvb-kernel CVS. Would you like me to send in
a patch for the same. Or you can have it changed .. ?


Thanks,
Manu