UBUNTU: [Packaging] Add support for per-flavour depends
The new ZFS lmm is now a dependency for linux-modules. But *not* for
all flavours, like rapi-realtime. Introduce a new =DEPENDS= placeholder,
similar to the exisiting =PROVIDES=, that is substituted with data from
debian.<foo>/control.d/vars.<flavour>.
Signed-off-by: Juerg Haefliger <email address hidden>
Acked-by: Yufeng Gao <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>
A deadlock may occur between two works, ps_work and mac_work, if their work
functions run simultaneously as they attempt to cancel each other by
calling cancel_delayed_work_sync().
In high-load situations, they are queued but may not have chance to be
executed until the CPUs are released. Once the CPUs are available, there
is a high possibility that the ps_work function and mac_work function will
be executed simultaneously, resulting in a possible deadlock.
This patch replaces cancel_delayed_work_sync() with cancel_delayed_work()
in ps_work to eliminate the deadlock and make the code easier to maintain.
Signed-off-by: Leon Yen <email address hidden>
Tested-by: Chia-Lin Kao (AceLan) <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Felix Fietkau <email address hidden>
(cherry picked from commit bb2f07819d063a58756186cac6465341956ac0a4 linux-next)
Signed-off-by: Chia-Lin Kao (AceLan) <email address hidden>
Signed-off-by: Paolo Pisati <email address hidden>