dm: process requeue in dm_wq_work
commit2761e95fe40ca0d01864310fa4d488d7c5e34e18
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 22 Jun 2009 09:12:18 +0000 (22 10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:18 +0000 (22 10:12 +0100)
treea49245e8ebb022605c5d1ce04948cf4a7f9a5c3b
parent531fe96364f30879753d46c1f52ab839e12d2e5d
dm: process requeue in dm_wq_work

If barrier request was returned with DM_ENDIO_REQUEUE,
requeue it in dm_wq_work instead of dec_pending.

This allows us to correctly handle a situation when some targets
are asking for a requeue and other targets signal an error.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c