diff options
author | Steve Longerbeam <slongerbeam@gmail.com> | 2018-09-19 16:07:18 -0700 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-11-05 14:40:06 +0100 |
commit | 819bec35c8c9706185498c9222bd244e0781ad35 (patch) | |
tree | bab9e26c91056e5b6af77f95760f91d8fb01d6e5 /init | |
parent | d0cbc93a0110a82ff9e01d3c21d5a2e2027b706f (diff) | |
download | linux-819bec35c8c9706185498c9222bd244e0781ad35.tar.gz linux-819bec35c8c9706185498c9222bd244e0781ad35.tar.bz2 linux-819bec35c8c9706185498c9222bd244e0781ad35.zip |
gpu: ipu-v3: image-convert: Prevent race between run and unprepare
Prevent possible race by parallel threads between ipu_image_convert_run()
and ipu_image_convert_unprepare(). This involves setting ctx->aborting
to true unconditionally so that no new job runs can be queued during
unprepare, and holding the ctx->aborting flag until the context is freed.
Note that the "normal" ipu_image_convert_abort() case (e.g. not during
context unprepare) should clear the ctx->aborting flag after aborting
any active run and clearing the context's pending queue. This is because
it should be possible to continue to use the conversion context and queue
more runs after an abort.
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions