Subject: Re: Changing the I/O scheduler on-the-fly
To: Juan RP <juan@xtrarom.org>
From: Daniel Carosone <dan@geek.com.au>
List: tech-kern
Date: 09/07/2005 14:56:00
--X3gaHHMYHkYqP6yf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Sep 07, 2005 at 06:21:54AM +0200, Juan RP wrote:
> I'm trying to implement this feature... anyway I'm in the point that
> I don't know how to fix the current problem:
>=20
> It won't free the remaining buffers before switching to the new
> scheduler (a big problem!).
haven't looked at the patch, but what about something like:
s =3D splbio();
while (bp =3D BUFQ_GET(oldq)) {
BUFQ_PUT(newq, bp);
}
splx(s);
I mentioned another possible model on icb, too.
--
Dan.
--X3gaHHMYHkYqP6yf
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iD8DBQFDHnLgEAVxvV4N66cRAqPrAKD08W7TKyjYBUx26NESUZ3t++1GHwCgqPER
NcjVAAtLyCmgM1lva2ftBdc=
=Y2tn
-----END PGP SIGNATURE-----
--X3gaHHMYHkYqP6yf--