aboutsummaryrefslogtreecommitdiffstats
path: root/module/splat/splat-kmem.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-22 09:58:48 -0800
committerBrian Behlendorf <[email protected]>2009-01-22 09:58:48 -0800
commit3f4126739dc5c2a0b10ec1f6143ec43028755aa4 (patch)
treebf411d6842678078e570dee99fdf2146c8e62b87 /module/splat/splat-kmem.c
parent511176398c81136786d5f6a955dcc6509f98f573 (diff)
Sleep uninteruptibly, waking up early may result in a crash
Diffstat (limited to 'module/splat/splat-kmem.c')
-rw-r--r--module/splat/splat-kmem.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c
index a9792b1a5..31499dde3 100644
--- a/module/splat/splat-kmem.c
+++ b/module/splat/splat-kmem.c
@@ -309,31 +309,32 @@ splat_kmem_cache_size_test(struct file *file, void *arg,
NULL, &kcp, NULL, flags);
if (!cache) {
splat_vprint(file, name,
- "Unable to create '%s'\n", SPLAT_KMEM_CACHE_NAME);
+ "Unable to create '%s'\n",
+ SPLAT_KMEM_CACHE_NAME);
return -ENOMEM;
}
kcd = kmem_cache_alloc(cache, KM_SLEEP);
if (!kcd) {
splat_vprint(file, name,
- "Unable to allocate from '%s'\n",
- SPLAT_KMEM_CACHE_NAME);
+ "Unable to allocate from '%s'\n",
+ SPLAT_KMEM_CACHE_NAME);
rc = -EINVAL;
goto out_free;
}
if (!kcd->kcd_flag) {
splat_vprint(file, name,
- "Failed to run contructor for '%s'\n",
- SPLAT_KMEM_CACHE_NAME);
+ "Failed to run contructor for '%s'\n",
+ SPLAT_KMEM_CACHE_NAME);
rc = -EINVAL;
goto out_free;
}
if (kcd->kcd_magic != kcp.kcp_magic) {
splat_vprint(file, name,
- "Failed to pass private data to constructor "
- "for '%s'\n", SPLAT_KMEM_CACHE_NAME);
+ "Failed to pass private data to constructor "
+ "for '%s'\n", SPLAT_KMEM_CACHE_NAME);
rc = -EINVAL;
goto out_free;
}
@@ -346,14 +347,14 @@ splat_kmem_cache_size_test(struct file *file, void *arg,
kmem_cache_destroy(cache);
if (kcp.kcp_count) {
splat_vprint(file, name,
- "Failed to run destructor on all slab objects "
- "for '%s'\n", SPLAT_KMEM_CACHE_NAME);
+ "Failed to run destructor on all slab objects "
+ "for '%s'\n", SPLAT_KMEM_CACHE_NAME);
rc = -EINVAL;
}
splat_vprint(file, name,
- "Successfully ran ctors/dtors for %d elements in '%s'\n",
- max, SPLAT_KMEM_CACHE_NAME);
+ "Successfully ran ctors/dtors for %d elements in '%s'\n",
+ max, SPLAT_KMEM_CACHE_NAME);
return rc;