linux/drivers
Jens Axboe 1beb41094b brd: check for REQ_NOWAIT and set correct page allocation mask
commit 6ded703c56 upstream.

If REQ_NOWAIT is set, then do a non-blocking allocation if the operation
is a write and we need to insert a new page. Currently REQ_NOWAIT cannot
be set as the queue isn't marked as supporting nowait, this change is in
preparation for allowing that.

radix_tree_preload() warns on attempting to call it with an allocation
mask that doesn't allow blocking. While that warning could arguably
be removed, we need to handle radix insertion failures anyway as they
are more likely if we cannot block to get memory.

Remove legacy BUG_ON()'s and turn them into proper errors instead, one
for the allocation failure and one for finding a page that doesn't
match the correct index.

Cc: stable@vger.kernel.org # 5.10+
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-10 09:34:15 +01:00
..
accessibility
acpi
amba
android
ata
atm
auxdisplay
base driver core: fw_devlink: Avoid spurious error message 2023-03-10 09:34:01 +01:00
bcma
block brd: check for REQ_NOWAIT and set correct page allocation mask 2023-03-10 09:34:15 +01:00
bluetooth
bus
cdrom
char ipmi_ssif: Rename idle state and check 2023-03-10 09:34:03 +01:00
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware firmware: coreboot: framebuffer: Ignore reserved pixel color bits 2023-03-10 09:34:02 +01:00
fpga
fsi
gnss
gpio
gpu drm/shmem-helper: Revert accidental non-GPL export 2023-03-10 09:34:01 +01:00
greybus
hid HID: logitech-hidpp: Don't restart communication if not necessary 2023-03-10 09:34:00 +01:00
hsi
hte
hv
hwmon hwmon: (nct6775) B650/B660/X670 ASUS boards support 2023-03-10 09:33:59 +01:00
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband RDMA/siw: Fix user page pinning accounting 2023-03-10 09:34:11 +01:00
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md md: don't update recovery_cp when curr_resync is ACTIVE 2023-03-10 09:34:10 +01:00
media
memory
memstick
message
mfd
misc habanalabs: fix bug in timestamps registration code 2023-03-10 09:33:58 +01:00
mmc
most
mtd
mux
net wifi: rtl8xxxu: fixing transmisison failure for rtl8192eu 2023-03-10 09:34:02 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl pinctrl: at91: use devm_kasprintf() to avoid potential leaks 2023-03-10 09:33:59 +01:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: s5m8767: Bounds check id indexing into arrays 2023-03-10 09:33:58 +01:00
remoteproc
reset
rpmsg
rtc rtc: pm8xxx: fix set-alarm race 2023-03-10 09:34:02 +01:00
s390
sbus
scsi scsi: mpi3mr: Remove unnecessary memcpy() to alltgt_info->dmi 2023-03-10 09:34:06 +01:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs scsi: ufs: core: Fix device management cmd timeout flow 2023-03-10 09:34:00 +01:00
uio
usb
vdpa
vfio
vhost
video Revert "fbcon: don't lose the console font across generic->chip driver switch" 2023-03-10 09:33:56 +01:00
virt virt/sev-guest: Return -EIO if certificate buffer is not large enough 2023-03-10 09:34:14 +01:00
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile