Jan Glauber
893a7d32e8
lockref: Limit number of cmpxchg loop retries
...
The lockref cmpxchg loop is unbound as long as the spinlock is not
taken. Depending on the hardware implementation of compare-and-swap
a high number of loop retries might happen.
Add an upper bound to the loop to force the fallback to spinlocks
after some time. A retry value of 100 should not impact any hardware
that does not have this issue.
With the retry limit the performance of an open-close testcase
improved between 60-70% on ThunderX2.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org >
Signed-off-by: Jan Glauber <jglauber@marvell.com >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2019-06-07 13:15:06 -07:00
..
2019-05-30 11:26:37 -07:00
2019-05-21 10:50:46 +02:00
2019-02-06 11:01:57 +01:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:27:10 +02:00
2019-05-24 17:37:52 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:39:02 +02:00
2019-05-24 17:39:02 +02:00
2019-05-24 17:27:11 +02:00
2019-05-24 17:27:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-14 19:52:49 -07:00
2019-05-21 10:50:45 +02:00
2019-02-13 08:16:41 +01:00
2019-05-24 17:27:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-04-08 18:39:23 -05:00
2019-05-24 17:39:02 +02:00
2019-03-12 10:04:02 -07:00
2019-02-15 19:50:07 +01:00
2019-04-25 15:38:12 +08:00
2019-05-21 10:50:45 +02:00
2019-05-24 17:37:53 +02:00
2019-01-31 19:28:40 +01:00
2019-04-25 15:38:12 +08:00
2019-05-01 12:29:28 -04:00
2019-04-09 14:19:06 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-03-12 10:04:02 -07:00
2019-05-13 11:07:33 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-01-22 13:39:59 +01:00
2019-05-21 10:50:45 +02:00
2019-02-19 20:52:19 -07:00
2019-05-30 11:26:32 -07:00
2019-05-24 17:27:11 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-24 17:36:45 +02:00
2019-04-01 07:37:12 +02:00
2019-05-03 08:26:51 +02:00
2019-05-30 11:26:32 -07:00
2019-05-23 09:27:39 -06:00
2019-02-28 07:55:43 +01:00
2019-06-07 13:15:06 -07:00
2019-05-24 17:37:53 +02:00
2019-05-24 17:39:02 +02:00
2019-05-14 19:52:49 -07:00
2019-05-21 10:50:45 +02:00
2019-05-24 17:39:02 +02:00
2019-05-21 10:50:45 +02:00
2019-05-04 01:27:11 -04:00
2019-05-21 10:50:45 +02:00
2019-02-14 12:41:54 -05:00
2019-05-21 10:50:45 +02:00
2019-05-24 17:27:11 +02:00
2019-05-03 10:49:17 -04:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 11:28:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-17 11:32:47 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:35 -07:00
2019-02-04 09:03:31 +01:00
2019-05-16 09:45:20 -07:00
2019-05-23 10:25:26 -06:00
2019-02-11 15:02:33 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-04-25 19:47:24 +02:00
2019-02-13 08:16:40 +01:00
2019-06-01 15:51:31 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-04-08 16:44:21 -06:00
2019-04-24 12:19:45 +02:00
2019-04-24 12:19:45 +02:00
2019-04-05 09:26:43 -04:00
2019-05-21 10:50:45 +02:00
2019-02-25 22:18:07 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-03-05 21:07:13 -08:00
2019-02-01 15:46:23 -08:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-02-13 22:13:29 -08:00
2019-05-21 10:50:45 +02:00
2019-04-12 17:34:45 -07:00
2019-05-21 10:50:45 +02:00
2019-06-01 18:29:58 +02:00
2019-05-21 10:50:45 +02:00
2019-04-08 16:44:21 -06:00
2019-05-14 19:52:51 -07:00
2019-03-07 18:32:00 -08:00
2019-05-14 19:52:49 -07:00
2019-02-21 17:54:44 -05:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-06 11:39:17 -07:00
2019-05-06 11:12:09 -07:00
2019-05-24 17:39:02 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:45 +02:00
2019-02-21 17:54:44 -05:00