diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-08-16 15:21:01 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-10-04 17:48:28 +0300 |
commit | 1388fa70322b7e71c1b836c5d38e6a09acaa04c6 (patch) | |
tree | c3c42a531e900f218bfd7536c6e98d98683e545b | |
parent | 556efab54f5cf417c44cc9e5d99823783afe11a6 (diff) |
smartezbench.py: Don't require locks when running readonly
Note that a readonly Smartezbench instance still modifies the report
due to setting the profile on its Runner instance (runner.log gets
modified).
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r-- | python-modules/ezbench/smartezbench.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py index 40b156b..fe1da14 100644 --- a/python-modules/ezbench/smartezbench.py +++ b/python-modules/ezbench/smartezbench.py @@ -454,7 +454,7 @@ class SmartEzbench: def __reload_state(self, keep_lock=False): self.__grab_lock() - if self.state_lock.ref_cnt() == 1: + if self.state_lock.ref_cnt() == 1 or self.readonly: ret = self.__reload_state_unlocked() else: print("WARNING: Recursive call to __reload_state()") |