Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Why HWStartIO method is called synchronously?

Posted on 2013-01-24
1
Medium Priority
?
556 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 47

Accepted Solution

by:
David earned 1500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
New style of hardware planning for Microsoft Exchange server.
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). …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

636 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