]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dbg: in sync mode don't call schedule
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Fri, 4 Mar 2022 11:21:26 +0000 (13:21 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 10 Mar 2022 07:23:29 +0000 (09:23 +0200)
commitc18f5efb7f9b630232318c726f80131fe3f48282
tree016a84ab4952fcd5e5212978991a761148b66fe5
parent38562f124c90e8938b650f4e3cc30444d2b4a980
iwlwifi: dbg: in sync mode don't call schedule

Today in the code we have two options for collecting data sync/schedule,
the two options call the same function and can lead to racing in free
resources after done.

So we call only one of two sync/schedule, and in case of sync only
call sync function without also schedule to immediately run as a side
job.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220304131517.88574097ce1b.I1b42297619d638d677a2300ed9a95105c1262101@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c