WSLEEP
{ SF(WSLEEP), "someone wants to write" },
if (stp->sd_flag & WSLEEP) {
stp->sd_flag &= ~WSLEEP;
*wakeups = WSLEEP;
*wakeups = WSLEEP;
*wakeups = WSLEEP;
*wakeups = WSLEEP;
*wakeups = RSLEEP | WSLEEP;
if (stp->sd_flag & WSLEEP) {
stp->sd_flag &= ~WSLEEP;
stp->sd_wakeq |= WSLEEP;
if (stp->sd_flag & WSLEEP) {
stp->sd_flag &= ~WSLEEP;
ASSERT((wakeups & ~(RSLEEP|WSLEEP)) == 0);
ASSERT((wakeups & ~(RSLEEP|WSLEEP)) == 0);
if (wakeups & WSLEEP) {
stp->sd_flag &= ~WSLEEP;
stp->sd_flag &= ~(WSLEEP|RSLEEP);
if (stp->sd_flag & WSLEEP) {
stp->sd_flag &= ~WSLEEP;
stp->sd_flag |= WSLEEP;
stp->sd_flag &= ~WSLEEP;
slpflg = WSLEEP;