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
This commit is contained in:
Konstantin Belousov 2008-08-04 12:22:33 +00:00
parent 494c177e81
commit 66548e0a2f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181286

View File

@ -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 # */