login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
4
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ingo Molnar
Subject:
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
Date: Tuesday, March 4, 2008 - 3:32 am
* Suresh Siddha <suresh.b.siddha@intel.com> wrote:
quoted text
> On Mon, Mar 03, 2008 at 08:20:12PM -0500, Christoph Hellwig wrote: > > On Mon, Mar 03, 2008 at 03:02:46PM -0800, Suresh Siddha wrote: > > > + /* > > > + * Memory allocation at the first usage of the FPU and other state. > > > + */ > > > + if (!tsk->thread.xstate) > > > + tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, GFP_KERNEL); > > > > Also don't we need some kind of error handling here? > > Currently it uses SLAB_PANIC.
but SLAB_PANIC only covers kmem_cache_create() failures. kmem_cache_alloc() can fail (return NULL) and not handling it is a bug. Ingo --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Suresh Siddha
, (Mon Mar 3, 4:02 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Christoph Hellwig
, (Mon Mar 3, 6:20 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Suresh Siddha
, (Mon Mar 3, 6:43 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Ingo Molnar
, (Tue Mar 4, 3:32 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Suresh Siddha
, (Tue Mar 4, 10:55 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Pavel Machek
, (Wed Mar 5, 12:47 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Pavel Machek
, (Wed Mar 5, 12:48 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Ingo Molnar
, (Thu Mar 6, 8:51 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Suresh Siddha
, (Thu Mar 6, 12:10 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Suresh Siddha
, (Thu Mar 6, 12:26 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Pavel Machek
, (Thu Mar 6, 1:24 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Andi Kleen
, (Thu Mar 6, 1:52 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Pavel Machek
, (Thu Mar 6, 2:21 pm)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, H. Peter Anvin
, (Fri Mar 7, 5:29 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Arjan van de Ven
, (Fri Mar 7, 6:06 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Andi Kleen
, (Fri Mar 7, 6:18 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Arjan van de Ven
, (Fri Mar 7, 6:20 am)
Re: [patch 2/2] x86, fpu: lazy allocation of FPU area - v3
, Andi Kleen
, (Fri Mar 7, 6:27 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
Michael S. Tsirkin
git-kill: rewrite history removing a commit
linux-netdev
:
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Guo-Fu Tseng
Re: jme: UDP checksum error, and lots of them
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
git-commits-head
:
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
Colocation donated by:
Syndicate