freebsd-skq/sys/geom
kib fdd50404d1 Cylinder group bitmaps and blocks containing inode for a snapshot
file are after snaplock, while other ffs device buffers are before
snaplock in global lock order. By itself, this could cause deadlock
when bdwrite() tries to flush dirty buffers on snapshotted ffs. If,
during the flush, COW activity for snapshot needs to allocate block
and ffs_alloccg() selects the cylinder group that is being written
by bdwrite(), then kernel would panic due to recursive buffer lock
acquision.

Avoid dealing with buffers in bdwrite() that are from other side of
snaplock divisor in the lock order then the buffer being written. Add
new BOP, bop_bdwrite(), to do dirty buffer flushing for same vnode in
the bdwrite(). Default implementation, bufbdflush(), refactors the code
from bdwrite(). For ffs device buffers, specialized implementation is
used.

Reviewed by:	tegge, jeff, Russell Cattelan (cattelan xfs org, xfs changes)
Tested by:	Peter Holm
X-MFC after:	3 weeks (if ever: it changes ABI)
2007-01-23 10:01:19 +00:00
..
bde
cache
concat Implement BIO_FLUSH handling by simply passing it down to the components. 2006-10-31 21:23:51 +00:00
eli I want CPU number here. 2006-11-02 09:01:34 +00:00
gate
journal Softc may be NULL in g_journal_orphan(), so don't be surprised. 2006-12-02 09:10:29 +00:00
label
mirror Now, that we have gjournal in the tree add possibility to configure 2006-11-01 22:51:49 +00:00
nop
raid3 Now, that we have gjournal in the tree add possibility to configure 2006-11-01 22:51:49 +00:00
shsec Add BIO_FLUSH support to GSHSEC class. 2006-11-01 12:30:51 +00:00
stripe Change spaces to tabs where needed. 2006-11-01 22:16:53 +00:00
uzip
vinum
zero
geom_aes.c
geom_apple.c
geom_bsd_enc.c
geom_bsd.c
geom_ccd.c
geom_ctl.c
geom_ctl.h
geom_dev.c
geom_disk.c Add a new disk flag - DISKFLAG_CANFLUSHCACHE, which indicates that the disk 2006-10-31 21:12:43 +00:00
geom_disk.h Add a new disk flag - DISKFLAG_CANFLUSHCACHE, which indicates that the disk 2006-10-31 21:12:43 +00:00
geom_dump.c
geom_event.c
geom_fox.c
geom_gpt.c Add BIO_FLUSH support to GPT class. 2006-11-01 12:29:49 +00:00
geom_int.h
geom_io.c
geom_kern.c
geom_mbr_enc.c
geom_mbr.c
geom_pc98_enc.c
geom_pc98.c
geom_slice.c Implement BIO_FLUSH handling by simply passing it down to the components. 2006-10-31 21:23:51 +00:00
geom_slice.h
geom_subr.c
geom_sunlabel_enc.c
geom_sunlabel.c
geom_vfs.c Cylinder group bitmaps and blocks containing inode for a snapshot 2007-01-23 10:01:19 +00:00
geom_vfs.h
geom_vol_ffs.c
geom.h
notes