From: Mikulas Patocka Date: Thu, 2 Apr 2009 18:55:39 +0000 (+0100) Subject: dm: move wait queue declaration X-Git-Tag: v2.6.30-rc1~230^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b44ebeb017b8a5fe5439e1259708b68cf83a8921;p=pandora-kernel.git 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 Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed