Solved

Why HWStartIO method is called synchronously?

Posted on 2013-01-24
1
528 Views
Last Modified: 2013-01-25
Hi,

With Storport driver,  the routine HWBuildIO is called  wihtout synchronization i.e. without taking any locks. Hence this routine gets invoked paralelly for multiple commands.

However the routine HWStartIO is only called asynchronously. I.e. A spin lock is acquired by storport before calling this routine and is it released only after completing the execution of this routine. I understood from an article that this is done to avoid the interrupts taking the control away from this routine while this routine is executing.

My question is why it is important not to allow the control to be preempted by the ISR while the HWStartIO is executing? What consequences it will have to allow the control to be preempted in the middle of StartIO? Can i get a practical example anywhere?
0
Comment
Question by:raj_ksrt
1 Comment
 
LVL 47

Accepted Solution

by:
dlethe earned 500 total points
ID: 38817117
I'll give you a good practical example.  Yesterday I was writing code on a win2k12 host that had 400+ disk drives attached, with multipathing and multiple initiators. Maybe 1200 targets.
Just imagine what would happen if they all tried to do all of their I/O at the same time. HWStartIO is designed for one I/O request, as it gets called once per I/O request.

It would simply be unworkable to allow multiple I/O requests to be in various phases of operation at the same time using multiple programs/threads.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now