On Sun, Nov 11, 2012 at 04:45:09PM +0100, Oleg Nesterov wrote:
> On 11/09, Paul E. McKenney wrote:
> >
> > On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote:
> > >
> > > static bool xxx(brw)
> > > {
> > > down_write(>rw_sem);
> >
> > down_write_trylock()
> >
>
On Sun, Nov 11, 2012 at 04:45:09PM +0100, Oleg Nesterov wrote:
On 11/09, Paul E. McKenney wrote:
On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote:
static bool xxx(brw)
{
down_write(brw-rw_sem);
down_write_trylock()
As you noted in
On 11/09, Paul E. McKenney wrote:
>
> On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote:
> >
> > static bool xxx(brw)
> > {
> > down_write(>rw_sem);
>
> down_write_trylock()
>
> As you noted in your later email. Presumably you return false if
> the
On 11/09, Paul E. McKenney wrote:
On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote:
static bool xxx(brw)
{
down_write(brw-rw_sem);
down_write_trylock()
As you noted in your later email. Presumably you return false if
the attempt to
On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote:
> On 11/09, Paul E. McKenney wrote:
> >
> > On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote:
> > > Contrary, I am going to try to add some complications later, so that
> > > it can have more users. In particular, I think
On 11/09, Oleg Nesterov wrote:
>
> static bool xxx(brw)
> {
> down_write(>rw_sem);
> if (!atomic_read(>slow_read_ctr))
> return true;
I meant, try_to_down_write(). Otherwise this can obviously deadlock.
Oleg.
--
To unsubscribe from
On 11/09, Paul E. McKenney wrote:
>
> On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote:
> > Contrary, I am going to try to add some complications later, so that
> > it can have more users. In particular, I think it can replace
> > get_online_cpus/cpu_hotplug_begin, just we need
> >
On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote:
> On 11/08, Andrew Morton wrote:
> >
> > On Thu, 8 Nov 2012 14:48:49 +0100
> > Oleg Nesterov wrote:
> >
> > >
> > > include/linux/percpu-rwsem.h | 83 +
> > > lib/Makefile |2 +-
> > >
On Fri, Nov 09, 2012 at 05:35:38PM +0100, Oleg Nesterov wrote:
> On 11/08, Paul E. McKenney wrote:
> >
> > On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote:
> > > On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
> > > >
> > > > On Thu, 8 Nov 2012, Paul E. McKenney
On 11/08, Paul E. McKenney wrote:
>
> On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote:
> > On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
> > >
> > > On Thu, 8 Nov 2012, Paul E. McKenney wrote:
> > >
> > > > On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton
On 11/08, Andrew Morton wrote:
>
> On Thu, 8 Nov 2012 14:48:49 +0100
> Oleg Nesterov wrote:
>
> >
> > include/linux/percpu-rwsem.h | 83 +
> > lib/Makefile |2 +-
> > lib/percpu-rwsem.c | 123
> >
On Thu, 8 Nov 2012, Andrew Morton wrote:
> On Thu, 8 Nov 2012 14:48:49 +0100
> Oleg Nesterov wrote:
>
> > Currently the writer does msleep() plus synchronize_sched() 3 times
> > to acquire/release the semaphore, and during this time the readers
> > are blocked completely. Even if the "write"
On Thu, 8 Nov 2012, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
Currently the writer does msleep() plus synchronize_sched() 3 times
to acquire/release the semaphore, and during this time the readers
are blocked completely. Even if the
On 11/08, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
include/linux/percpu-rwsem.h | 83 +
lib/Makefile |2 +-
lib/percpu-rwsem.c | 123
On 11/08, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
On Thu, 8 Nov 2012, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
On
On Fri, Nov 09, 2012 at 05:35:38PM +0100, Oleg Nesterov wrote:
On 11/08, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
On Thu, 8 Nov 2012, Paul E. McKenney wrote:
On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote:
On 11/08, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
include/linux/percpu-rwsem.h | 83 +
lib/Makefile |2 +-
On 11/09, Paul E. McKenney wrote:
On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote:
Contrary, I am going to try to add some complications later, so that
it can have more users. In particular, I think it can replace
get_online_cpus/cpu_hotplug_begin, just we need
On 11/09, Oleg Nesterov wrote:
static bool xxx(brw)
{
down_write(brw-rw_sem);
if (!atomic_read(brw-slow_read_ctr))
return true;
I meant, try_to_down_write(). Otherwise this can obviously deadlock.
Oleg.
--
To unsubscribe from
On Fri, Nov 09, 2012 at 07:10:48PM +0100, Oleg Nesterov wrote:
On 11/09, Paul E. McKenney wrote:
On Fri, Nov 09, 2012 at 04:46:56PM +0100, Oleg Nesterov wrote:
Contrary, I am going to try to add some complications later, so that
it can have more users. In particular, I think it can
On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote:
> On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
> >
> >
> > On Thu, 8 Nov 2012, Paul E. McKenney wrote:
> >
> > > On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
> > > > On Thu, 8 Nov 2012
On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
>
>
> On Thu, 8 Nov 2012, Paul E. McKenney wrote:
>
> > On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
> > > On Thu, 8 Nov 2012 14:48:49 +0100
> > > Oleg Nesterov wrote:
> > >
> > > > Currently the writer does
On Thu, 8 Nov 2012, Paul E. McKenney wrote:
> On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
> > On Thu, 8 Nov 2012 14:48:49 +0100
> > Oleg Nesterov wrote:
> >
> > > Currently the writer does msleep() plus synchronize_sched() 3 times
> > > to acquire/release the semaphore, and
On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
> On Thu, 8 Nov 2012 14:48:49 +0100
> Oleg Nesterov wrote:
>
> > Currently the writer does msleep() plus synchronize_sched() 3 times
> > to acquire/release the semaphore, and during this time the readers
> > are blocked completely.
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov wrote:
> Currently the writer does msleep() plus synchronize_sched() 3 times
> to acquire/release the semaphore, and during this time the readers
> are blocked completely. Even if the "write" section was not actually
> started or if it was already
Currently the writer does msleep() plus synchronize_sched() 3 times
to acquire/release the semaphore, and during this time the readers
are blocked completely. Even if the "write" section was not actually
started or if it was already finished.
With this patch down_write/up_write does
Currently the writer does msleep() plus synchronize_sched() 3 times
to acquire/release the semaphore, and during this time the readers
are blocked completely. Even if the write section was not actually
started or if it was already finished.
With this patch down_write/up_write does
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
Currently the writer does msleep() plus synchronize_sched() 3 times
to acquire/release the semaphore, and during this time the readers
are blocked completely. Even if the write section was not actually
started or if it was
On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
Currently the writer does msleep() plus synchronize_sched() 3 times
to acquire/release the semaphore, and during this time the readers
are blocked
On Thu, 8 Nov 2012, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
Currently the writer does msleep() plus synchronize_sched() 3 times
to acquire/release the semaphore,
On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
On Thu, 8 Nov 2012, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
Oleg Nesterov o...@redhat.com wrote:
Currently the writer does
On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote:
On Thu, 8 Nov 2012, Paul E. McKenney wrote:
On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote:
On Thu, 8 Nov 2012 14:48:49 +0100
32 matches
Mail list logo