[Nouveau] [PATCH] nouveau: safen up nouveau_device list usage against concurrent access

2014-03-26 Thread Ben Skeggs
On Thu, Mar 13, 2014 at 12:05 PM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin Already said on IRC, but for posterity: Reviewed-by: Ben Skeggs > --- > nouveau/nouveau.c | 29 - > nouveau/private.h | 3 ++- > 2 files changed, 30 insertions(+), 2 deletions(-) > >

[PATCH] nouveau: safen up nouveau_device list usage against concurrent access

2014-03-25 Thread Ilia Mirkin
Here's a test program I just whipped up that demonstrates (some of) the issues in the old code. This segfaults in either nouveau_bo_wrap or nouveau_bo_new, or sometimes nouveau_bo_wrap fails to find the handle. With the patch, it hasn't failed yet. Ben -- review please? (Or someone else...) Admitte

[PATCH] nouveau: safen up nouveau_device list usage against concurrent access

2014-03-12 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- nouveau/nouveau.c | 29 - nouveau/private.h | 3 ++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c index ee7893b..72c31cf 100644 --- a/nouveau/nouveau.c +++ b/nouveau/nouveau.c @@ -