]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Stability hack. Under Solaris when KM_SLEEP is set kmem_cache_alloc()
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Fri, 9 May 2008 21:21:33 +0000 (21:21 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Fri, 9 May 2008 21:21:33 +0000 (21:21 +0000)
commit5c2bb9b2c314bcac7579b13a99127eb7050a7b90
tree6edcab31dbab47846d89fe03349c8a5c0a2b25c3
parent04a479f7066ccdaa23a6546955303b172f4a6909
Stability hack.  Under Solaris when KM_SLEEP is set kmem_cache_alloc()
may not fail.  To get this behavior I'd added a retry to the shim layer
even though it is abusive to the VM, at least it should prevent the crash.
Additionally I added a proc counter so I can easily check how often this
is happening.  It should be fairly rare, but likely will get worse and
worse the longer the machine has been up.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@104 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
include/sys/kmem.h
modules/spl/spl-kmem.c
modules/spl/spl-proc.c