Files
twx-linux/kernel
Mathias Krause 0a9ac7ce39 padata: ensure padata_do_serial() runs on the correct CPU
commit 350ef88e7e upstream.

If the algorithm we're parallelizing is asynchronous we might change
CPUs between padata_do_parallel() and padata_do_serial(). However, we
don't expect this to happen as we need to enqueue the padata object into
the per-cpu reorder queue we took it from, i.e. the same-cpu's parallel
queue.

Ensure we're not switching CPUs for a given padata object by tracking
the CPU within the padata object. If the serial callback gets called on
the wrong CPU, defer invoking padata_reorder() via a kernel worker on
the CPU we're expected to run on.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-27 16:42:50 +02:00
..
…
…
…
2019-12-01 09:14:03 +01:00
…
…
…
…
…
…
2020-04-02 16:34:21 +02:00
…
…
…
…
…
…
2020-04-02 16:34:20 +02:00
…
…
…
…
…
…
…
2020-04-24 08:00:38 +02:00
…
…
…
…
2020-01-09 10:17:53 +01:00
…
…
…
…
2020-05-20 08:16:58 +02:00
…
…
…