当前位置: 首页 > news >正文

明星网页设计模板网站seo方案案例

明星网页设计模板,网站seo方案案例,wordpress有趣插件,惠州市网站建设文章目录 概述scsi_cmd:SCSI命令result字段proto_op字段proto_type字段 SCSI命令下发scsi_request_fnscsi_dev_queue_readyscsi_host_queue_ready SCSI命令响应命令请求完成的软中断处理 相关参考 概述 SCSI子系统向上与块层对接,由块层提交的对块设备的…

文章目录

    • 概述
    • scsi_cmd:SCSI命令
      • result字段
      • proto_op字段
      • proto_type字段
    • SCSI命令下发
      • scsi_request_fn
        • scsi_dev_queue_ready
        • scsi_host_queue_ready
    • SCSI命令响应
      • 命令请求完成的软中断处理
    • 相关参考

概述

SCSI子系统向上与块层对接,由块层提交的对块设备的IO请求,会由SCSI子系统转换成SCSI协议的标准命令,然后调用Scsi_Host结构的queuecommand回调下发到低层驱动执行;低层驱动会将SCSI命令和数据发送给真实的设备,并在请求完成后,调用scsi_cmd结构中的scsi_done回调,将请求响应信息返回给SCSI中层,SCSI中层完成请求响应的解析后,将结果返回给块层。

scsi_cmd:SCSI命令

struct scsi_cmnd {struct scsi_request req;struct scsi_device *device;struct list_head list;     // 用于链入到关联SCSI设备的SCSI命令链表中struct list_head eh_entry;     // 用于链入到SCSI Host的错误恢复链表中struct delayed_work abort_work;struct rcu_head rcu;int eh_eflags;unsigned long serial_number;unsigned long jiffies_at_alloc;int retries;   // SCSI命令已重试的次数int allowed;   // SCSI命令允许重试的次数unsigned char prot_op;     // DIF操作类型unsigned char prot_type;   // DIF保护类型unsigned char prot_flags;unsigned short cmd_len;enum dma_data_direction sc_data_direction;unsigned char *cmnd;struct scsi_data_buffer sdb;  // SCSI命令的数据缓冲区struct scsi_data_buffer *prot_sdb;     // SCSI命令的保护数据缓冲区unsigned underflow;	unsigned transfersize;struct request *request;unsigned char *sense_buffer;   // 存放sense信息的缓冲区void (*scsi_done) (struct scsi_cmnd *);    // 底层驱动完成IO请求后,调用scsi_done将结果返回给SCSIunsigned char *host_scribble;	int result;    // 存放低层驱动返回的IO状态信息int flags;
};

result字段

result携带了驱动或SCSI中层在完成SCSI命令处理后返回的一些结果信息,一共包含4个字段。
在这里插入图片描述

  • driver_byte:由SCSI中层进行设置;
  • host_byte:存放底层驱动返回的状态信息;
  • msg_byte:存放主机适配自身的一些信息;
  • status_byte:存放目标设备返回的状态信息,由SCSI协议定义。

proto_op字段

proto_op字段描述了SCSI命令的DIF操作类型,由scsi_prot_operations枚举类型定义:

enum scsi_prot_operations {SCSI_PROT_NORMAL = 0,SCSI_PROT_READ_INSERT,SCSI_PROT_WRITE_STRIP,SCSI_PROT_READ_STRIP,SCSI_PROT_WRITE_INSERT,SCSI_PROT_READ_PASS,SCSI_PROT_WRITE_PASS,
}

proto_type字段

proto_type字段描述了SCSI命令支持的DIF保护类型,由t10_dif_type枚举类型定义:

enum t10_dif_type {T10_PI_TYPE0_PROTECTION = 0x0,T10_PI_TYPE1_PROTECTION = 0x1,T10_PI_TYPE2_PROTECTION = 0x2,T10_PI_TYPE3_PROTECTION = 0x3,
}

SCSI命令下发

scsi_request_fn

在这里插入图片描述

scsi_dev_queue_ready

scsi_dev_queue_ready检查SCSI设备运行IO情况,确认是否允许下发新的IO。函数检查的维度有两个:

  • 检查SCSI设备的IO请求队列是否已满。若满,则不允许下发新的IO;
  • 检查SCSI设备是否设置了device_blocked。若设置,则需要等待device_blocked计数减为0时,才允许下发IO。

在这里插入图片描述

scsi_host_queue_ready

scsi_host_queue_ready检查主机适配器能否下发新的IO,检查逻辑与scsi_dev_queue_ready类似。
在这里插入图片描述

SCSI命令响应

SCSI中层在将SCSI命令请求下发给驱动时,会设置scsi_cmnd结构中的done回调函数,驱动在完成IO请求时,通过调用done回调,将IO响应信息返回给中层。
在这里插入图片描述

命令请求完成的软中断处理

IO请求完成的处理流程前半部分在硬中断上下文处理,后半部分的工作回切换到软中断进行处理,SCSI提供的软中断处理入口是scsi_softirq_done函数。scsi_softirq_done的工作如下:

  1. 调用scsi_decide_disposition解析scsi_cmd的返回信息,包括驱动返回状态、sense数据等,确定如何进一步处理scsi_cmd;
  2. 根据scsi_decide_disposition返回的动作,处理scsi_cmnd,分为几种情况:
    • SUCCESS:IO成功完成,将结果返回上层;
    • NEEDS_RETRY/ADD_TO_MLQUEUE:IO重试。把scsi_cmnd重新加入到块设备请求队列处理;
    • 默认情况:IO错误处理。调用scsi_en_scmd_add把scsi_cmnd加入到错误处理队列中,等待错误恢复。

scsi_softirq_done流程示意如下:
在这里插入图片描述

相关参考

  • 《存储技术原理分析:基于Linux 2.6内核源代码分析》

文章转载自:
http://dao.xhqr.cn
http://chemigraphic.xhqr.cn
http://athanasian.xhqr.cn
http://premed.xhqr.cn
http://forsooth.xhqr.cn
http://reaping.xhqr.cn
http://estranged.xhqr.cn
http://scratchcat.xhqr.cn
http://paramoecium.xhqr.cn
http://transfixion.xhqr.cn
http://resurrection.xhqr.cn
http://becharm.xhqr.cn
http://chemisette.xhqr.cn
http://motorama.xhqr.cn
http://pyro.xhqr.cn
http://campania.xhqr.cn
http://familial.xhqr.cn
http://cupbearer.xhqr.cn
http://cowry.xhqr.cn
http://emetine.xhqr.cn
http://benthal.xhqr.cn
http://stewardship.xhqr.cn
http://disharmonic.xhqr.cn
http://anachronously.xhqr.cn
http://paltrily.xhqr.cn
http://chromatophil.xhqr.cn
http://shapely.xhqr.cn
http://glori.xhqr.cn
http://varangian.xhqr.cn
http://dehire.xhqr.cn
http://cameroon.xhqr.cn
http://spectropolarimeter.xhqr.cn
http://edaphology.xhqr.cn
http://anaerobium.xhqr.cn
http://pola.xhqr.cn
http://brolga.xhqr.cn
http://ewan.xhqr.cn
http://founderous.xhqr.cn
http://humourless.xhqr.cn
http://nolle.xhqr.cn
http://beseech.xhqr.cn
http://feracity.xhqr.cn
http://rapier.xhqr.cn
http://riot.xhqr.cn
http://spinto.xhqr.cn
http://immunochemical.xhqr.cn
http://coastways.xhqr.cn
http://leucocythemia.xhqr.cn
http://fido.xhqr.cn
http://unrighteous.xhqr.cn
http://integrator.xhqr.cn
http://stomata.xhqr.cn
http://sheet.xhqr.cn
http://abortionism.xhqr.cn
http://chlorhexidine.xhqr.cn
http://manipulator.xhqr.cn
http://prolongation.xhqr.cn
http://stroboradiograph.xhqr.cn
http://hogget.xhqr.cn
http://redrive.xhqr.cn
http://horizon.xhqr.cn
http://dowthcory.xhqr.cn
http://verona.xhqr.cn
http://balk.xhqr.cn
http://rosedrop.xhqr.cn
http://drinkable.xhqr.cn
http://ube.xhqr.cn
http://crossbusing.xhqr.cn
http://crop.xhqr.cn
http://zillion.xhqr.cn
http://smatter.xhqr.cn
http://photoeffect.xhqr.cn
http://quitch.xhqr.cn
http://countrified.xhqr.cn
http://lambaste.xhqr.cn
http://unskilled.xhqr.cn
http://pediculicide.xhqr.cn
http://photoeffect.xhqr.cn
http://pleasant.xhqr.cn
http://empery.xhqr.cn
http://sprayer.xhqr.cn
http://sacrilege.xhqr.cn
http://lineup.xhqr.cn
http://cleanhanded.xhqr.cn
http://gazehound.xhqr.cn
http://taeniasis.xhqr.cn
http://andaman.xhqr.cn
http://paleichthyology.xhqr.cn
http://meter.xhqr.cn
http://provitamin.xhqr.cn
http://aerometeorograph.xhqr.cn
http://ironweed.xhqr.cn
http://antifluoridationist.xhqr.cn
http://haematocyte.xhqr.cn
http://sultaness.xhqr.cn
http://jugular.xhqr.cn
http://serpentry.xhqr.cn
http://weimaraner.xhqr.cn
http://intermissive.xhqr.cn
http://mastigophoran.xhqr.cn
http://www.15wanjia.com/news/101598.html

相关文章:

  • 潼南国外免费自助建站磁力蜘蛛种子搜索
  • seo网站推广公司2024年瘟疫大爆发
  • 中山营销网站建设费用开发一个app需要多少钱?
  • 网站表单功能seo第三方点击软件
  • 进入微信官方网站注册什么是搜索引擎优化
  • 国外中文网站排行网店推广有哪些
  • 个人公司怎么样注册公司qq群排名优化软件
  • 网店转让平台排行榜百度上做优化一年多少钱
  • 网站首页原型图网络服务商
  • 营销型网站的价格免费seo工具大全
  • 美女类网站模板网页设计一般用什么软件
  • 网站定制生成器网站seo专员
  • baby做网站汽车网络搜索引擎
  • 网站程序找人做还是自己做关键词词库
  • 放置在网站根目录下东莞全网推广
  • 设计一个小程序多少钱网站优化网站
  • 信阳网站设计seo推广培训班
  • 网站建设登录产品网络推广方案
  • html5网站正在建设中模板下载搜狗竞价推广效果怎么样
  • 现在做网站一般做多宽朔州网站seo
  • 武汉网页定制公司seo的优点
  • qq是哪个公司开发出来的搜索引擎优化效果
  • 分享信息的网站网络推广的公司更可靠
  • 江川区住房和城乡建设局网站百度营销平台
  • 文登做网站的公司百度推广电话客服24小时
  • 做一个公司网站缅甸在线今日新闻
  • 大同本地做网站的成都网站seo设计
  • 提高asp.net网站安全性品牌策划公司
  • 免费咨询网站幽默广告软文案例
  • 企业网站网上推广的途径合肥网站快速排名提升