From: John Allen <hidden> Date: 2018-07-13 14:22:32
Stress testing has uncovered issues with handling continuously queued PRRN
events. Running PRRN events in this way can seriously load the system given
the sheer volume of dlpar being handled. This patchset ensures that PRRN
events are handled more synchronously, only allowing the PRRN handler to
queue a single dlpar event at any given time. Additionally, it ensures
that rtas polling continues normally when multiple PRRN events are queued
simultaneously.
John Allen (2):
pseries/prrn: Avoid blocking rtas polling handling multiple PRRN
events
pseries/prrn: Wait for completion of hotplug events during PRRN
handling
arch/powerpc/kernel/rtasd.c | 11 ++++++++---
arch/powerpc/platforms/pseries/mobility.c | 5 ++++-
2 files changed, 12 insertions(+), 4 deletions(-)
--
2.17.1
From: John Allen <hidden> Date: 2018-07-13 14:22:34
When a PRRN event is being handled and another PRRN event comes in, the
second event will block rtas polling waiting on the first to complete,
preventing any further rtas events from being handled. This can be
especially problematic in case that PRRN events are continuously being
queued in which case rtas polling gets indefinitely blocked completely.
This patch introduces a mutex that prevents any subsequent PRRN events from
running while there is a prrn event being handled, allowing rtas polling to
continue normally.
Signed-off-by: John Allen <redacted>
---
arch/powerpc/kernel/rtasd.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
From: John Allen <hidden> Date: 2018-07-13 14:22:37
While handling PRRN events, the time to handle the actual hotplug events
dwarfs the time it takes to perform the device tree updates and queue the
hotplug events. In the case that PRRN events are being queued continuously,
hotplug events have been observed to be queued faster than the kernel can
actually handle them. This patch avoids the problem by waiting for a
hotplug request to complete before queueing more hotplug events.
Signed-off-by: John Allen <redacted>
---
arch/powerpc/platforms/pseries/mobility.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
From: John Allen <hidden> Date: 2018-07-16 21:23:21
On Fri, Jul 13, 2018 at 09:22:23AM -0500, John Allen wrote:
quoted hunk
When a PRRN event is being handled and another PRRN event comes in, the
second event will block rtas polling waiting on the first to complete,
preventing any further rtas events from being handled. This can be
especially problematic in case that PRRN events are continuously being
queued in which case rtas polling gets indefinitely blocked completely.
This patch introduces a mutex that prevents any subsequent PRRN events from
running while there is a prrn event being handled, allowing rtas polling to
continue normally.
Signed-off-by: John Allen <redacted>
---
arch/powerpc/kernel/rtasd.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)