OS X and smb mount failure (error code -41)

I’ve suddenly started having an issue with a couple of shares on a Windows XP Pro machine and being able to mount them with the Mac. I’ve been actively using these shares for well over a year in exactly the same fashion and it just kind of stopped, I have no idea if there’s any action performed that would have caused this.

Basically, what I got from my Mac when I attempted to mount one of these problematic share is a “connecting to server sorry the operation could not be completed because an unexpected error occurred (error code -41)”. When attempting to mount the share via command line the process hung. In searching I found the following error on my XP machine Event Logs.

Product: Windows Operating System
Event ID: 2011
Source: Srv
Version: 5.2
Message: The server’s configuration parameter “irpstacksize” is too small for the server to use a local device. Please increase the value of this parameter.

The times seemed to match my mount attempts. Recall that this only occured on some of my shares, two out of 10+ on the machine. Further research gave the following from Microsoft.

The server is configured with too many file system filter drivers (for example, Quota and anti-virus) and/or too many devices, or the irpstacksize parameter is set to less than the default of 15 stack frames. The irpstacksize represents the number of kernel modules that can store information in the input/output (I/O) Request Packet (IRP). The IRP is used to track I/O requests in the kernel.

User Action
The irpstacksize parameter can be increased by changing the registry value.

To change the registry value

Using Regedit, open the following registry key:
In the Value data box, type 15.

I didn’t have this key so I created it. Microsoft recommended increasing the binary value of this key by a value of 5 until the error stopped. Not wanting to waste time I set an initial value of 20, restarted the Server service and was immediately able to mount my problematic shares.

wtf? I certainly don’t get…