Re: [PATCH v5 26/44] tty: Add read-recursive, writer-prioritized rw semaphore

2013-03-26 Thread Peter Hurley
On Mon, 2013-03-18 at 18:59 -0700, Greg Kroah-Hartman wrote: > > If you'd like, I can send you 6 or so short user test programs that > > hang, crash, or deadlock inside 60 seconds on mainline and next, but not > > with this patchset. > > That would be interesting to have, please send them. > > An

Re: [PATCH v5 26/44] tty: Add read-recursive, writer-prioritized rw semaphore

2013-03-19 Thread Peter Hurley
On Mon, 2013-03-18 at 18:59 -0700, Greg Kroah-Hartman wrote: > On Mon, Mar 18, 2013 at 09:01:19PM -0400, Peter Hurley wrote: > > On Mon, 2013-03-18 at 16:58 -0700, Greg Kroah-Hartman wrote: > > > On Mon, Mar 11, 2013 at 04:44:46PM -0400, Peter Hurley wrote: > > > > 2) TIOCSETD ioctl (change line d

Re: [PATCH v5 26/44] tty: Add read-recursive, writer-prioritized rw semaphore

2013-03-18 Thread Greg Kroah-Hartman
On Mon, Mar 18, 2013 at 09:01:19PM -0400, Peter Hurley wrote: > On Mon, 2013-03-18 at 16:58 -0700, Greg Kroah-Hartman wrote: > > On Mon, Mar 11, 2013 at 04:44:46PM -0400, Peter Hurley wrote: > > > 2) TIOCSETD ioctl (change line discipline) expects to return an > > >error if the line discipline

Re: [PATCH v5 26/44] tty: Add read-recursive, writer-prioritized rw semaphore

2013-03-18 Thread Peter Hurley
On Mon, 2013-03-18 at 16:58 -0700, Greg Kroah-Hartman wrote: > On Mon, Mar 11, 2013 at 04:44:46PM -0400, 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) w

Re: [PATCH v5 26/44] tty: Add read-recursive, writer-prioritized rw semaphore

2013-03-18 Thread Greg Kroah-Hartman
On Mon, Mar 11, 2013 at 04:44:46PM -0400, 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 li

[PATCH v5 26/44] tty: Add read-recursive, writer-prioritized rw semaphore

2013-03-11 Thread Peter Hurley
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