summaryrefslogtreecommitdiff
path: root/tests/unittests/sysfs_mock/class/ubi/ubi0
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2016-02-22 14:52:05 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-02-21 10:13:26 +0100
commitfc7aa01f07919155fc167846125bc8f7e965b89d (patch)
tree5d5fe930493bc5c3e192d6c64530ad30095e451b /tests/unittests/sysfs_mock/class/ubi/ubi0
parentfdec8a4ad3b166d83e00a04f9e926dc3261daf5d (diff)
ubi: tests: Speedup io_paral by using rand_r()
rand() is not thread safe, but glibc seems to use a shared state which is protected by a mutex. io_paral spawns a few threads and they call rand() more or less in parallel, which causes heavy lock contention. That makes the test extremely slow on some setups. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: David Gstir <david@sigma-star.at> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/unittests/sysfs_mock/class/ubi/ubi0')
0 files changed, 0 insertions, 0 deletions