locking/ww-mutex: Limit stress test to 2 seconds
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Mar 2017 10:57:33 +0000 (10:57 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 30 Mar 2017 07:49:47 +0000 (09:49 +0200)
commit57dd924e541a98219bf3a508623db2e0c07e75a7
tree83a9d11d073455d02279c141f6bdf506034a02d6
parent44fe84459faf1a7781595b7c64cd36daf2f2827d
locking/ww-mutex: Limit stress test to 2 seconds

Use a timeout rather than a fixed number of loops to avoid running for
very long periods, such as under the kbuilder VMs.

Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170310105733.6444-1-chris@chris-wilson.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/test-ww_mutex.c