Date: Thu, 29 Jun 2000 07:18:37 +0200 (CEST) From: Marius Bendiksen <mbendiks@eunet.no> To: freebsd-arch@freebsd.org Subject: Alterations to vops Message-ID: <Pine.BSF.4.05.10006290706280.21288-100000@login-1.eunet.no>
next in thread | raw e-mail | index | archive | help
After having discussed the issue of find(1) and similar processes
hogging CPU due to being very un-nice when stuck in these waiting
on BIO, I have, together with Brian Feldman, who first pointed it
out as a problem, come up with a suggested solution.
First off comes adding "off_t *offs" to the relevant vops.
This value would be initialized to VNOVAL by the caller, and then
be updated by the vops in subsequent calls.
Secondly, a new error value, ERETRY, would be added, which
would signify that the vop has not completed and should rather be
reissued. The libraries would do this transparently to the users.
This value is proposed rather than EAGAIN as there is no resource
shortage at all.
This mechanism would also simplify the directory scanning in UFS,
at least somewhat.
Feedback?
---
Marius Bendiksen
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10006290706280.21288-100000>
