• Nicholas Bellinger's avatar
    target: Add compare_and_write_post() completion callback fall through · a2890087
    Nicholas Bellinger authored
    This patch changes target_complete_ok_work() to fall through
    after calling the se_cmd->transport_complete_callback() ->
    compare_and_write_post() callback, by keying off the existance
    of SCF_COMPARE_AND_WRITE_POST.
    
    This is necessary because once SCF_COMPARE_AND_WRITE_POST has
    been set by compare_and_write_post(), the SCSI response needs
    to be sent via TFO->queue_status().
    
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Hannes Reinecke <hare@suse.de>
    Cc: Martin Petersen <martin.petersen@oracle.com>
    Cc: Chris Mason <chris.mason@fusionio.com>
    Cc: James Bottomley <JBottomley@Parallels.com>
    Cc: Nicholas Bellinger <nab@linux-iscsi.org>
    Signed-off-by: default avatarNicholas Bellinger <nab@daterainc.com>
    a2890087
target_core_sbc.c 24.2 KB