|
@@ -2334,30 +2334,3 @@ static inline void drbd_md_flush(struct drbd_conf *mdev)
|
|
|
}
|
|
|
|
|
|
#endif
|
|
|
-
|
|
|
-/* This is defined in drivers/md/md.h as well. Should go into wait.h */
|
|
|
-#define __wait_event_lock_irq(wq, condition, lock, cmd) \
|
|
|
-do { \
|
|
|
- wait_queue_t __wait; \
|
|
|
- init_waitqueue_entry(&__wait, current); \
|
|
|
- \
|
|
|
- add_wait_queue(&wq, &__wait); \
|
|
|
- for (;;) { \
|
|
|
- set_current_state(TASK_UNINTERRUPTIBLE); \
|
|
|
- if (condition) \
|
|
|
- break; \
|
|
|
- spin_unlock_irq(&lock); \
|
|
|
- cmd; \
|
|
|
- schedule(); \
|
|
|
- spin_lock_irq(&lock); \
|
|
|
- } \
|
|
|
- current->state = TASK_RUNNING; \
|
|
|
- remove_wait_queue(&wq, &__wait); \
|
|
|
-} while (0)
|
|
|
-
|
|
|
-#define wait_event_lock_irq(wq, condition, lock, cmd) \
|
|
|
-do { \
|
|
|
- if (condition) \
|
|
|
- break; \
|
|
|
- __wait_event_lock_irq(wq, condition, lock, cmd); \
|
|
|
-} while (0)
|