linux/drivers
Xiao Ni 05c8de4f09 md: fix return value of mddev_trylock
A return value of 0 is treaded as successful lock acquisition. In fact, a
return value of 1 means getting the lock successfully.

Link: https://lore.kernel.org/linux-raid/20260127073951.17248-1-xni@redhat.com
Fixes: 9e59d60976 ("md: call del_gendisk in control path")
Reported-by: Bart Van Assche <bvanassche@acm.org>
Closes: https://lore.kernel.org/linux-raid/20250611073108.25463-1-xni@redhat.com/T/#mfa369ef5faa4aa58e13e6d9fdb88aecd862b8f2f
Signed-off-by: Xiao Ni <xni@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by:  Li Nan <linan122@huawei.com>
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
2026-02-02 15:39:55 +08:00
..
accel
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block ublk: remove "can't touch 'ublk_io' any more" comments 2026-01-31 06:38:43 -07:00
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dibs
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire firewire: nosy: Fix dma_free_coherent() size 2025-12-26 22:04:03 +09:00
firmware arm64: efi: Fix NULL pointer dereference by initializing user_ns 2025-12-24 21:32:57 +01:00
fpga
fsi
fwctl
gnss
gpib
gpio
gpu Merge tag 'drm-msm-fixes-2025-12-26' of https://gitlab.freedesktop.org/drm/msm into drm-fixes 2025-12-27 16:00:47 +10:00
greybus
hid Input updates for v6.19-rc1 2025-12-21 15:21:10 -08:00
hsi
hte
hv
hwmon hwmon: (ltc4282): Fix reset_history file permissions 2025-12-19 08:44:22 -08:00
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input Input updates for v6.19-rc1 2025-12-21 15:21:10 -08:00
interconnect
iommu Miscellaneous x86 fixes: 2025-12-21 14:41:29 -08:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md md: fix return value of mddev_trylock 2026-02-02 15:39:55 +08:00
media
memory
memstick
message
mfd
misc lkdtm/bugs: Do not confuse the clang/objtool with busy wait loop 2025-12-19 15:09:09 +00:00
mmc
most
mtd
mux
net Including fixes from netfilter and CAN. 2025-12-19 07:55:35 +12:00
nfc
ntb
nubus
nvdimm
nvme block: introduce bdev_rot() 2026-01-30 08:11:09 -07:00
nvmem
of
opp
parisc parisc: Set valid bit in high byte of 64‑bit physical address 2025-12-19 13:56:17 +01:00
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pmdomain
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: fp9931: fix regulator node pointer 2025-12-24 11:31:29 +00:00
remoteproc
resctrl
reset
rpmsg
rtc
s390
sbus
scsi block: pass io_comp_batch to rq_end_io_fn callback 2026-01-20 10:12:54 -07:00
sh
siox
slimbus
soc
soundwire
spi spi: cadence-quadspi: Prevent indirect read 2025-12-23 15:18:22 +00:00
spmi
ssb
staging
target block: pass io_comp_batch to rq_end_io_fn callback 2026-01-20 10:12:54 -07:00
tc
tee
thermal
thunderbolt
tty serial: xilinx_uartps: fix rs485 delay_rts_after_send 2025-12-23 11:55:16 +01:00
ufs
uio
usb Merge patch series "usb: typec: ucsi: revert broken buffer management" 2025-12-23 15:59:03 +01:00
vdpa
vfio
vhost vhost/vsock: improve RCU read sections around vhost_vsock_get() 2025-12-24 08:02:57 -05:00
video
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile