freebsd-nq/sys/ufs/ffs
Warner Losh 3cf5dd8401 Use buf to send speedup
It turns out there's a problem with using g_io to send the speedup. It leads to
a race when there's a resource shortage when a disk fails.

Instead, send BIO_SPEEDUP via struct buf. This is pretty straight forward,
except we need to transfer the bio_flags from b_ioflags for BIO_SPEEDUP commands
in g_vfs_strategy.

Reviewed by: kirk, chs
Differential Revision: https://reviews.freebsd.org/D23117
2020-01-17 01:16:19 +00:00
..
ffs_alloc.c ufs: add a setter for inode i_flag field 2020-01-13 02:31:51 +00:00
ffs_balloc.c ufs: add a setter for inode i_flag field 2020-01-13 02:31:51 +00:00
ffs_extern.h Update ffs_getcg() function to accept a flags parameter to be passed 2019-10-04 05:28:36 +00:00
ffs_inode.c ufs: add a setter for inode i_flag field 2020-01-13 02:31:51 +00:00
ffs_rawread.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
ffs_snapshot.c ufs: add a setter for inode i_flag field 2020-01-13 02:31:51 +00:00
ffs_softdep.c Use buf to send speedup 2020-01-17 01:16:19 +00:00
ffs_subr.c ufs: Remove redundant brelse() after r294954 2019-09-06 08:08:33 +00:00
ffs_suspend.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
ffs_tables.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ffs_vfsops.c When sync'ing a mount point, the mount point's vnodes were scanned 2020-01-14 22:27:46 +00:00
ffs_vnops.c ufs: relax an overzealous assert added in r356671 2020-01-13 14:33:51 +00:00
fs.h Clarify comment that describes how the FS_METACKHASH is managed. 2019-08-13 20:56:44 +00:00
softdep.h Convert use of UFS-specific #ifdef DEBUG to DIAGNOSTIC or INVARIANTS 2019-05-28 16:32:04 +00:00