Do not drop Giant around the poll method yet, we're not ready for it.

This commit is contained in:
phk 2004-04-12 21:52:52 +00:00
parent 1c69471908
commit 6466b88811

View File

@ -382,9 +382,9 @@ spec_poll(ap)
("spec_poll() on un-referenced dev_t (%s)", devtoname(dev)));
cdevsw_ref(dsw);
if (!(dsw->d_flags & D_NEEDGIANT)) {
DROP_GIANT();
/* XXX: not yet DROP_GIANT(); */
error = dsw->d_poll(dev, ap->a_events, ap->a_td);
PICKUP_GIANT();
/* XXX: not yet PICKUP_GIANT(); */
} else
error = dsw->d_poll(dev, ap->a_events, ap->a_td);
cdevsw_rel(dsw);