| .. | .. |
|---|
| 345 | 345 | spin_unlock_irq (&epdata->dev->lock); |
|---|
| 346 | 346 | |
|---|
| 347 | 347 | if (likely (value == 0)) { |
|---|
| 348 | | - value = wait_event_interruptible (done.wait, done.done); |
|---|
| 348 | + value = swait_event_interruptible_exclusive(done.wait, done.done); |
|---|
| 349 | 349 | if (value != 0) { |
|---|
| 350 | 350 | spin_lock_irq (&epdata->dev->lock); |
|---|
| 351 | 351 | if (likely (epdata->ep != NULL)) { |
|---|
| .. | .. |
|---|
| 354 | 354 | usb_ep_dequeue (epdata->ep, epdata->req); |
|---|
| 355 | 355 | spin_unlock_irq (&epdata->dev->lock); |
|---|
| 356 | 356 | |
|---|
| 357 | | - wait_event (done.wait, done.done); |
|---|
| 357 | + swait_event_exclusive(done.wait, done.done); |
|---|
| 358 | 358 | if (epdata->status == -ECONNRESET) |
|---|
| 359 | 359 | epdata->status = -EINTR; |
|---|
| 360 | 360 | } else { |
|---|