diff options
author | 2009-04-02 19:55:39 +0100 | |
---|---|---|
committer | 2009-04-02 19:55:39 +0100 | |
commit | b44ebeb017b8a5fe5439e1259708b68cf83a8921 (patch) | |
tree | ea138d44aa80302002b3e67cd6049a18c2302734 /kernel/mutex.c | |
parent | dm: merge pushback and deferred bio lists (diff) | |
download | linux-dev-b44ebeb017b8a5fe5439e1259708b68cf83a8921.tar.xz linux-dev-b44ebeb017b8a5fe5439e1259708b68cf83a8921.zip |
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>
Diffstat (limited to 'kernel/mutex.c')
0 files changed, 0 insertions, 0 deletions