milos-linux/drivers
Sergey Senozhatsky 6efc548d8a zram: rename init_lock to dev_lock
init_lock has completely outgrown its initial purpose and is no longer
used only to "prevent concurrent execution of device init" as the stale
comment suggests.  The scope of this lock is much bigger now.

These days this lock (rw_semaphore) controls how a task owns the
corresponding zram device: either in shared mode or in exclusive mode.

All zram device attribute writes should own the device in exclusive mode,
which synchronizes these tasks and prevents, for example, concurrent
execution of recompression and writeback.

All zram device attribute reads should own the device in shared mode.

Rename the lock to dev_lock to better reflect its current purpose.

Link: https://lkml.kernel.org/r/20260115080807.3957860-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Brian Geffon <bgeffon@google.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-01-31 14:22:36 -08:00
..
accel
accessibility
acpi ACPI: PM: s2idle: Add module parameter for LPS0 constraints checking 2026-01-13 23:10:25 +01:00
amba
android
ata ata: libata: Print features also for ATAPI devices 2026-01-13 22:00:02 +09:00
atm atm: Fix dma_free_coherent() size 2026-01-08 08:47:32 -08:00
auxdisplay
base
bcma
block zram: rename init_lock to dev_lock 2026-01-31 14:22:36 -08:00
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl cxl: Check for invalid addresses returned from translation functions on errors 2026-01-13 08:30:40 -07:00
dax drivers/dax: add some missing kerneldoc comment fields for struct dev_dax 2026-01-14 22:16:26 -08:00
dca
devfreq
dibs
dio
dma dmaengine: apple-admac: Add "apple,t8103-admac" compatible 2026-01-11 22:12:49 +05:30
dma-buf
dpll
edac EDAC/x38: Fix a resource leak in x38_probe1() 2026-01-04 08:35:39 +01:00
eisa
extcon
firewire
firmware mm: rename cpu_bitmap field to flexible_array 2026-01-19 12:30:00 -08:00
fpga
fsi
fwctl
gnss
gpib
gpio gpiolib: remove redundant callback check 2026-01-12 09:35:04 +01:00
gpu mm/zone_device: reinitialize large zone device private folios 2026-01-26 19:03:48 -08:00
greybus
hid hid-for-linus-2026010801 2026-01-08 07:44:48 -08:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: imx-lpi2c: change to PIO mode in system-wide suspend/resume progress 2026-01-14 12:58:26 +01:00
i3c
idle
iio
infiniband RDMA/bnxt_re: fix dma_free_coherent() pointer 2025-12-30 06:45:51 -05:00
input
interconnect
iommu iommu/sva: include mmu_notifier.h header 2026-01-14 22:16:25 -08:00
ipack
irqchip irqchip/riscv-imsic: Revert "Remove redundant irq_data lookups" 2026-01-13 09:51:46 +01:00
isdn
leds
macintosh
mailbox
mcb
md block-6.19-20260102 2026-01-02 12:15:59 -08:00
media [GIT PULL for v6.19-rc6] media fixes 2026-01-14 08:18:01 -08:00
memory
memstick
message
mfd
misc mm: rename CONFIG_MEMORY_BALLOON -> CONFIG_BALLOON 2026-01-31 14:22:36 -08:00
mmc
most
mtd treewide: Update email address 2026-01-11 06:09:11 -10:00
mux
net linux-can-fixes-for-6.19-20260115 2026-01-15 13:13:01 +01:00
nfc
ntb
nubus
nvdimm
nvme block-6.19-20260116 2026-01-16 20:59:46 -08:00
nvmem
of of: fix reference count leak in of_alias_scan() 2026-01-17 10:20:43 -06:00
opp
parisc
parport
pci cxl fixes for v6.19-rc6 2026-01-16 13:09:28 -08:00
pcmcia
peci
perf
phy phy: freescale: imx8m-pcie: assert phy reset during power on 2026-01-14 21:44:39 +05:30
pinctrl pinctrl: qcom: lpass-lpi: mark the GPIO controller as sleeping 2026-01-01 15:40:56 +01:00
platform platform/x86: asus-armoury: add support for G835LW 2025-12-30 12:51:46 +02:00
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm pwm: max7360: Populate missing .sizeof_wfhw in max7360_pwm_ops 2026-01-19 18:31:05 +01:00
rapidio
ras
regulator
remoteproc
resctrl arm_mpam: Use non-atomic bitops when modifying feature bitmap 2026-01-16 12:04:20 +00:00
reset
rpmsg
rtc
s390
sbus
scsi scsi: bfa: Update outdated comment 2026-01-04 15:28:08 -05:00
sh
siox
slimbus
soc
soundwire soundwire fix for 6.19 2026-01-18 12:29:12 -08:00
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs scsi: ufs: host: mediatek: Make read-only array scale_us static const 2026-01-04 15:48:50 -05:00
uio treewide: Update email address 2026-01-11 06:09:11 -10:00
usb xhci: sideband: don't dereference freed ring when removing sideband endpoint 2026-01-16 12:19:37 +01:00
vdpa
vfio
vhost
video
virt
virtio mm: rename CONFIG_MEMORY_BALLOON -> CONFIG_BALLOON 2026-01-31 14:22:36 -08:00
w1
watchdog
xen ACPI: PCI: IRQ: Fix INTx GSIs signedness 2026-01-05 19:06:40 +01:00
zorro
Kconfig
Makefile