linux-yocto/include
Damien Le Moal 5486888fbd block: Introduce bio_needs_zone_write_plugging()
commit f70291411b upstream.

In preparation for fixing device mapper zone write handling, introduce
the inline helper function bio_needs_zone_write_plugging() to test if a
BIO requires handling through zone write plugging using the function
blk_zone_plug_bio(). This function returns true for any write
(op_is_write(bio) == true) operation directed at a zoned block device
using zone write plugging, that is, a block device with a disk that has
a zone write plug hash table.

This helper allows simplifying the check on entry to blk_zone_plug_bio()
and used in to protect calls to it for blk-mq devices and DM devices.

Fixes: f211268ed1 ("dm: Use the block layer zone append emulation")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250625093327.548866-3-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-20 18:41:35 +02:00
..
acpi
asm-generic hyperv-next for v6.16 2025-06-03 08:39:20 -07:00
clocksource
crypto crypto: ahash - Stop legacy tfms from using the set_virt fallback path 2025-08-15 16:39:00 +02:00
cxl
drm drm/sched: Avoid memory leaks with cancel_job() callback 2025-08-20 18:41:10 +02:00
dt-bindings clk: sunxi-ng: v3s: Fix CSI SCLK clock name 2025-07-03 23:31:04 +08:00
hyperv hyperv-next for v6.16 2025-06-03 08:39:20 -07:00
keys
kunit
kvm
linux block: Introduce bio_needs_zone_write_plugging() 2025-08-20 18:41:35 +02:00
math-emu
media
memory
misc
net wifi: mac80211: avoid weird state in error path 2025-08-20 18:41:10 +02:00
pcmcia
ras
rdma RDMA/uverbs: Add empty rdma_uattrs_has_raw_cap() declaration 2025-08-15 16:39:06 +02:00
rv
scsi
soc - The 3 patch series "hung_task: extend blocking task stacktrace dump to 2025-05-31 19:12:53 -07:00
sound ASoC: SDCA: Add flag for unused IRQs 2025-08-20 18:41:01 +02:00
target
trace powerpc/thp: tracing: Hide hugepage events under CONFIG_PPC_BOOK3S_64 2025-08-20 18:41:05 +02:00
uapi uapi: in6: restore visibility of most IPv6 socket options 2025-08-20 18:41:19 +02:00
ufs
vdso
video fbdev: atyfb: Remove unused PCI vendor ID 2025-05-31 10:24:01 +02:00
xen
Kbuild