Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-30 Thread Konrad Rzeszutek Wilk
On Thu, May 29, 2014 at 11:34:59PM +0900, Tetsuo Handa wrote: > Tetsuo Handa wrote: > > Konrad Rzeszutek Wilk wrote: > > > On Sat, May 24, 2014 at 11:22:09PM +0900, Tetsuo Handa wrote: > > > > Hello. > > > > > > > > I tried to test whether it is OK (from point of view of reentrant) to > > > > use

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-30 Thread Konrad Rzeszutek Wilk
On Thu, May 29, 2014 at 06:47:49AM +0900, Tetsuo Handa wrote: > Konrad Rzeszutek Wilk wrote: > > On Sat, May 24, 2014 at 11:22:09PM +0900, Tetsuo Handa wrote: > > > Hello. > > > > > > I tried to test whether it is OK (from point of view of reentrant) to use > > > mutex_lock() or mutex_lock_killabl

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-29 Thread Tetsuo Handa
Tetsuo Handa wrote: > Konrad Rzeszutek Wilk wrote: > > On Sat, May 24, 2014 at 11:22:09PM +0900, Tetsuo Handa wrote: > > > Hello. > > > > > > I tried to test whether it is OK (from point of view of reentrant) to use > > > mutex_lock() or mutex_lock_killable() inside shrinker functions when > > >

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-28 Thread Tetsuo Handa
Konrad Rzeszutek Wilk wrote: > On Sat, May 24, 2014 at 11:22:09PM +0900, Tetsuo Handa wrote: > > Hello. > > > > I tried to test whether it is OK (from point of view of reentrant) to use > > mutex_lock() or mutex_lock_killable() inside shrinker functions when > > shrinker > > functions do memory a

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-28 Thread Konrad Rzeszutek Wilk
hedule_preempt_disabled+0xf/0x20 > [ 77.962348] [] mutex_lock_killable_nested+0x15f/0x3e0 > [ 77.962348] [] ? shrink_test_count+0x12/0x60 [test] > [ 77.962348] [] ? shrink_test_count+0x12/0x60 [test] > [ 77.962348] [] shrink_test_count+0x12/0x60 [test] > [ 77.96234

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-24 Thread Tetsuo Handa
0 [ 77.962348] [] ret_from_kernel_thread+0x21/0x30 [ 77.962348] [] ? __init_kthread_worker+0x60/0x60 Tetsuo Handa wrote: > Tetsuo Handa wrote: > > From e314a1a1583e585d062dfc30c8aad8bf5380510b Mon Sep 17 00:00:00 2001 > > From: Tetsuo Handa > > Date: Mon, 19 May 2014 18:43:21

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-20 Thread Tetsuo Handa
Tetsuo Handa wrote: > From e314a1a1583e585d062dfc30c8aad8bf5380510b Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Mon, 19 May 2014 18:43:21 +0900 > Subject: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker > functions. > > I can observe that RHEL7 enviro

Re: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-19 Thread Dave Airlie
cc'ing dri-devel. > >From e314a1a1583e585d062dfc30c8aad8bf5380510b Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Mon, 19 May 2014 18:43:21 +0900 > Subject: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker > functions. > > I can observe that RHEL

[PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions.

2014-05-19 Thread Tetsuo Handa
>From e314a1a1583e585d062dfc30c8aad8bf5380510b Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Mon, 19 May 2014 18:43:21 +0900 Subject: [PATCH] gpu/drm/ttm: Use mutex_lock_killable() for shrinker functions. I can observe that RHEL7 environment stalls with 100% CPU usage when a certain type