cregit-Linux how code gets into the kernel

Release 4.12 include/scsi/scsi_tcq.h

Directory: include/scsi
#ifndef _SCSI_SCSI_TCQ_H

#define _SCSI_SCSI_TCQ_H

#include <linux/blkdev.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>


#define SCSI_NO_TAG	(-1)    
/* identify no tag in use */


#ifdef CONFIG_BLOCK
/**
 * scsi_host_find_tag - find the tagged command by host
 * @shost:      pointer to scsi_host
 * @tag:        tag
 *
 * Note: for devices using multiple hardware queues tag must have been
 * generated by blk_mq_unique_tag().
 **/

static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost, int tag) { struct request *req = NULL; if (tag == SCSI_NO_TAG) return NULL; if (shost_use_blk_mq(shost)) { u16 hwq = blk_mq_unique_tag_to_hwq(tag); if (hwq < shost->tag_set.nr_hw_queues) { req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq], blk_mq_unique_tag_to_tag(tag)); } } else { req = blk_map_queue_find_tag(shost->bqt, tag); } if (!req) return NULL; return req->special; }

Contributors

PersonTokensPropCommitsCommitProp
Christoph Hellwig7771.30%337.50%
Bart Van Assche1513.89%112.50%
David C Somayajulu76.48%112.50%
James Bottomley54.63%112.50%
Jens Axboe32.78%112.50%
Shaohua Li10.93%112.50%
Total108100.00%8100.00%

#endif /* CONFIG_BLOCK */ #endif /* _SCSI_SCSI_TCQ_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Christoph Hellwig10171.63%333.33%
Bart Van Assche1510.64%111.11%
James Bottomley85.67%111.11%
David C Somayajulu74.96%111.11%
David Howells64.26%111.11%
Jens Axboe32.13%111.11%
Shaohua Li10.71%111.11%
Total141100.00%9100.00%
Directory: include/scsi
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.