summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-21 21:06:04 +0000
committerbde <bde@FreeBSD.org>1998-06-21 21:06:04 +0000
commitc84e4b475904075d895db8d4dccbf79a1a55fc8a (patch)
tree9ad91842388bf042179b6da7ba8189f3e6be3f0c /etc/rc
parentb4385f0cee7fb50cf56462c51385eb14c3242b1a (diff)
downloadFreeBSD-src-c84e4b475904075d895db8d4dccbf79a1a55fc8a.zip
FreeBSD-src-c84e4b475904075d895db8d4dccbf79a1a55fc8a.tar.gz
Fixed (?) races in mark_buffer_dirty(). We abuse the buffer cache
by hacking on locked buffers without getblk()ing them, and we didn't even use splbio() to prevent biodone() changing the buffer underneath use when a write completes. I think there was no problem in practice on i386's because the operations on b_flags and numdirtybufs happen to be atomic. We still depend on biodone()'s operations on b_flags not interfering with ours. I think there is only interference for B_ERROR, and this is harmless because errors for async writes are ignored anyway. Don't use mark_buffer_dirty() except for superblock-related metadata. It was used in just one case where ordinary BSD buffering is more natural.
Diffstat (limited to 'etc/rc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud