Chinaunix首页 | 论坛 | 博客
  • 博客访问: 82822
  • 博文数量: 28
  • 博客积分: 1430
  • 博客等级: 上尉
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-30 23:34
文章分类

全部博文(28)

文章存档

2011年(2)

2006年(26)

我的朋友

分类: LINUX

2006-06-30 23:39:35

Earlier Problems and Current Myths


Tuesday, September 3, 2002 12:14:08 PM

Some of the Linux SCSI subsystem's bad reputation comes from legacy kernel issues. Way back when, there were a number of features that the SCSI subsystem required that weren't built into the kernel already, and so a lot of supporting structure had to be built within the subsystem rather than being farmed into the core kernel, or additional modules.

More subsystems began to need these features and so the kernel itself adopted many of them. However, the SCSI subsystem went through a series of primary maintainers, who no doubt spent much of their time getting up to speed on where everything stood before they found themselves having to move on due to lack of time or other issues. Not only that, but these maintainers were also busy trying to add new functionality to the subsystem and keeping it working with the current course of kernel development.

Once a longer-term maintainer took over the SCSI subsystem there was finally a chance to start a real strategy of removing the unneeded bulk. This problem has already been partially addressed in the 2.4.x kernel series, and more has been done for the 2.5.x series, but even when 2.6.x comes out there will still be more to do in this area.

There's just too many other issues to deal with as well, and of course if you deal with computers, you know that removing a piece of code that's "just harmlessly duplicating another function somewhere" often doesn't always prove to be harmless.

There is also a lot of redundancy left over in the Linux kernel SCSI subsystem's command structure itself, such as fields in one portion of the command structure that don't exist in others, because items that were phased out never fully got removed.

Another area that the SCSI team hears a lot about is queuing. Many programmers apparently believe that the SCSI subsystem handles its own queuing internally, and that this is an area that requires work, but in fact this is not the case.

Perhaps the biggest myth is that the entire Linux kernel SCSI subsystem needs to be rewritten. This is not entirely true. Rewriting small sections, and incrementally merging and changing parts until all of the problems are finally fixed can deal with most of the issues.

阅读(880) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~