summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-08-04 12:22:33 +0000
committerkib <kib@FreeBSD.org>2008-08-04 12:22:33 +0000
commitd4a4a8dd17973e7eb4dd7f8d8be4e6aea5ce232d (patch)
tree489ffedecc004de617bd40d45dc75b505c9e4d94 /sys/dev/syscons
parent016300862bc5c8bddc0bde214823a553d2c79121 (diff)
downloadFreeBSD-src-d4a4a8dd17973e7eb4dd7f8d8be4e6aea5ce232d.zip
FreeBSD-src-d4a4a8dd17973e7eb4dd7f8d8be4e6aea5ce232d.tar.gz
Lower the priority of the sleep in the syscons for "waitvt" wchan to
PZERO + 1. The sleeping process at the priority <= PZERO is counted as blocked, or, as comment states, 'disk wait'. PZERO + 1 works as well, and does not cause user confusion. Reported by: sam <samflanker at gmail com> MFC after: 1 week
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 4abf4c4..96ca0b7 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -1068,7 +1068,7 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td)
return EINVAL;
if (i == sc->cur_scp->index)
return 0;
- error = tsleep(VTY_WCHAN(sc, i), PZERO | PCATCH, "waitvt", 0);
+ error = tsleep(VTY_WCHAN(sc, i), (PZERO + 1) | PCATCH, "waitvt", 0);
return error;
case VT_GETACTIVE: /* get active vty # */
OpenPOWER on IntegriCloud