• C
    scsi: add new scsi-command flag for tagged commands · 125c99bc
    Christoph Hellwig 提交于
    Currently scsi piggy backs on the block layer to define the concept
    of a tagged command.  But we want to be able to have block-level host-wide
    tags assigned even for untagged commands like the initial INQUIRY, so add
    a new SCSI-level flag for commands that are tagged at the scsi level, so
    that even commands without that set can have tags assigned to them.  Note
    that this alredy is the case for the blk-mq code path, and this just lets
    the old path catch up with it.
    
    We also set this flag based upon sdev->simple_tags instead of the block
    queue flag, so that it is entirely independent of the block layer tagging,
    and thus always correct even if a driver doesn't use block level tagging
    yet.
    
    Also remove the old blk_rq_tagged; it was only used by SCSI drivers, and
    removing it forces them to look for the proper replacement.
    Signed-off-by: NChristoph Hellwig <hch@lst.de>
    Reviewed-by: NMike Christie <michaelc@cs.wisc.edu>
    Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
    Reviewed-by: NHannes Reinecke <hare@suse.de>
    125c99bc
blkdev.h 47.1 KB