]> git.baikalelectronics.ru Git - kernel.git/commit
dm: remove dm_request loop
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 8 Apr 2009 23:27:15 +0000 (00:27 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 8 Apr 2009 23:27:15 +0000 (00:27 +0100)
commit68bbe381bf1c9cc1441cab4cda30a92483fcbc43
treeeee01e9394b09fb3929fd4f3682815e91b87c764
parentc68087ad3f2a579fc0a240cfacf7b60299841c0e
dm: remove dm_request loop

Remove queue_io return value and a loop in dm_request.

IO may be submitted to a worker thread with queue_io().  queue_io() sets
DMF_QUEUE_IO_TO_THREAD so that all further IO is queued for the thread. When
the thread finishes its work, it clears DMF_QUEUE_IO_TO_THREAD and from this
point on, requests are submitted from dm_request again. This will be used
for processing barriers.

Remove the loop in dm_request. queue_io() can submit I/Os to the worker thread
even if DMF_QUEUE_IO_TO_THREAD was not set.

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