mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libap: use custom wait time for file locks
If many invocations of mdevctl occur simultaneously (as can happen with libvirt) then waiting for 5-60 seconds per lock retry is simply too long. Anticipating this possibility, retry more frequently but also attempt significantly more retries than before. Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Marc Hartmayer <marc@linux.ibm.com> Tested-by: Marc Hartmayer <marc@linux.ibm.com> Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
f5f806af06
commit
474c6adf8f
+3
-1
@@ -21,7 +21,9 @@
|
||||
#define AP_UDEV_FILE "/etc/udev/rules.d/41-ap.rules"
|
||||
#define AP_LOCKFILE "/run/lock/s390apconfig.lock"
|
||||
|
||||
#define AP_LOCK_RETRIES 15
|
||||
#define AP_LOCK_RETRIES 3000
|
||||
#define AP_LOCK_DELAY_US 30000 /* wait at least 30ms between lock retries */
|
||||
#define AP_LOCK_VARIANCE_US 3000 /* or as much as 33ms */
|
||||
|
||||
/* apmask and aqmask are each represented as 67 character strings with:
|
||||
* '0x' leading characters
|
||||
|
||||
Reference in New Issue
Block a user