]> git.baikalelectronics.ru Git - kernel.git/commit
dm: move pending queue wake_up end_io_acct
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 13 Nov 2008 23:39:10 +0000 (23:39 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Nov 2008 23:39:10 +0000 (23:39 +0000)
commit2745e48e225c5489359630928fc2bae312f57cfa
tree82afcee59db83104d31848e2304eb51baeee3aa4
parente61b8b1c0fa78a8ad0c294531fdafc6974c753e6
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>
drivers/md/dm.c