lkml.org 
[lkml]   [2023]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/2] Change DEFINE_SEMAPHORE() to take a number argument
On Fri, Apr 07, 2023 at 09:36:30PM +0100, Matthew Wilcox wrote:
> Or this:
>
> /*
> * Unlike mutexes, binary semaphores do not have an owner, so up() can
> * be called in a different thread from the one which called down().
> * It is also safe to call down_trylock() and up() from interrupt
> * context.
> */

I went with that. Thanks for helping me paint this shed!

Luis

\
 
 \ /
  Last update: 2023-04-12 06:05    [W:0.171 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site