aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorDave Jiang <[email protected]>2022-04-18 21:33:21 +0000
committerVinod Koul <[email protected]>2022-04-20 11:54:42 +0000
commitbc3452cdfc468a65965d0ac397c940acb787ea4d (patch)
tree67b16d1e8e9f7659fff685b817a2437dac2ec614 /tools/perf/util/c++/clang.cpp
parentdmaengine: idxd: match type for retries var in idxd_enqcmds() (diff)
downloadkernel-bc3452cdfc468a65965d0ac397c940acb787ea4d.tar.gz
kernel-bc3452cdfc468a65965d0ac397c940acb787ea4d.zip
dmaengine: idxd: fix retry value to be constant for duration of function call
When retries is compared to wq->enqcmds_retries each loop of idxd_enqcmds(), wq->enqcmds_retries can potentially changed by user. Assign the value of retries to wq->enqcmds_retries during initialization so it is the original value set when entering the function. Fixes: 7930d8553575 ("dmaengine: idxd: add knob for enqcmds retries") Suggested-by: Dave Hansen <[email protected]> Signed-off-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/165031760154.3658664.1983547716619266558.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions