freebsd-skq/sys/dev
Roger Pau Monné 4772e86beb xen/blkback: fix reconnection of backend
The hotplug script will be executed only once for each backend,
regardless of the frontend triggering reconnections. Fix blkback to
deal with the hotplug script being executed only once, so that
reconnections don't stall waiting for a hotplug script execution
that will never happen.

As a result of the fix move the initialization of dev_mode, dev_type
and dev_name to the watch callback, as they should be set only once
the first time the backend connects.

This fix is specially relevant for guests wanting to use UEFI OVMF
firmware, because OVMF will use Xen PV block devices and disconnect
afterwards, thus allowing them to be used by the guest OS. Without
this change the guest OS will stall waiting for the block backed to
attach.

Fixes: de0bad0001 ('blkback: add support for hotplug scripts')
MFC after: 1 week
Sponsored by: Citrix Systems R&D
2021-05-11 15:43:42 +02:00
..
aac
aacraid
acpi_support
acpica Move time math out of disabled interrupts sections. 2021-03-10 13:52:51 -05:00
adb
adlink
ae
age
agp
ahci Add IDs for ASMedia ASM116x PCIe 3.0 AHCI controllers. 2021-04-07 15:09:56 -04:00
aic7xxx
al_eth al_eth: Use device_t in preference to struct device * 2021-04-12 09:32:02 -04:00
alc
ale
alpm
altera
amd_ecc_inject
amdgpio
amdpm
amdsbwd
amdsmb
amdsmn
amdtemp
amr
an
arcmsr arcmsr(4): Fix SCSI command timeout on ARC-1886. 2021-04-21 01:03:54 -07:00
asmc
ata
ath [ath] Add ath_hal_getnav and ath_hal_setnav so the driver layer 2021-04-18 22:59:28 -07:00
atkbdc
axgbe
backlight
bce
beri if_vtbe: Add missing includes to fix build 2021-03-08 20:48:48 +00:00
bfe
bge
bhnd
bnxt iflib: Make if_shared_ctx_t a pointer to const 2021-03-08 12:39:06 -05:00
bwi
bwn
bxe
cadence
cardbus cardbus: Be sure to acquire Giant when calling into newbus 2021-02-27 01:23:09 -07:00
cas
ce ce: unifdef NPCI also 2021-03-26 10:59:11 -04:00
cesa
cfe
cfi
chromebook_platform
ciss
coretemp
cp
cpuctl
cpufreq
cxgb cxgb: Use device_t in preference to struct device * 2021-04-12 09:32:04 -04:00
cxgbe cxgbe(4): Use ifaddr_event_ext instead of ifaddr_event for CLIP management. 2021-05-04 20:16:25 -07:00
cyapa
dc
dcons
dme
dpaa
dpms
drm2
dwc dwc: Use mii_fdt function 2021-04-27 19:07:33 +02:00
dwwdt
e1000 e1000: Rework em_msi_link interrupt filter 2021-04-27 15:29:39 -07:00
efidev Switch the EFI virtual address to a uint64_t 2021-05-01 06:01:20 +00:00
ena
esp
et
etherswitch
evdev
exca
extres
fb
fdc
fdt simple_mfd: switch to controllable locking for syscon provider. 2021-03-04 16:12:39 +01:00
ffec
filemon
firewire fwip(4): fixing kernel panic when receiving unicast packet 2021-04-15 22:56:07 +00:00
flash
ftwd
fxp
gem
glxiic
glxsb
goldfish
gpio Merge the QorIQ GPIO drivers between arm and powerpc 2021-04-05 10:35:15 -05:00
gxemul
hdmi
hid hkbd: Fix typo which disables keyboard input in kdb 2021-04-24 22:01:14 +03:00
hifn OCF: Remove support for asymmetric cryptographic operations. 2021-04-12 14:28:43 -07:00
hpt27xx hpt27xx: store the .o files directly in the tree 2021-04-12 13:47:55 -06:00
hptiop
hptmv hptmv: use .o files directly 2021-04-12 13:47:55 -06:00
hptnr hptnr: Store the .o files directly in the repo 2021-04-12 13:47:55 -06:00
hptrr hptrr: Move to using .o files 2021-04-12 13:47:55 -06:00
hwpmc arm64: Fix finding the pmc event ID 2021-04-08 07:52:21 +00:00
hyperv storvsc: fix auto-sense reporting 2021-05-07 10:17:57 +03:00
ic
ice ice(4): Update to version 0.28.1-k 2021-03-05 17:33:39 -08:00
ichiic ig4: Add PCI IDs for Intel Gemini Lake I2C controller. 2021-02-24 01:23:43 +03:00
ichsmb ichsmb: Add PCI ID for Intel Gemini Lake SMBus controller 2021-04-14 03:58:07 +03:00
ichwd
ida
iicbus
iir
imcsmb
intel pchtherm: Add IDs for CannonLake-H, CometLake and Lewisburg controllers 2021-04-14 13:15:19 +03:00
intpm
io
ioat
iommu
ipmi ipmi: support getting address from EFI 2021-04-29 05:20:58 -05:00
ips
ipw
isci
iscsi iscsi: Kick threads out of iscsi_ioctl() during unload. 2021-04-12 13:58:21 -07:00
iscsi_initiator
iser
isl
ismt
isp
ispfw
itwd
iwi
iwm
iwn iwnstats: fix build with clang and allow install under /usr/local/sbin 2021-04-20 18:07:56 +00:00
ixgbe ixgbe: Restore AIM support 2021-05-03 13:47:14 -04:00
ixl ixl(4): Add tunable to override Flow Control settings 2021-04-05 11:17:55 -07:00
jedec_dimm
jme
kbd
kbdmux
ksyms
le
led
lge
liquidio
malo
mbox
md sys/dev/md: Drop unncessary __GLOBL(mfs_root) 2021-03-30 14:59:43 +01:00
mdio
mem
mfi
mgb
mge
mii
mlx
mlx4 mlx4: remove no longer needed header 2021-03-26 15:56:02 +00:00
mlx5 mlx5: remove dependency on ifnet specifics of linux/netdevice.h 2021-04-02 10:01:30 +00:00
mlxfw
mly
mmc dwmmc: Add \n to a debug printf 2021-04-27 19:01:09 +02:00
mmcnull
mpr mpr/mps(4): Make device mapping some more robust. 2021-04-23 23:36:51 -04:00
mps mpr/mps(4): Make device mapping some more robust. 2021-04-23 23:36:51 -04:00
mpt mpt(4): Remove incorrect S/G segments limits. 2021-04-17 10:49:44 -04:00
mrsas
msk
mthca
mvs
mwl
mxge
my
nctgpio
neta
netfpga10g/nf10bmac
netmap netmap: use safer defaults for hwbuf_len 2021-04-18 13:39:15 +00:00
nfe
nfsmb
nge
nmdm
ntb
null
nvd
nvdimm
nvme Partially revert r248770. 2021-04-02 11:43:17 +03:00
nvram
nvram2env
oce
ocs_fc ocs_fc: Fix memory leak in ocs_scsi_io_alloc() 2021-04-22 17:48:37 +05:30
ofw ofw: support for a single 'port' DTS property. 2021-05-08 15:41:57 +01:00
otus
ow
pbio
pccard
pccbb
pcf
pci PCI hot-plug: use dedicated taskqueue for device attach / detach 2021-05-06 21:49:37 +03:00
pms pms(4): Limit maximum I/O size to 256KB instead of 1MB. 2021-04-16 15:50:34 -04:00
powermac_nvram
ppbus
ppc
proto
psci
pst
pty
puc
pwm usr.sbin/pwm/pwm add support for flags 2021-03-11 09:57:56 +01:00
qat qat: Make prototypes consistent with the implementation 2021-04-05 16:30:00 -04:00
qlnx qlnxr: Properly initialize the Linux device structure 2021-04-12 09:32:08 -04:00
qlxgb
qlxgbe
qlxge
quicc
ral
random
rccgpio
re
rl
rndtest
rt
rtsx
rtwn
safe OCF: Remove support for asymmetric cryptographic operations. 2021-04-12 14:28:43 -07:00
safexcel
sbni
scc
sdhci sdhci_fsl_fdt: specify base clk divisor per SoC 2021-05-07 03:48:54 +02:00
sdio
sec
sfxge
sge
siis
sis
sk
smartpqi
smbios ipmi,smbios: move smbios_walk_table to smbios.h 2021-04-07 15:05:49 -05:00
smbus
smc
snp
sound sound(4): fixing panic for INVARIANTS kernel 2021-04-24 03:27:43 +00:00
speaker
spibus
ste
stge
sume
superio
sym
syscons
tcp_log
tdfx
terasic
ti
tpm
tsec
twa
twe
tws
uart Add Apollo Lake SIO/LPSS UARTs PCI IDs 2021-05-03 14:38:52 +03:00
usb Add more USB quirks for Kingston devices. 2021-04-22 12:40:29 +02:00
veriexec
vge
viapm
viawd
videomode
virtio virtio-modern: fix PCI common read/write functions on big endian targets 2021-05-07 02:40:35 -03:00
vkbd
vmd
vmgenc
vmware pvscsi: Advertise maxio of 256k. 2021-04-22 11:23:29 -06:00
vnic
vr
vt efifb,vbefb: implement vd_fini 2021-03-30 17:47:49 +02:00
vte
watchdog
wbwd
wpi
wtap
xdma
xen xen/blkback: fix reconnection of backend 2021-05-11 15:43:42 +02:00
xilinx
xl
xz
zlib