• Nicholas Bellinger's avatar
    target: Re-org of core_tmr_lun_reset · d050ffb9
    Nicholas Bellinger authored
    This patch is a re-orginzation of core_tmr_lun_reset() logic to properly
    scan the active tmr_list, dev->state_task_list and qobj->qobj_list w/ the
    relivent locks held, and performing a list_move_tail onto seperate local
    scope lists before performing the full drain.
    
    This involves breaking out the code into three seperate list specific
    functions: core_tmr_drain_tmr_list(), core_tmr_drain_task_list() and
    core_tmr_drain_cmd_list().
    
    (nab: Include target: Remove non-active tasks from execute list during
          LUN_RESET patch to address original breakage)
    Reported-by: default avatarRoland Dreier <roland@purestorage.com>
    Cc: Roland Dreier <roland@purestorage.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: stable@kernel.org
    Signed-off-by: default avatarNicholas Bellinger <nab@risingtidesystems.com>
    d050ffb9
target_core_tmr.c 13.1 KB