View | Details | Raw Unified | Return to bug 174684
Collapse All | Expand All

(-)tws.h (-1 lines)
Lines 248-254 Link Here
248
    struct mtx io_lock;                   /* IO  lock */
248
    struct mtx io_lock;                   /* IO  lock */
249
    struct tws_ioctl_lock ioctl_lock;     /* ioctl lock */ 
249
    struct tws_ioctl_lock ioctl_lock;     /* ioctl lock */ 
250
    u_int32_t seq_id;                     /* Sequence id */
250
    u_int32_t seq_id;                     /* Sequence id */
251
    void *chan;                           /* IOCTL req wait channel */
252
    struct tws_circular_q aen_q;          /* aen q */
251
    struct tws_circular_q aen_q;          /* aen q */
253
    struct tws_circular_q trace_q;        /* trace q */
252
    struct tws_circular_q trace_q;        /* trace q */
254
    struct tws_stats stats;               /* I/O stats */
253
    struct tws_stats stats;               /* I/O stats */
(-)tws_cam.c (-1 / +1 lines)
Lines 1297-1303 Link Here
1297
1297
1298
    tws_turn_on_interrupts(sc);
1298
    tws_turn_on_interrupts(sc);
1299
1299
1300
    wakeup_one(sc->chan);
1300
    wakeup_one(sc);
1301
}
1301
}
1302
1302
1303
1303
(-)tws_user.c (-3 / +2 lines)
Lines 103-110 Link Here
103
    do {
103
    do {
104
        req = tws_get_request(sc, TWS_REQ_TYPE_PASSTHRU);
104
        req = tws_get_request(sc, TWS_REQ_TYPE_PASSTHRU);
105
        if ( !req ) {
105
        if ( !req ) {
106
            sc->chan = (void *)sc;
106
            error = tsleep(sc,  0, "tws_sleep", TWS_IOCTL_TIMEOUT*hz);
107
            error = tsleep(sc->chan,  0, "tws_sleep", TWS_IOCTL_TIMEOUT*hz);
108
            if ( error == EWOULDBLOCK ) {
107
            if ( error == EWOULDBLOCK ) {
109
                return(ETIMEDOUT);
108
                return(ETIMEDOUT);
110
            }
109
            }
Lines 203-209 Link Here
203
    //
202
    //
204
    req->state = TWS_REQ_STATE_FREE;
203
    req->state = TWS_REQ_STATE_FREE;
205
204
206
    wakeup_one(sc->chan);
205
    wakeup_one(sc);
207
206
208
    return(error);
207
    return(error);
209
}
208
}

Return to bug 174684