The disk layer must not inherit the D_TRACKCLOSE flag from the underlying
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 23 Jul 2007 18:59:51 +0000 (18:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 23 Jul 2007 18:59:51 +0000 (18:59 +0000)
commitdaf0c2f6676042cd3c9584679e77a1372570b05f
treeb6dc98daac0433afe1ce256c26e31d17e87651a7
parent744edb305f5e4a7282e93fc6521daf5977e01e5a
The disk layer must not inherit the D_TRACKCLOSE flag from the underlying
device as this will confuse the disk layer's tracking of opens and closes.

This bug caused the disk layer to lose track of which slices and partitions
were open when a slice or partition was opened multiple times.
sys/kern/kern_device.c
sys/kern/subr_disk.c