Re: [PATCH] tests/gem_userptr_blits: Race between object creation and multi-threaded mm ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >You don't have any cancellation points in the loop. (mmap may or may not
> >be, it is not required to be.)
> >
> >But rather than use a global, just pass a pointer to a local struct.
> 
> It doesn't need both a cancellation point and a flag. Should I just
> add pthread_testcancel in the loop and not have any flag at all?

testcancel also neatly avoids the handwavely lack of mb().

> >Oh, and igt_assert. But kill the asserts in mm_stress_thread() first.
> 
> Why remove completely? My thinking was to use assert vs igt_assert
> to distinguish between assumptions about system behaviour, and
> igt_assert for assertions about tested functionality.

If the assert fires you make the igt test runner angry. Might as well 
report a test failure rather than break down completely.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux