• Mikulas Patocka's avatar
    dm: remove dm_request loop · 92c63902
    Mikulas Patocka authored
    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: default avatarMikulas Patocka <mpatocka@redhat.com>
    Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
    92c63902
dm.c 36.4 KB