releasing a spinlock when not at dispatch level

> bantonassov (Mr. Assov?) was the OP, no?

Not on this thread - the individual in question does not seem to be anywhere in sight on this thread, does he…

This is why I am a bit curious about Mr.Roddy’s statements…

Anton Bassov

Well I don’t believe it! THIRTY SEVEN MESSAGES and counting.

I was the first to mention the order of unlocking, kicking this whole
thing off, because I figured he was doing:

KeAcquireSpinLock (&Lock1, &OldIrql1);
KeAcquireSpinLock (&Lock2, &OldIrql2);

KeReleaseSpinLock (&Lock1, OldIrql1);
KeReleaseSpinLock (&Lock2, OldIrql2);

I think he confirmed that when he said:

@Jerry: You are of course right. Schoolboy error. Thanks.

I don’t think I ever said you COULD NOT release the spinlocks in anything
but reverse order under any circumstances. OF COURSE you can if you know
what you’re doing and you do it right. I only suggested that you can not
do the above exact sequence, and that is true if you’re not running at
DISPATCH throughout that sequence. I was just trying to help the OP solve
his problem.

Oh well … sorry for being the one to initiate all the commotion.

Jerry.

“Rules are for the guidance of wise men and the obedience of fools.”

According to Wikipedia (and you KNOW you can trust THAT), the quote is either attributable to Douglas Bader Royal Air Force fighter ace during the Second World War or Harry Day, the Royal Flying Corps First World War fighter ace.

Nice quote, and one I had not heard before.

Peter
OSR

Back in the day, this one EASILY could have turned into a reader busting
150+ one.

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@attotech.com
Sent: Thursday, August 26, 2010 9:40 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] releasing a spinlock when not at dispatch level

Well I don’t believe it! THIRTY SEVEN MESSAGES and counting.

I was the first to mention the order of unlocking, kicking this whole thing
off, because I figured he was doing:

KeAcquireSpinLock (&Lock1, &OldIrql1);
KeAcquireSpinLock (&Lock2, &OldIrql2);

KeReleaseSpinLock (&Lock1, OldIrql1);
KeReleaseSpinLock (&Lock2, OldIrql2);

I think he confirmed that when he said:

@Jerry: You are of course right. Schoolboy error. Thanks.

I don’t think I ever said you COULD NOT release the spinlocks in anything
but reverse order under any circumstances. OF COURSE you can if you know
what you’re doing and you do it right. I only suggested that you can not do
the above exact sequence, and that is true if you’re not running at DISPATCH
throughout that sequence. I was just trying to help the OP solve his
problem.

Oh well … sorry for being the one to initiate all the commotion.

Jerry. — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging
and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

It was a joke. Peter observed that even you and I were in agreement, so I
wondered about your mysterious doppleganger Mr Banton Assov.

Joke explained: Joke Fail.

Mark Roddy

On Thu, Aug 26, 2010 at 9:40 PM, wrote:

> > bantonassov (Mr. Assov?) was the OP, no?
>
> Not on this thread - the individual in question does not seem to be
> anywhere in sight on this thread, does he…
>
> This is why I am a bit curious about Mr.Roddy’s statements…
>
> Anton Bassov
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>