dmaengine: idxd: fix retry value to be constant for duration of function call
Dave Jiang authored
[ Upstream commit bc3452cd ]

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: 7930d855

 ("dmaengine: idxd: add knob for enqcmds retries")
Suggested-by: default avatarDave Hansen <dave.hansen@intel.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/165031760154.3658664.1983547716619266558.stgit@djiang5-desk3.ch.intel.com

Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
18dd60b7
Name Last commit Last update
Documentation dt-bindings: net: snps: remove duplicate name
LICENSES LICENSES/LGPL-2.1: Add LGPL-2.1-or-later as valid identifiers
arch RISC-V: KVM: Restrict the extensions that can be disabled
block block/compat_ioctl: fix range check in BLKGETSIZE
certs certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty
crypto crypto: xts - Add softdep on ecb
drivers dmaengine: idxd: fix retry value to be constant for duration of function call
fs gfs2: assign rgrp glock before compute_bitstructs
include ipv6: make ip6_rt_gc_expire an atomic_t
init init/main.c: return 1 from handled __setup() functions
ipc ipc/sem: do not sleep with a spin lock held
kernel cpu/hotplug: Remove the 'cpu' member of cpuhp_cpu_state
lib lz4: fix LZ4_decompress_safe_partial read out of bound
mm mm, kfence: support kmem_dump_obj() for KFENCE objects
net netlink: reset network and mac headers in netlink_dump()
samples samples/bpf, xdpsock: Fix race when running for fix duration of time
scripts gcc-plugins: latent_entropy: use /dev/urandom
security Fix incorrect type in assignment of ipv6 port for audit
sound ALSA: hda/hdmi: fix warning about PCM count when used with SOF
tools perf tools: Fix segfault accessing sample_id xyarray
usr kbuild: remove include/linux/cyclades.h from header file check
virt KVM: avoid NULL pointer dereference in kvm_dirty_ring_push
.clang-format genirq/msi: Make interrupt allocation less convoluted
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore .gitignore: ignore only top-level modules.builtin
.mailmap MAINTAINERS: Update Jisheng's email address
COPYING COPYING: state that all contributions really are covered by this file
CREDITS MAINTAINERS: replace a Microchip AT91 maintainer
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y
Kconfig kbuild: ensure full rebuild when the compiler is updated
MAINTAINERS net: dsa: realtek-smi: move to subdirectory
Makefile Linux 5.17.4
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.