• Mike Snitzer's avatar
    dm: conditionally enable BIOSET_PERCPU_CACHE for dm_io bioset · cfc97abc
    Mike Snitzer authored
    A bioset's per-cpu alloc cache may have broader utility in the future
    but for now constrain it to being tightly coupled to QUEUE_FLAG_POLL.
    
    Also change dm_io_complete() to use bio_clear_polled() so that it
    properly clears all associated bio state on requeue.
    
    This commit improves DM's hipri bio polling (REQ_POLLED) perf by
    7 - 20% depending on the system.
    Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
    cfc97abc
dm.h 7.01 KB