Release 4.7 include/scsi/scsi_tcq.h
#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
| Person | Tokens | Prop | Commits | CommitProp |
christoph hellwig | christoph hellwig | 77 | 71.30% | 3 | 37.50% |
bart van assche | bart van assche | 15 | 13.89% | 1 | 12.50% |
david somayajulu | david somayajulu | 7 | 6.48% | 1 | 12.50% |
jens axboe | jens axboe | 5 | 4.63% | 1 | 12.50% |
james bottomley | james bottomley | 3 | 2.78% | 1 | 12.50% |
shaohua li | shaohua li | 1 | 0.93% | 1 | 12.50% |
| Total | 108 | 100.00% | 8 | 100.00% |
#endif /* CONFIG_BLOCK */
#endif /* _SCSI_SCSI_TCQ_H */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
christoph hellwig | christoph hellwig | 101 | 71.63% | 3 | 33.33% |
bart van assche | bart van assche | 15 | 10.64% | 1 | 11.11% |
david somayajulu | david somayajulu | 7 | 4.96% | 1 | 11.11% |
david howells | david howells | 6 | 4.26% | 1 | 11.11% |
james bottomley | james bottomley | 6 | 4.26% | 1 | 11.11% |
jens axboe | jens axboe | 5 | 3.55% | 1 | 11.11% |
shaohua li | shaohua li | 1 | 0.71% | 1 | 11.11% |
| Total | 141 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.