freebsd-dev/sys
Alan Somers de65823b48 Fix assertion when ZFS fails to open certain devices
"panic: vdev_geom_close_locked: cp->private is NULL"
This panic will result if ZFS fails to open a device due to either of the
following reasons:

1) The device's sector size is greater than 8KB.
2) ZFS wants to open the device RW, but it can't be opened for writing.

The solution is to change the initialization order to ensure that the
assertion will be satisfied.

PR:		221066
Reported by:	David NewHamlet <wheelcomplex@gmail.com>
Reviewed by:	avg
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D13278
2017-11-30 15:28:29 +00:00
..
amd64 It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
arm It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
arm64 Fix the direction we move the instruction to retuirn to after exiting the 2017-11-28 16:26:56 +00:00
bsm sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
cam sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00
cddl Fix assertion when ZFS fails to open certain devices 2017-11-30 15:28:29 +00:00
compat Disable vim syntax highlighting. 2017-11-28 18:23:17 +00:00
conf Avoid emitting a PT_INTERP section for powerpc64 kernels and arrange for 2017-11-25 21:45:51 +00:00
contrib Switch the default firmware for npe(4) from the QOS_VLAN one to the 2017-11-24 15:48:17 +00:00
crypto sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ddb Make the ddb(4) "set" command list variables when called without parameters. 2017-11-30 12:22:15 +00:00
dev Fix typo 2017-11-30 07:24:33 +00:00
dts dts: arm64: allwinner: Remove unused dts for pine64 2017-11-18 21:39:54 +00:00
fs r326394 is calling malloc with M_WAITOK under a lock, revert for now 2017-11-30 14:06:54 +00:00
gdb sys/gdb: further adoption of SPDX licensing ID tags. 2017-11-27 15:16:59 +00:00
geom sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
gnu Update our copy of DTS from the ones from Linux 4.14 2017-11-18 15:46:48 +00:00
i386 It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
isa sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
kern The sched_add() function is not only used when the thread is initially 2017-11-29 23:28:40 +00:00
kgssapi sys/kgssapi: general adoption of SPDX licensing ID tags. 2017-11-27 15:49:00 +00:00
libkern sys/kern: adoption of SPDX licensing ID tags. 2017-11-27 15:20:12 +00:00
mips It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
modules It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
net Properly define the VLAN_XXX() function macros to avoid miscompilation when 2017-11-30 11:35:22 +00:00
net80211 sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netgraph sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netinet sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netinet6 sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netipsec sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netpfil SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
netsmb sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfs sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfsclient sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfsserver sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nlm sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
ofed sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
opencrypto crypto(9) is called from ipsec in CRYPTO_F_CBIFSYNC mode. This is working 2017-11-03 10:27:22 +00:00
powerpc It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
riscv Don't let cpu_set_syscall_retval() clobber exec_setregs(). 2017-11-24 07:35:08 +00:00
rpc sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
security sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sparc64 SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
sys SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
teken sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
tests
tools sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
ufs sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
vm Verify the object/vnode association after vget() in vm_pageout_clean(). 2017-11-29 19:47:09 +00:00
x86 SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
xdr sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
xen sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
Makefile Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00