linux-kernel mailing list

FromSubjectsort iconDate
Suresh Siddha
[patch 1/2] x86, fpu: split FPU state from task struct - v4
Split the FPU save area from the task struct. This allows easy migration of FPU context, and it's generally cleaner. It also allows the following two optimizations: 1) only allocate when the application actually uses FPU, so in the first lazy FPU trap. This could save memory for non-fpu using apps. Next patch does this lazy allocation. 2) allocate the right size for the actual cpu rather than 512 bytes always. Patches enabling xsave/xrstor support (coming shortly) will take advantage of this. ...
Mar 4, 7:37 pm 2008
Suresh Siddha
[patch 2/2] x86, fpu: lazy allocation of FPU area - v4
Only allocate the FPU area when the application actually uses FPU, i.e., in the first lazy FPU trap. This could save memory for non-fpu using apps. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: Arjan van de Ven <arjan@linux.intel.com> --- v4: Handles the kmem_cache_alloc() failures. v3: Fixed the non-atomic calling sequence in atomic context. v2: Ported to x86.git#testing with some name changes. --- Index: linux-2.6-x86/arch/x86/kernel/i387.c ========================...
Mar 4, 7:37 pm 2008
Команда Ко...
Taras Budenkevich додав у Ваших
Taras Budenkevich додав у Ваших друзях на сайтi connect.com.ua (04.03.2008 22:43) Щойно Ви затоваришуєте, у Вас з’явиться новий спосіб спілкування зі своїми друзями щоб увійти на сайт, просто натисніть на наступне посилання або введіть його у браузері : http://connect.com.ua/invitereg?385955&ca66595d4307844e845c0e582de9bb9e У...
Mar 4, 7:46 pm 2008
Robin Getz
PATCH [1/1]: Don't return symbol lables in init sections aft...
From: Robin Getz <rgetz@blackfin.uclinux.org> Today, when module names are looked up, we do not qualify them (check to see if the init section is still active or not). This can lead to problems when kernel modules get loaded into the same address that the kernel init section (or other module's init section was at). We sometimes return the old / no lomnger there This leads to bogus OOPS messages, and developers wasting their time looking for problems (in the kernel init section) where ...
Mar 4, 7:47 pm 2008
Greg KH
[GIT PATCH] driver core fixes against 2.6.25-rc3 git
Here are a few driver core fixes against your current git tree that fix some more problems that have cropped up: - suspend/resume bugfixes - ksets were not getting properly initialized - CONFIG_SYSFS_DEPRECATED was catching people with old userspace versions of LVM now that the block core is changed to use struct device. - other driver core bugs on error paths. Please pull from: master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/ Patches will be sent as a follow-on to...
Mar 4, 7:15 pm 2008
Greg Kroah-Hartman
[PATCH 8/8] debugfs: fix sparse warnings
From: Harvey Harrison <harvey.harrison@gmail.com> extern does not belong in C files, move declaration to linux/debugfs.h fs/debugfs/file.c:42:30: warning: symbol 'debugfs_file_operations' was not declared. Should it be static? fs/debugfs/file.c:54:31: warning: symbol 'debugfs_link_operations' was not declared. Should it be static? Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- fs/debugfs/inode.c | 4 ----...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 7/8] Driver core: Fix cleanup when failing device_add...
From: Cornelia Huck <cornelia.huck@de.ibm.com> Driver core: Fix cleanup when failing device_add(). - Don't call cleanup_device_parent() if we didn't call setup_parent(). - dev->kobj.parent may be NULL when cleanup_device_parent() is called, so we need to handle glue_dir == NULL in cleanup_glue_dir(). Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/base/core.c | 5 +++-- 1 files changed, 3 inse...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 6/8] driver core: Remove dpm_sysfs_remove() from erro...
From: Rafael J. Wysocki <rjw@sisk.pl> Since device_pm_remove(dev) calls dpm_sysfs_remove(dev), it's incorrect to call the latter after the former in the device_add() error path. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/base/core.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 1e2e0fa..7f59c2f 100644 --- a/drivers/base/core.c +++ b...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 5/8] PM: fix new mutex-locking bug in the PM core
From: Alan Stern <stern@rowland.harvard.edu> This patch (as1041) fixes a bug introduced by the acquire-all-device-semaphores reversion. The error pathway of dpm_suspend() fails to reacquire a mutex it should be holding. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/base/power/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/power/main.c b/drivers/base/power/ma...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 4/8] PM: Do not acquire device semaphores upfront dur...
From: Rafael J. Wysocki <rjw@sisk.pl> Remove the code that acquires all device semaphores from the suspend code path as it causes multiple problems to appear (most notably, http://bugzilla.kernel.org/show_bug.cgi?id=10030) and revert the change introduced by commit 4145ed6dc597a9bea5f6ae8c574653b2de10620f depending on the code being removed. Remove pm_sleep_lock()/pm_sleep_unlock() from device_add() to avoid the issue reported at http://bugzilla.kernel.org/show_bug.cgi?id=9874. It should...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 3/8] kobject: properly initialize ksets
kset_initialize was calling kobject_init_internal() which didn't initialize the kobject as well as kobject_init() was. So have kobject_init() call kobject_init_internal() and move the logic to initalize the kobject there. Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Hannes Reinecke <hare@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- lib/kobject.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/kobject.c b/lib/kobject.c ...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 2/8] sysfs: CONFIG_SYSFS_DEPRECATED fix
From: Ingo Molnar <mingo@elte.hu> CONFIG_SYSFS_DEPRECATED=y changed its meaning recently and causes regressions in working setups that had SYSFS_DEPRECATED disabled. so rename it to SYSFS_DEPRECATED_V2 so that testers pick up the new default via 'make oldconfig', even if their old .config's disabled CONFIG_SYSFS_DEPRECATED ... Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Andrew ...
Mar 4, 7:18 pm 2008
Greg Kroah-Hartman
[PATCH 1/8] driver core: fix up Kconfig text for CONFIG_SYSF...
As things get moved into this config option, the hard date of 2006 does not work anymore, so update the text to be more descriptive. Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- init/Kconfig | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index f698a5a..e6606e6 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -382,10 +382,11 @@ config SY...
Mar 4, 7:18 pm 2008
Greg KH Mar 4, 7:15 pm 2008
Greg KH
[GIT PATCH] PCI fixes for 2.6.25-rc3 git tree
Here are some PCI patches against your 2.6.25-rc3 git tree. Some more quirk fixups, a pci hotplug fix, and hopefully the final section mismatch fixup. I've also added the DECLARE_PCI_DEVICE_TABLE macro so that other driver authors can start converting their code over easier. Please pull from: master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6.git/ A lot of these patches have been in the -mm tree for a while, as well as -next. The full patches will be sent to the linux-pci mailing ...
Mar 4, 7:15 pm 2008
Rik van Riel
[patch 06/20] split LRU lists into anon & file sets
Split the LRU lists in two, one set for pages that are backed by real file systems ("file") and one for pages that are backed by memory and swap ("anon"). The latter includes tmpfs. Eventually mlocked pages will be taken off the LRUs alltogether. A patch for that already exists and just needs to be integrated into this series. This patch mostly has the infrastructure and a basic policy to balance how much we scan the anon lists and how much we scan the file lists. The big policy changes are in ...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 16/20] non-reclaimable mlocked pages
V2 -> V3: + rebase to 23-mm1 atop RvR's split lru series + fix page flags macros for *PageMlocked() when not configured. + ensure lru_add_drain_all() runs on all cpus when NORECLAIM_MLOCK configured. Was just for NUMA. V1 -> V2: + moved this patch [and related patches] up to right after ramdisk/ramfs and SHM_LOCKed patches. + add [back] missing put_page() in putback_lru_page(). This solved page leakage as seen by stats in previous version. + fix up munlock_vma_page() to isolate p...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 17/20] mlock vma pages under mmap_sem held for read
V2 -> V3: + rebase to 23-mm1 atop RvR's split lru series [no change] + fix function return types [void -> int] to fix build when not configured. New in V2. We need to hold the mmap_sem for write to initiatate mlock()/munlock() because we may need to merge/split vmas. However, this can lead to very long lock hold times attempting to fault in a large memory region to mlock it into memory. This can hold off other faults against the mm [multithreaded tasks] and other scans of the mm, suc...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 15/20] SHM_LOCKED pages are nonreclaimable
V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series. + Use scan_mapping_noreclaim_page() on unlock. See below. V1 -> V2: + modify to use reworked 'scan_all_zones_noreclaim_pages()' See 'TODO' below - still pending. While working with Nick Piggin's mlock patches, I noticed that shmem segments locked via shmctl(SHM_LOCKED) were not being handled. SHM_LOCKed pages work like ramdisk pages--the writeback function just redirties the page so that it can't be reclaimed. Deal with thes...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 20/20] cull non-reclaimable anon pages from the LRU a...
V2 -> V3: + rebase to 23-mm1 atop RvR's split lru series. V1 -> V2: + no changes Optional part of "noreclaim infrastructure" In the fault paths that install new anonymous pages, check whether the page is reclaimable or not using lru_cache_add_active_or_noreclaim(). If the page is reclaimable, just add it to the active lru list [via the pagevec cache], else add it to the noreclaim list. This "proactive" culling in the fault path mimics the handling of mlocked pages in Nick Piggin's...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 08/20] add some sanity checks to get_scan_ratio
The access ratio based scan rate determination in get_scan_ratio works ok in most situations, but needs to be corrected in some corner cases: - if we run out of swap space, do not bother scanning the anon LRUs - if we have already freed all of the page cache, we need to scan the anon LRUs - restore the *actual* access ratio based scan rate algorithm, the previous versions of this patch series had the wrong version - scale the number of pages added to zone->nr_scan[l] Signed-off-by: Rik van...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 19/20] account mlocked pages
V2 -> V3: + rebase to 23-mm1 atop RvR's split lru series + fix definitions of NR_MLOCK to fix build errors when not configured. V1 -> V2: + new in V2 -- pulled in & reworked from Nick's previous series From: Nick Piggin <npiggin@suse.de> To: Linux Memory Management <linux-mm@kvack.org> Cc: Nick Piggin <npiggin@suse.de>, Andrew Morton <akpm@osdl.org> Subject: [patch 4/4] mm: account mlocked pages Date: Mon, 12 Mar 2007 07:39:14 +0100 (CET) Add NR_M...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 11/20] No Reclaim LRU Infrastructure
V1 -> V3: + rebase to 23-mm1 atop RvR's split LRU series + define NR_NORECLAIM and LRU_NORECLAIM to avoid errors when not configured. V1 -> V2: + handle review comments -- various typos and errors. + extract "putback_all_noreclaim_pages()" into a separate patch and rework as "scan_all_zones_noreclaim_pages(). Infrastructure to manage pages excluded from reclaim--i.e., hidden from vmscan. Based on a patch by Larry Woodman of Red Hat. Reworked to maintain "nonreclaimable" pages on ...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 18/20] handle mlocked pages during map/unmap and trun...
V2 -> V3: + rebase to 23-mm1 atop RvR's split lru series [no changes] V1 -> V2: + modified mmap.c:mmap_region() to return error if mlock_vma_pages_range() does. This can only occur if the vma gets removed/changed while we're switching mmap_sem lock modes. Most callers don't care, but sys_remap_file_pages() appears to. Rework of Nick Piggins's "mm: move mlocked pages off the LRU" patch -- part 2 0f 2. Remove mlocked pages from the LRU using "NoReclaim infrastructure" during...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 07/20] SEQ replacement for anonymous pages
We avoid evicting and scanning anonymous pages for the most part, but under some workloads we can end up with most of memory filled with anonymous pages. At that point, we suddenly need to clear the referenced bits on all of memory, which can take ages on very large memory systems. We can reduce the maximum number of pages that need to be scanned by not taking the referenced state into account when deactivating an anonymous page. After all, every anonymous page starts out referenced, so why check...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 12/20] Non-reclaimable page statistics
V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series V1 -> V2: no changes Report non-reclaimable pages per zone and system wide. Note: may want to track/report some specific reasons for nonreclaimability for deciding when to splice the noreclaim lists back to the normal lru. That will be tricky, especially in shrink_active_list(), where we'd need someplace to save the per page reason for non-reclaimability until the pages are dumped back onto the noreclaim list from the pagevec...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 02/20] Use an indexed array for LRU variables
V3 [riel]: memcontrol LRU arrayification V1 -> V2 [lts]: + Remove extraneous __dec_zone_state(zone, NR_ACTIVE) pointed Currently we are defining explicit variables for the inactive and active list. An indexed array can be more generic and avoid repeating similar code in several places in the reclaim code. We are saving a few bytes in terms of code size: Before: text data bss dec hex filename 4097753 573120 4092484 8763357 85b7dd vmlinux After: text data...
Mar 4, 6:51 pm 2008
Rik van Riel
[patch 09/20] add newly swapped in pages to the inactive list
Swapin_readahead can read in a lot of data that the processes in memory never need. Adding swap cache pages to the inactive list prevents them from putting too much pressure on the working set. This has the potential to help the programs that are already in memory, but it could also be a disadvantage to processes that are trying to get swapped in. In short, this patch needs testing. Signed-off-by: Rik van Riel <riel@redhat.com> Index: linux-2.6.25-rc3-mm1/mm/swap_state.c ============...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 14/20] ramfs pages are non-reclaimable
V3 -> V4: + drivers/block/rd.c was replaced by brd.c in 24-rc4-mm1. Update patch to add brd_open() to mark mapping as nonreclaimable V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series [no changes] V1 -> V2: + add ramfs pages to this class of non-reclaimable pages by marking ramfs address_space [mapping] as non-reclaimble. Christoph Lameter pointed out that ram disk pages also clutter the LRU lists. When vmscan finds them dirty and tries to clean them, the ram disk writ...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 13/20] scan noreclaim list for reclaimable pages
V2 -> V3: + rebase to 23-mm1 atop RvR's split LRU series New in V2 This patch adds a function to scan individual or all zones' noreclaim lists and move any pages that have become reclaimable onto the respective zone's inactive list, where shrink_inactive_list() will deal with them. This replaces the function to splice the entire noreclaim list onto the active list for rescan by shrink_active_list(). That method had problems with vmstat accounting and complicated '[__]isolate_lru_pages()'. ...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 01/20] move isolate_lru_page() to vmscan.c
V1 -> V2 [lts]: + fix botched merge -- add back "get_page_unless_zero()" From: Nick Piggin <npiggin@suse.de> To: Linux Memory Management <linux-mm@kvack.org> Subject: [patch 1/4] mm: move and rework isolate_lru_page Date: Mon, 12 Mar 2007 07:38:44 +0100 (CET) isolate_lru_page logically belongs to be in vmscan.c than migrate.c. It is tough, because we don't need that function without memory migration so there is a valid argument to have it in migrate.c. However a subsequ...
Mar 4, 6:51 pm 2008
Rik van Riel
[patch 10/20] more aggressively use lumpy reclaim
During an AIM7 run on a 16GB system, fork started failing around 32000 threads, despite the system having plenty of free swap and 15GB of pageable memory. If normal pageout does not result in contiguous free pages for kernel stacks, fall back to lumpy reclaim instead of failing fork or doing excessive pageout IO. I do not know whether this change is needed due to the extreme stress test or because the inactive list is a smaller fraction of system memory on huge systems. Signed-off-by: Rik van...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 05/20] define page_file_cache() function
Define page_file_cache() function to answer the question: is page backed by a file? Originally part of Rik van Riel's split-lru patch. Extracted to make available for other, independent reclaim patches. Moved inline function to linux/mm_inline.h where it will be needed by subsequent "split LRU" and "noreclaim" patches. Unfortunately this needs to use a page flag, since the PG_swapbacked state needs to be preserved all the way to the point where the page is last removed from the LRU. Tryi...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 03/20] use an array for the LRU pagevecs
Turn the pagevecs into an array just like the LRUs. This significantly cleans up the source code and reduces the size of the kernel by about 13kB after all the LRU lists have been created further down in the split VM patch series. Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> include/linux/mmzone.h | 15 +++++- include/linux/pagevec.h | 13 ++++- include/linux/swap.h | 18 ++++++- mm/migrate.c | ...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 04/20] free swap space on swap-in/activation
Free swap cache entries when swapping in pages if vm_swap_full() [swap space > 1/2 used]. Uses new pagevec to reduce pressure on locks. Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: Lee Schermerhorn <Lee.Schermerhorn@hp.com> Index: linux-2.6.25-rc3-mm1/mm/vmscan.c =================================================================== --- linux-2.6.25-rc3-mm1.orig/mm/vmscan.c 2008-03-04 15:25:52.000000000 -0500 +++ linux-2.6.25-rc3-mm1/mm/vmscan.c 2008-03-04 15:29:50.0...
Mar 4, 6:52 pm 2008
Rik van Riel
[patch 00/20] VM pageout scalability improvements (V5)
On large memory systems, the VM can spend way too much time scanning through pages that it cannot (or should not) evict from memory. Not only does it use up CPU time, but it also provokes lock contention and can leave large systems under memory presure in a catatonic state. Against 2.6.25-rc3-mm1 This patch series improves VM scalability by: 1) making the locking a little more scalable 2) putting filesystem backed, swap backed and non-reclaimable pages onto their own LRUs, so the system o...
Mar 4, 6:51 pm 2008
Steve Wise
[PATCH 2.6.25] RDMA/IWCM: don't access the cm_id after deref...
RDMA/IWCM: don't access the cm_id after dereferencing it. cm_work_handler() can access cm_id_priv after it was potentially freed by iwch_deref_id(). The fix is to note whether IWCM_F_CALLBACK_DESTROY is set before dereferencing. Then if it was set, free the cm_id on this thread. Signed-off-by: Steve Wise <swise@opengridcomputing.com> --- drivers/infiniband/core/iwcm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/core/iwcm.c b/driv...
Mar 4, 6:44 pm 2008
Adrian Bunk
[2.6 patch] sh_ksyms_32.c update for gcc 4.3
This patch fixes the following build error with landisk_defconfig when using gcc 4.3: <-- snip --> ... MODPOST 50 modules ERROR: "__udivsi3_i4i" [net/sunrpc/sunrpc.ko] undefined! ERROR: "__udivsi3_i4i" [net/appletalk/appletalk.ko] undefined! ERROR: "__udivsi3_i4i" [fs/ufs/ufs.ko] undefined! ERROR: "__udivsi3_i4i" [fs/ntfs/ntfs.ko] undefined! ERROR: "__sdivsi3_i4i" [fs/ntfs/ntfs.ko] undefined! ERROR: "__udivsi3_i4i" [fs/nfsd/nfsd.ko] undefined! ERROR: "__sdivsi3_i4i" [fs/nfsd/nfsd.k...
Mar 4, 6:39 pm 2008
Lev A. Melnikovsky
ehci-hcd affects hda speed
Hi, I have recently installed a VT6212L-based PCI USB controller into my old rock-stable P3B-F computer just to discover that, even being idle, it significantly slows down main PATA hard drive. I have found an earlier thread with similar (?) problem (archived at http://marc.info/?t=111749614000002&r=1&w=2 ) but it provides no solution. Can this behaviour be explained? Can it be fixed? There's one thing that makes me optimistic: USB traffic _speeds_up_ hda. That is hdparm gives ~20% im...
Mar 4, 6:27 pm 2008
Sven Andersen
[PATCH] USB: ftdi_sio - really enable EM1010PC
Add EM1010PC to ftdi_sio.c Signed-off-by: Sven Andersen <s.andersen@cryonet.de> --- Peter Stark submitted a patch for enabling multiple ELV-devices and adding the EM1010PC to ftdi_sio which has already been applied. For some reason this line got lost somewhere. As Peters patch went into 2.6.24-stable this might be applicable there too. diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 76db2fe..90a398b 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/dr...
Mar 4, 5:09 pm 2008
Toralf
build #405 issue for v2.6.25-rc3-435-g87baa2b in apanel.c: u...
--Boundary-01=_W2bzH9rUC8McA6R Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, the build with the attached .config failed, make ends with: =2E.. WARNING: modpost: Found 14 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=3Dy' GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-...
Mar 4, 5:22 pm 2008
Randy Dunlap Mar 4, 5:30 pm 2008
Jeremy Fitzhardinge
preempt bug in set_pmd_pfn?
I think set_pmd_pfn, which is only called by __set_fixmap, might have a preempt bug in it. It can be executed with preemption enabled, but what if it gets preempted set_pmd(pmd, pfn_pmd(pfn, flags)); /* * It's enough to flush this one mapping. * (PGE mappings get flushed as well) __flush_tlb_one(vaddr); } ? Won't this leave a stale tlb on the old processor? I noticed this because the Xen tlb flushing code effectively has a smp_processor_id(), which provokes a warning when pr...
Mar 4, 5:13 pm 2008
Ingo Molnar
Re: preempt bug in set_pmd_pfn?
yes, and we had similar preemption bugs in the past. I guess most places are either infrequent or have some natural atomicity anyway. Wanna send a patch? Ingo --
Mar 4, 5:28 pm 2008
Jeremy Fitzhardinge
Re: preempt bug in set_pmd_pfn?
Sure. Should it just disable preemption, or take a lock? It calls set_pte_at without holding any pte locks; that seems to be relatively common. Is it OK when you're operating on init_mm? J --
Mar 4, 5:27 pm 2008
Andi Kleen
[PATCH REPOST] [1/3] Don't set up early exception handlers f...
All of early setup runs with interrupts disabled, so there is no need to set up early exception handlers for vectors >= 32 That saves some text size Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/kernel/head64.c | 2 +- arch/x86/kernel/head_64.S | 6 ++---- include/asm-x86/segment.h | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) Index: linux/arch/x86/kernel/head64.c =================================================================== --- linux.orig/ar...
Mar 4, 5:13 pm 2008
Andi Kleen
[PATCH REPOST] [3/3] Replace macro recursion with more conve...
The early exception handlers are currently set up using a macro recursion. Replace that with a standard loop. Noop patch, just a cleanup. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/kernel/head_64.S | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) Index: linux/arch/x86/kernel/head_64.S =================================================================== --- linux.orig/arch/x86/kernel/head_64.S +++ linux/arch/x86/kernel/head_64.S @@ -269,18 +269,17 @@...
Mar 4, 5:13 pm 2008
Andi Kleen
[PATCH REPOST] [2/3] Move early exception handlers into init...
Currently they are in .text.head because the rest of head_64.S. .text.head is not removed as init data, but the early exception handlers should be because they are not needed after early boot of the BP. So move them over. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/kernel/head_64.S | 2 ++ 1 file changed, 2 insertions(+) Index: linux/arch/x86/kernel/head_64.S =================================================================== --- linux.orig/arch/x86/kernel/head_64.S ++...
Mar 4, 5:13 pm 2008
Casey Schaufler
Re: Google's Summer of Code?
As will Smack, the mandatory access control model of the future, Casey Schaufler casey@schaufler-ca.com --
Mar 4, 5:11 pm 2008
Harvey Harrison
[JANITOR-PATCH] rtc: switch to unlocked_ioctl
Make the lock/unlock_kernel explicit. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> --- arch/arm/common/rtctime.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/common/rtctime.c b/arch/arm/common/rtctime.c index f53bca4..2062f92 100644 --- a/arch/arm/common/rtctime.c +++ b/arch/arm/common/rtctime.c @@ -173,8 +173,7 @@ static unsigned int rtc_poll(struct file *file, poll_table *wait) return data != 0 ? POLLIN | POLLRDNORM : 0; } ...
Mar 4, 5:06 pm 2008
previous daytodaynext day
March 3, 2008March 4, 2008March 5, 2008