Mikulas Patocka b44ebeb017 dm: move wait queue declaration
Move wait queue declaration and unplug to dm_wait_for_completion.

The purpose is to minimize duplicate code in the further patches.

The patch reorders functions a little bit. It doesn't change any
functionality. For proper non-deadlock operation, add_wait_queue must
happen before set_current_state(interruptible) and before the test for
!atomic_read(&md->pending).

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2009-04-02 19:55:39 +01:00
..
2006-01-01 22:21:50 +01:00
2009-04-02 19:55:28 +01:00
2009-04-02 19:55:24 +01:00
2009-01-06 03:05:12 +00:00
2009-04-02 19:55:28 +01:00
2007-10-20 02:01:26 +01:00
2009-04-02 19:55:39 +01:00
2009-04-02 19:55:28 +01:00
2009-03-04 00:57:25 -07:00
2008-02-06 10:41:18 -08:00
2009-02-25 13:18:47 +11:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2007-10-29 07:41:32 -07:00
2005-04-16 15:20:36 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2009-02-25 13:18:47 +11:00
2005-04-16 15:20:36 -07:00