lkml.org 
[lkml]   [2013]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 25/32] tty: Add read-recursive, writer-prioritized rw semaphore
From
Date
On Wed, 2013-02-20 at 15:03 -0500, Peter Hurley wrote:
> The semantics of a rw semaphore are almost ideally suited
> for tty line discipline lifetime management; multiple active
> threads obtain "references" (read locks) while performing i/o
> to prevent the loss or change of the current line discipline
> (write lock).
>
> Unfortunately, the existing rw_semaphore is ill-suited in other
> ways;
> 1) obtaining a "reference" can be recursive, ie., a reference holder
> may attempt to obtain another "reference". Recursive read locks
> are not supported by rwsem.

Hi Greg,

I just finished auditing all the recursive usage of the tty/ldisc layer
and I can make this lock non-recursive.

Please hold off applying this and I'll send you a v5 series in a couple
of days, ok?

Regards,
Peter Hurley




\
 
 \ /
  Last update: 2013-03-08 19:02    [W:1.033 / U:1.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site