Commit 8bbb23e
committed
drivers: media: pisp_be: Fix for job queue removal in stop_streaming()
The existing code unconditionally removes jobs from the job_queue list
when all the nodes in a node group have stopped streaming. This will
also remove jobs for any other node groups as the job_queue is a common
list. Fix this by only conditionally deleting jobs that belong to the
current node group.
Additionally, delete jobs as soon as the first node in the node group
stops streaming. Running a job with an incomplete set of active nodes
is invalid.
Fixes: 880153e ("media: pisp_be: Split jobs creation and scheduling")
Signed-off-by: Naushir Patuck <[email protected]>1 parent dc3cfb9 commit 8bbb23e
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
977 | 980 | | |
978 | 981 | | |
979 | 982 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | 983 | | |
986 | 984 | | |
987 | 985 | | |
| |||
0 commit comments