commit | d221d2e77696e70e94b13989ea15db2ba5b34f8e | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <mpatocka@redhat.com> | Thu Nov 13 23:39:10 2008 +0000 |
committer | Alasdair G Kergon <agk@redhat.com> | Thu Nov 13 23:39:10 2008 +0000 |
tree | 82afcee59db83104d31848e2304eb51baeee3aa4 | |
parent | 14e98c5ca8bed825f65cbf11cb0ffd2c09dac2f4 [diff] |
dm: move pending queue wake_up end_io_acct This doesn't fix any bug, just moves wake_up immediately after decrementing md->pending, for better code readability. It must be clear to anyone manipulating md->pending to wake up the queue if md->pending reaches zero, so move the wakeup as close to the decrementing as possible. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>