]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cxl: Add timeout to process element commands
authorIan Munsie <imunsie@au1.ibm.com>
Mon, 8 Dec 2014 08:17:56 +0000 (19:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 12 Dec 2014 02:06:47 +0000 (13:06 +1100)
commita98e6e9f4e0224d85b4d951edc44af16dfe6094a
tree9278fae691319e781d42d0278038786da3e449df
parentee41d11d53c8fc4968f0816504651541d606cf40
cxl: Add timeout to process element commands

In the event that something goes wrong in the hardware and it is unable
to complete a process element comment we would end up polling forever,
effectively making the associated process unkillable.

This patch adds a timeout to the process element command code path, so
that we will give up if the hardware does not respond in a reasonable
time.

Cc: stable@vger.kernel.org
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/native.c