kernel -- ccd: Concatenated disk MPLOCK rework.
authorVenkatesh Srinivas <vsrinivas@ops101.org>
Wed, 2 Jan 2013 05:36:25 +0000 (00:36 -0500)
committerSascha Wildner <saw@online.de>
Wed, 2 Jan 2013 09:53:30 +0000 (10:53 +0100)
commitbf0d11829f31525ea6c0dbd5a7cfa25053a93766
treedfb1d890d840a67b4659c7553b978537d8fb1caa
parentc0dd70d3c880b61c87058b8d21cc88cdf19f4377
kernel -- ccd: Concatenated disk MPLOCK rework.

* Remove freelist of ccdbuf structures; kmalloc is good enough for them,
  removes a global list.

* Rework ccdlock/ccdunlock to use a real lockmgr lock rather than a
  hand-rolled "lock" in the flags field.

* Mark ccd disk D_MPSAFE; calls disk strategy routines without the MPLOCK.

* Remove mplock from ccdiodone biodone callback; use ccdlock() on the
  softcontroller instead.

* Remove unneeded critical section around ccdstart and in ccdioctl.

* Remove mplock2.h.

* Remove cb_freenext linkage from ccd buffers.
sys/dev/disk/ccd/ccd.c
sys/sys/ccdvar.h