commit 0e5e24bf64b755a034d8294303bc61d8f40ebeaf tree d90d974b18b674980496d28cecf47cff2564e5a8 parent 20ac94378de59d61dc39f10ed5530485e4ac8c07 parent ace1d816a13ff42d4f41989862552032f9c19853 author Linus Torvalds Thu, 13 Apr 2006 20:30:58 -0700 committer Linus Torvalds Thu, 13 Apr 2006 20:30:58 -0700 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] Make show_mem() skip holes in a pgdat [IA64] ia64_wait_for_slaves() incorrectly reports MCA commit ace1d816a13ff42d4f41989862552032f9c19853 tree 084277670a76f9a50449e82b308ecc7b881fd5ac parent 356a5c1c6fdfb8eed6dbb3979d90c7cc7060017a author Robin Holt Thu, 13 Apr 2006 15:34:45 -0700 committer Tony Luck Thu, 13 Apr 2006 15:34:45 -0700 [IA64] Make show_mem() skip holes in a pgdat This patch modifies ia64's show_mem() to walk the vmem_map page tables and rapidly skip forward across regions where the page tables are missing. This prevents the pfn_valid() check from causing numerous unnecessary page faults. Without this patch on a 512 node 512 cpu system where every node has four memory holes, the show_mem() call takes 1 hour 18 minutes. With this patch, it takes less than 3 seconds. Signed-off-by: Robin Holt Signed-off-by: Tony Luck commit 356a5c1c6fdfb8eed6dbb3979d90c7cc7060017a tree ec6a44500c01c902245e10dac7a3dc8a7da8b060 parent 907d91d708d9999bec0185d630062576ac4181a7 author Keith Owens Tue, 11 Apr 2006 14:59:41 +1000 committer Tony Luck Thu, 13 Apr 2006 14:57:18 -0700 [IA64] ia64_wait_for_slaves() incorrectly reports MCA ia64_wait_for_slaves() was changed in 2.6.17-rc1 to report the slave state. It incorrectly assumes that all slaves are for MCA, but ia64_wait_for_slaves() is also called from the INIT monarch handler. The existing message is very misleading, so correct it. Signed-off-by: Keith Owens Signed-off-by: Tony Luck commit 20ac94378de59d61dc39f10ed5530485e4ac8c07 tree 80de96cdd506cf73e088b2be95079a3ff79c60a7 parent 907d91d708d9999bec0185d630062576ac4181a7 author Eric W. Biederman Thu, 13 Apr 2006 04:49:07 -0600 committer Linus Torvalds Thu, 13 Apr 2006 11:59:12 -0700 [PATCH] do_SAK: Don't recursively take the tasklist_lock By calling send_sig do_SAK is recursively taking the tasklist_lock, which is silly. In addition I just audited the kernel and this was the only place where tasklist_lock is taken inside of task_lock. So this one line change is a general worthwhile cleanup and it increases our options on how to fix the ptrace_attach races. Signed-off-by: Linus Torvalds commit 907d91d708d9999bec0185d630062576ac4181a7 tree faf16e6a0ceaa70f55cbb1a8abc7814f5e106e4e parent 646e120ffe885d70c75460f515d56a5c0d72002e parent 59fef3b1e96217c6e736372ff8cc95cbcca1b6aa author Linus Torvalds Wed, 12 Apr 2006 16:07:54 -0700 committer Linus Torvalds Wed, 12 Apr 2006 16:07:54 -0700 Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband: IB/mthca: Fix max_srq_sge returned by ib_query_device for Tavor devices IB/cache: Use correct pointer to calculate size IPoIB: Use spin_lock_irq() instead of spin_lock_irqsave() IPoIB: Close race in ipoib_flush_paths() IB/mthca: Disable tuning PCI read burst size IPoIB: Make send and receive queue sizes tunable IPoIB: Wait for join to finish before freeing mcast struct IB: simplify static rate encoding IPoIB: Consolidate private neighbour data handling IB/srp: Fix memory leak in options parsing IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y IPoIB: Always build debugging code unless CONFIG_EMBEDDED=y IB/mad: fix oops in cancel_mads commit 646e120ffe885d70c75460f515d56a5c0d72002e tree 394872f7d8586e2ef320e0a0c6cee0cb3a03ba44 parent 2e9f0e18678ffb2a932390e12de88b2b31c465b6 parent d220c37e0a3c9a47ae00e87e044d963b3ea040bc author Linus Torvalds Wed, 12 Apr 2006 15:25:12 -0700 committer Linus Torvalds Wed, 12 Apr 2006 15:25:12 -0700 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: [PATCH] sata_mv: properly print HC registers commit 2e9f0e18678ffb2a932390e12de88b2b31c465b6 tree 88542c04904f978fe34e69cecfd5e85686c21c4d parent 6762b47a74264152eeda5ac7516732fe9be265a7 parent c91e468a48a2afd2a2b0c2e29a35d6b8c51ea682 author Linus Torvalds Wed, 12 Apr 2006 15:24:06 -0700 committer Linus Torvalds Wed, 12 Apr 2006 15:24:06 -0700 Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: [PATCH] Use pci_set_consistent_dma_mask in ixgb driver [PATCH] sky2: bad memory reference on dual port cards [PATCH] mv643xx_eth: Fix tx_timeout to only conditionally wake tx queue [PATCH] mv643xx_eth: Always free completed tx descs on tx interrupt [PATCH] net drivers: fix section attributes for gcc [PATCH] remove drivers/net/hydra.h [PATCH] drivers/net/via-rhine.c: make a function static [netdrvr b44] trim trailing whitespace [PATCH] b44: increase version to 1.00 [PATCH] b44: disable default tx pause [PATCH] via-rhine: execute bounce buffers code on Rhine-I only [PATCH] network: axnet_cs.c: add missing 'PRIV' in ei_rx_overrun [PATCH] dlink pci cards using wrong driver commit c91e468a48a2afd2a2b0c2e29a35d6b8c51ea682 tree 402fe545765761341c744683b510b306c18887cb parent 43f2f10444c008296cc8de68a72fd87b33b50452 author Andreas Schwab Tue, 28 Mar 2006 18:10:38 +0200 committer Jeff Garzik Wed, 12 Apr 2006 18:11:23 -0400 [PATCH] Use pci_set_consistent_dma_mask in ixgb driver The ixgb driver is using pci_alloc_consistent, thus is should also use pci_set_consistent_dma_mask. This allows the driver to work on SGI systems. In case of an error during probing it should also disable the device again. Signed-off-by: Andreas Schwab Signed-off-by: Jeff Garzik commit 43f2f10444c008296cc8de68a72fd87b33b50452 tree 4b0268f07e4478e844b4f59f868bd0e2fbb0baed parent 94843566d7119e049a72618a3c939d5c2be022c7 author Stephen Hemminger Wed, 05 Apr 2006 17:47:15 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:11:23 -0400 [PATCH] sky2: bad memory reference on dual port cards Sky2 driver will oops referencing bad memory if used on a dual port card. The problem is accessing past end of MIB counter space. Applies for both 2.6.17 and 2.6.16 (with fuzz) Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 94843566d7119e049a72618a3c939d5c2be022c7 tree 4b0b90677e6ad7cbe70914a3ad33bdf57a55997d parent 5c5374087707d7848cb13f15e7c175daf346301c author Dale Farnsworth Tue, 11 Apr 2006 18:24:26 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:11:23 -0400 [PATCH] mv643xx_eth: Fix tx_timeout to only conditionally wake tx queue After resetting the hardware on a tx_timeout, call netif_wake_queue() only if we have free tx descriptors. Also, attempt to recover if mv643xx_eth_start_xmit() is called when there are fewer free tx descriptors than expected. The BUG_ON() call we are replacing was hit on a tx_timeout that called netif_wake_queue(), indirectly via netif_device_attach(), even though we did not have enough free tx descriptors. Signed-off-by: Dale Farnsworth Signed-off-by: Jeff Garzik commit 5c5374087707d7848cb13f15e7c175daf346301c tree 67c56fd643e1e0ff508e94f0570d4e89b29b6d7a parent e19360f2945f54eb44ae170ec9c33910d29834a2 author Brent Cook Tue, 11 Apr 2006 18:23:15 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:11:23 -0400 [PATCH] mv643xx_eth: Always free completed tx descs on tx interrupt Fix the tx interrupt handler to free completed tx descriptors even when NAPI is enabled. Otherwise, the tx queue would fill up resulting in poor performance and "NETDEV WATCHDOG: : transmit timed out" messages. Signed-off-by: Brent Cook Signed-off-by: Dale Farnsworth Signed-off-by: Jeff Garzik commit e19360f2945f54eb44ae170ec9c33910d29834a2 tree c9959bb3d5a91efd21ca43c556544a7b0c1842bc parent 037998d1e979e88a140ef32c5d28730f6ca8a96f author Randy Dunlap Mon, 10 Apr 2006 23:22:06 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:08:45 -0400 [PATCH] net drivers: fix section attributes for gcc If CONFIG_HOTPLUG=n, gcc doesn't like some __initdata to be const (rodata) and other __initdata not const, so make the non-const __initdata const. gcc errors: drivers/net/bnx2.c:66: error: version causes a section type conflict drivers/net/starfire.c:338: error: version causes a section type conflict drivers/net/typhoon.c:137: error: version causes a section type conflict drivers/net/natsemi.c:241: error: version causes a section type conflict Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 037998d1e979e88a140ef32c5d28730f6ca8a96f tree b3a052dbf87cfd631044686d5718bddf74acbda0 parent 0761be4f5f9efb5f72a5f9771f2ed5845a974c46 author Adrian Bunk Mon, 10 Apr 2006 23:22:07 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:08:45 -0400 [PATCH] remove drivers/net/hydra.h Remove drivers/net/hydra.h which is both unused and covered by a 4 clause BSD licence (not by the UCB). Signed-off-by: Adrian Bunk Acked-By: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 0761be4f5f9efb5f72a5f9771f2ed5845a974c46 tree 4fe855fb7446babece785fffb7fbcc6558c0dd09 parent 10badc215493a435e2dbdc691386f2650a1778de author Adrian Bunk Mon, 10 Apr 2006 23:22:21 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:08:45 -0400 [PATCH] drivers/net/via-rhine.c: make a function static Signed-off-by: Adrian Bunk Signed-off-by: Roger Luethi Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit d220c37e0a3c9a47ae00e87e044d963b3ea040bc tree f2a9dae41df1e2267ed1ffb2af1215e0fe35858c parent a145410dccdb44f81d3b56763ef9b6f721f4e47c author Dan Aloni Mon, 10 Apr 2006 23:20:22 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:05:56 -0400 [PATCH] sata_mv: properly print HC registers Currently it crashes when trying to dump the registers. This is an obvious one-liner fix I suppose. Signed-off-by: Dan Aloni Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 10badc215493a435e2dbdc691386f2650a1778de tree b8525258892ee56c3ceb7e0d9e2e74a4ecf0f88d parent 8056bfafb8a845f3035e7aae5ffe405df118bc12 author Jeff Garzik Wed, 12 Apr 2006 18:04:32 -0400 committer Jeff Garzik Wed, 12 Apr 2006 18:04:32 -0400 [netdrvr b44] trim trailing whitespace commit 8056bfafb8a845f3035e7aae5ffe405df118bc12 tree 8ca9bcaf27f266a8dec148efaa23f34c000cb3b1 parent 2b474cf53870abf1bbad631c3368b9efc9b5ba9d author Gary Zambrano Mon, 10 Apr 2006 12:05:40 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:04:03 -0400 [PATCH] b44: increase version to 1.00 Signed-off-by: Jeff Garzik commit 2b474cf53870abf1bbad631c3368b9efc9b5ba9d tree 3dc14351bf455c345c463573c0cd7369e05f5631 parent 4be5de25259de21894df5e2fecc30da8252dee8c author Gary Zambrano Mon, 10 Apr 2006 12:02:21 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:04:03 -0400 [PATCH] b44: disable default tx pause Disable default tx pause frame support. The b44 controller has a bug that generates excessive tx pause frames. Signed-off-by: Gary Zambrano Signed-off-by: Jeff Garzik commit 4be5de25259de21894df5e2fecc30da8252dee8c tree dfae2ad363dd554f64552797d1b923799fb2b238 parent ff768cd7139ab368bc2b97e7bd6fa592f20e1950 author Roger Luethi Tue, 04 Apr 2006 20:49:16 +0200 committer Jeff Garzik Wed, 12 Apr 2006 18:04:03 -0400 [PATCH] via-rhine: execute bounce buffers code on Rhine-I only Patch suggested by Yang Wu (pin xue ). Signed-off-by: Roger Luethi Signed-off-by: Jeff Garzik commit ff768cd7139ab368bc2b97e7bd6fa592f20e1950 tree f0e9ee62fdee7612b87bef600393c5ce1d5697a0 parent 5636f72794b42d31b2660064ef2c17f90816b3b1 author Komuro Sun, 09 Apr 2006 11:21:10 +0900 committer Jeff Garzik Wed, 12 Apr 2006 18:04:03 -0400 [PATCH] network: axnet_cs.c: add missing 'PRIV' in ei_rx_overrun Signed-off-by: komurojun-mbn@nifty.com Signed-off-by: Jeff Garzik commit 5636f72794b42d31b2660064ef2c17f90816b3b1 tree b630ec7fb268ba393b41dce5036749629a9018d9 parent a145410dccdb44f81d3b56763ef9b6f721f4e47c author Stephen Hemminger Tue, 11 Apr 2006 10:28:21 -0700 committer Jeff Garzik Wed, 12 Apr 2006 18:04:03 -0400 [PATCH] dlink pci cards using wrong driver This patch fixes the problem of some Dlink cards picking the wrong driver. It looks like these cards use Yukon 1 chipset, not Yukon 2. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 59fef3b1e96217c6e736372ff8cc95cbcca1b6aa tree 5373713d77df970b52e9dd968a69252d469433a9 parent ce684df05a531904ea055d01aeee75321fa0db1e author Jack Morgenstein Tue, 11 Apr 2006 18:16:27 +0300 committer Roland Dreier Wed, 12 Apr 2006 11:42:30 -0700 IB/mthca: Fix max_srq_sge returned by ib_query_device for Tavor devices The driver allocates SRQ WQEs size with a power of 2 size both for Tavor and for memfree. For Tavor, however, the hardware only requires the WQE size to be a multiple of 16, not a power of 2, and the max number of scatter-gather allowed is reported accordingly by the firmware (and this is the value currently returned by ib_query_device() and ibv_query_device()). If the max number of scatter/gather entries reported by the FW is used when creating an SRQ, the creation will fail for Tavor, since the required WQE size will be increased to the next power of 2, which turns out to be larger than the device permitted max WQE size (which is not a power of 2). This patch reduces the reported SRQ max wqe size so that it can be used successfully in creating an SRQ on Tavor HCAs. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit 6762b47a74264152eeda5ac7516732fe9be265a7 tree 16aee054ebd304c3030faaa030779b6e8d0c25e9 parent dcccdd938ef0c5d96145957217b814b14bd46cdc parent 052bb88e180d010f7da7186e6f21eea3be82a903 author Linus Torvalds Wed, 12 Apr 2006 09:54:39 -0700 committer Linus Torvalds Wed, 12 Apr 2006 09:54:39 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: [ISDN]: Static overruns in drivers/isdn/i4l/isdn_ppp.c [WAN]: Remove broken and unmaintained Sangoma drivers. [BRIDGE] ebtables: fix allocation in net/bridge/netfilter/ebtables.c [DCCP]: Fix leak in net/dccp/ipv4.c [BRIDGE]: receive link-local on disabled ports. [IPv6] reassembly: Always compute hash under the fragment lock. commit dcccdd938ef0c5d96145957217b814b14bd46cdc tree 8522ad7957ee85a7f0ab53f776afee8a05795be7 parent d0ac642d76c79c5cc673c4cdfe43e926379784e1 author Rene Herman Tue, 11 Apr 2006 14:09:37 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:55:32 +0200 [ALSA] unregister platform device again if probe was unsuccessful Unregister the platform device again if the probe was unsuccessful. This restores the behaviour of not loading the driver on probe() failure. Signed-off-by: Rene Herman Signed-off-by: Takashi Iwai commit d0ac642d76c79c5cc673c4cdfe43e926379784e1 tree 676e529b860634706ff98978d0328a71e584bc4f parent 12831c15f35dcc9f55fa63d50fd4892c7c6a0a1c author Rene Herman Tue, 11 Apr 2006 14:08:33 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:55:30 +0200 [ALSA] continue on IS_ERR from platform device registration Continue with the next one on error from device registration. This would seem the correct thing to do, even if it's not the probe() error that we're getting. Signed-off-by: Rene Herman Signed-off-by: Takashi Iwai commit 12831c15f35dcc9f55fa63d50fd4892c7c6a0a1c tree 6db15ad0ab6b4f17409bf0b6cff4eee19a8486c6 parent 73864fc634932bc827f852557f637fade0227381 author Adrian Bunk Tue, 11 Apr 2006 11:12:46 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:21 +0200 [ALSA] sound/core/pcm.c: make snd_pcm_format_name() static Modules: PCM Midlevel This patch makes the needlessly global snd_pcm_format_name() static. Signed-off-by: Adrian Bunk Signed-off-by: Takashi Iwai commit 73864fc634932bc827f852557f637fade0227381 tree e5bfb6da240b8cce6cc36feae39c8ed57eb9d17e parent e09222831336a6ae53ea09076d113a58931950cf author Takashi Iwai Mon, 10 Apr 2006 19:41:16 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:20 +0200 [ALSA] ac97 - Add entry for VIA VT1618 codec Modules: AC97 Codec Added the missing entry for VIA VT1618 codec. No particular patch is needed, though. Signed-off-by: Takashi Iwai commit e09222831336a6ae53ea09076d113a58931950cf tree 54fba9ab3bb62ae1190219225de4315b9c8f8264 parent 2462321bfe59b9c22ca1ec4ba8665a1aeac6bab5 author Takashi Iwai Mon, 10 Apr 2006 19:09:01 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:18 +0200 [ALSA] hda-codec - Add support of ASUS U5A with AD1986A codec Modules: HDA Codec driver Add the model entry to support of ASUS U5A with AD1986A codec. Signed-off-by: Takashi Iwai commit 2462321bfe59b9c22ca1ec4ba8665a1aeac6bab5 tree 9753bc52df4417a64c84a845fc02d94221599afc parent 99e80e4d0c7755d688e9db205016a0608fa989b4 author Eric Sesterhenn Mon, 10 Apr 2006 14:42:00 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:17 +0200 [ALSA] Overrun in sound/pci/au88x0/au88x0_pcm.c Modules: au88x0 driver since idx is used as an index for vortex_pcm_prettyname[VORTEX_PCM_LAST], it should not be equal to VORTEX_PCM_LAST. This fixes coverity bug id #572 Signed-off-by: Eric Sesterhenn Signed-off-by: Takashi Iwai commit 99e80e4d0c7755d688e9db205016a0608fa989b4 tree bb33c136d0a0fc66c55423fb19cab28ffd117c7b parent a29b6c8895edbd9921837b592bcd125cee64fc84 author Dale Sedivec Mon, 10 Apr 2006 11:34:44 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:15 +0200 [ALSA] au88x0 - clean up __devinit/__devexit Modules: au88x0 driver Removed all use of __devinit/__devexit and init.h from headers. Any attributes given in the prototype but not in the function definition have been moved to the definition. An exception is vortex_eq_free: I removed the __devexit attribute because vortex_eq_free is called from vortex_core_shutdown, and vortex_core_shutdown may be called from __devinit snd_vortex_create. Compile tested with allyesconfig and allmodconfig. Signed-off-by: Dale Sedivec Signed-off-by: Takashi Iwai commit a29b6c8895edbd9921837b592bcd125cee64fc84 tree c34938492eebe4a2ccc56b16160d9766368bd6c5 parent be28e7ccd34efff2160ab7d6712d248053c36461 author Ashley Clark Mon, 10 Apr 2006 11:31:03 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:13 +0200 [ALSA] hda-codec - Adds HDA support for Intel D945Pvs board with subdevice id 0x0707 Modules: HDA Codec driver This patch adds the entry for the 5-stack pin-config for the STAC chip on the Intel D945Pvs board with subdevice id 0x0707. With this patch against 1.0.11rc4 in the linux kernel 2.6.17-rc1, I'm able to successfully output over the optical port and analog ports. Signed-off-by: Ashley Clark Signed-off-by: Takashi Iwai commit be28e7ccd34efff2160ab7d6712d248053c36461 tree d864d030e591168f03718019a1129174b7e1152d parent 5b0e498537cbaeca06b4a1935be1ea2c93d4e05b author Coywolf Qi Hunt Mon, 10 Apr 2006 10:47:11 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:11 +0200 [ALSA] hda-codec - support HP Compaq Presario B2800 laptop with AD1986A codec Modules: HDA Codec driver This adds the support for HP Compaq Presario B2800 laptop with AD1986A codec. Signed-off-by: Coywolf Qi Hunt Signed-off-by: Takashi Iwai commit 5b0e498537cbaeca06b4a1935be1ea2c93d4e05b tree 5c8cc7a1986344a588327e693ab64f58701f6a42 parent a26e9d9dc710dd157beca914bb56d2fed8a29d60 author James Courtier-Dutton Sun, 09 Apr 2006 22:45:58 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:09 +0200 [ALSA] emu10k1: Add some descriptive text. Modules: EMU10K1/EMU10K2 driver Signed-off-by: James Courtier-Dutton commit a26e9d9dc710dd157beca914bb56d2fed8a29d60 tree 83704563f3b2b1a4481504da6ce5c4d8977e931d parent f556e6f6ef55d343727372e4ab35adb716c2bb4e author Takashi Iwai Thu, 06 Apr 2006 19:59:21 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:07 +0200 [ALSA] via82xx - Add a dxs entry for ECS K8T890-A Modules: VIA82xx driver Added a dxs_support entry for ECS K8T890-A board. Signed-off-by: Takashi Iwai commit f556e6f6ef55d343727372e4ab35adb716c2bb4e tree 14ecfb9736f8353429eb4082ecde64cec7e30d1a parent 1576274d30286dd048967176dc8e75e192051ff5 author Takashi Iwai Thu, 06 Apr 2006 19:58:43 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:06 +0200 [ALSA] hda-codec - Add another HP laptop with AD1981HD Modules: HDA Codec driver Added the SSID of another HP laptop for the model 'hp' with AD1981HD. Signed-off-by: Takashi Iwai commit 1576274d30286dd048967176dc8e75e192051ff5 tree 5b8304905185ec023106afc4d53c3d77f736cd76 parent bbdc1b7dbe41578da7c9a6266cf450abe97e4ca7 author Takashi Iwai Thu, 06 Apr 2006 19:47:42 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:04 +0200 [ALSA] Fix Oops of PCM OSS emulation Modules: PCM Midlevel,ALSA<-OSS emulation Fix Oops of PCM OSS emulation occuring when multiple playback is used. Signed-off-by: Takashi Iwai commit bbdc1b7dbe41578da7c9a6266cf450abe97e4ca7 tree e74c98ef9a61bd0a270867734d73be316b18705e parent a145410dccdb44f81d3b56763ef9b6f721f4e47c author OGAWA Hirofumi Thu, 06 Apr 2006 19:42:40 +0200 committer Jaroslav Kysela Wed, 12 Apr 2006 11:34:01 +0200 [ALSA] pcm_oss: fix snd_pcm_oss_release() oops Modules: ALSA<-OSS emulation Fix Oops due to a typo in snd_pcm_oss.c. Signed-off-by: OGAWA Hirofumi Signed-off-by: Takashi Iwai commit 052bb88e180d010f7da7186e6f21eea3be82a903 tree 0f82c9cb4719f4d5874841bba9f08559cc4f2fe4 parent 8db60bcf3021921e2d10d158641792d640e52fe8 author Eric Sesterhenn Tue, 11 Apr 2006 17:29:17 -0700 committer David S. Miller Tue, 11 Apr 2006 17:29:17 -0700 [ISDN]: Static overruns in drivers/isdn/i4l/isdn_ppp.c Coverity found some static overruns in isdn_ppp.c (bug id #519) At several places slot is compared <0 and > ISDN_MAX_CHANNELS and then used to index ippp_table[ISDN_MAX_CHANNELS] A value of slot = ISDN_MAX_CHANNELS would run over the end of the array. Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 8db60bcf3021921e2d10d158641792d640e52fe8 tree 3e00cf3527645140283667c306041e790b031834 parent 7ad4d2f6901437ba4717a26d395a73ea362d25c6 author Adrian Bunk Tue, 11 Apr 2006 17:28:33 -0700 committer David S. Miller Tue, 11 Apr 2006 17:28:33 -0700 [WAN]: Remove broken and unmaintained Sangoma drivers. The in-kernel Sangoma drivers are both not compiling and marked as BROKEN since at least kernel 2.6.0. Sangoma offers out-of-tree drivers, and David Mandelstam told me Sangoma does no longer maintain the in-kernel drivers and prefers to provide them as a separate installation package. This patch therefore removes these drivers. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 7ad4d2f6901437ba4717a26d395a73ea362d25c6 tree f72f0ef556e201ecb0911c5c2cad03bda2116d4f parent b8282dcf0417bbc8a0786c129fdff9cc768f8f3c author Jayachandran C Tue, 11 Apr 2006 17:25:38 -0700 committer David S. Miller Tue, 11 Apr 2006 17:25:38 -0700 [BRIDGE] ebtables: fix allocation in net/bridge/netfilter/ebtables.c Allocate an array of 'struct ebt_chainstack *', the current code allocates array of 'struct ebt_chainstack'. akpm: converted to use the foo = alloc(sizeof(*foo)) form. Which would have prevented this from happening in the first place. akpm: also removed unneeded typecast. akpm: what on earth is this code doing anyway? cpu_possible_map can be sparse.. Signed-off-by: Jayachandran C. Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit b8282dcf0417bbc8a0786c129fdff9cc768f8f3c tree f9610328753accb586949c065ee7e1f8fbae0b10 parent b7595b4955b5178e28906838cc3e8efa62d8caee author Eric Sesterhenn Mon, 10 Apr 2006 16:43:03 -0700 committer David S. Miller Tue, 11 Apr 2006 17:21:06 -0700 [DCCP]: Fix leak in net/dccp/ipv4.c we dont free req if we cant parse the options. This fixes coverity bug id #1046 Signed-off-by: Eric Sesterhenn Signed-off-by: David S. Miller commit b7595b4955b5178e28906838cc3e8efa62d8caee tree 533f93e34858a0da298418197e02b9ad8d4f95b6 parent f6596f9d2b4f0255f6cd68c76b85fe4cec6352af author Stephen Hemminger Mon, 10 Apr 2006 16:38:47 -0700 committer David S. Miller Tue, 11 Apr 2006 17:21:05 -0700 [BRIDGE]: receive link-local on disabled ports. This change allows link local packets (like 802.3ad and Spanning Tree Protocol) to be processed even when the bridge is not using the port. It fixes the chicken-egg problem for bridging a bonded device, and may also fix problems with spanning tree failover. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit f6596f9d2b4f0255f6cd68c76b85fe4cec6352af tree 6e95cca360198b2e546904d17760ba71d1dc5ee8 parent a145410dccdb44f81d3b56763ef9b6f721f4e47c author Zach Brown Mon, 10 Apr 2006 16:05:34 -0700 committer David S. Miller Tue, 11 Apr 2006 17:21:05 -0700 [IPv6] reassembly: Always compute hash under the fragment lock. This closes a race where an ipq6hashfn() caller could get a hash value and race with the cycling of the random seed. By the time they got to the read_lock they'd have a stale hash value and might not find previous fragments of their datagram. This matches the previous patch to IPv4. Signed-off-by: Zach Brown Signed-off-by: David S. Miller commit a145410dccdb44f81d3b56763ef9b6f721f4e47c tree a2e6635223890acb3191332eb7ba7835fbd24586 parent 2514395ef88b46e895726a8d40966cb83de7940c author Oleg Nesterov Tue, 11 Apr 2006 22:18:58 +0400 committer Linus Torvalds Tue, 11 Apr 2006 07:34:01 -0700 [PATCH] __group_complete_signal: remove bogus BUG_ON Commit e56d090310d7625ecb43a1eeebd479f04affb48b [PATCH] RCU signal handling made this BUG_ON() unsafe. This code runs under ->siglock, while switch_exec_pids() takes tasklist_lock. Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds commit 2514395ef88b46e895726a8d40966cb83de7940c tree 216c6e194e81bdd9c97697cf162cc9505bde310a parent b3967dc566bc89df19e9aeb87b2fd483418b02e6 parent b5ac4817de3032796c558b0a32062e7392b5ea60 author Linus Torvalds Tue, 11 Apr 2006 06:41:02 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:41:02 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: kconfig: fix typo in change count initialization kconfig: recenter menuconfig kconfig: revert conf behaviour change kconfig: fix default value for choice input kbuild: fix NULL dereference in scripts/mod/modpost.c kbuild: fix mode of checkstack.pl and other files. kbuild: rebuild initramfs if content of initramfs changes kbuild: properly pass options to hostcc when doing make O=.. kbuild: modules_install for external modules must not remove existing modules kbuild: fix make dir/ ver_linux: don't print reiser4progs version if none found kbuild: mips: fix sed regexp to generate asm-offset.h kbuild: fix building single targets with make O=.. single-target kbuild: use relative path to -I kbuild: fix unneeded rebuilds in drivers/net/chelsio after moving source tree kbuild: fix unneeded rebuilds in drivers/media/video after moving source tree kbuild: fix garbled text in modules.txt commit b3967dc566bc89df19e9aeb87b2fd483418b02e6 tree 97a0fff4c1d59e3395f6b6f9d4a226da3bf58d28 parent cde227afe6b997dce08bcfc2aa6e373fb56857b0 parent 0ffe984917b9cd6ecc19ffbc06f35869d8c18df8 author Linus Torvalds Tue, 11 Apr 2006 06:40:17 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:40:17 -0700 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] Prefetch mmap_sem in ia64_do_page_fault() [IA64] Failure to resume after INIT in user space [IA64] Pass more data to the MCA/INIT notify_die hooks [IA64] always map VGA framebuffer UC, even if it supports WB [IA64] fix bug in ia64 __mutex_fastpath_trylock [IA64] for_each_possible_cpu: ia64 [IA64] update HP CSR space discovery via ACPI [IA64] Wire up new syscalls {set,get}_robust_list [IA64] 'msg' may be used uninitialized in xpc_initiate_allocate() [IA64] Wire up new syscall sync_file_range() commit cde227afe6b997dce08bcfc2aa6e373fb56857b0 tree 45b0bc04f54a830d0c3cd3a5afb46fcf7679a4dc parent 44b940c299dfaaf25b7aad683ff55cb213502ddd author mao, bibo Tue, 11 Apr 2006 12:54:54 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] x86_64: inline function prefix with __always_inline in vsyscall In vsyscall function do_vgettimeofday(), some functions are declared as inlined, which is a hint for gcc to compile the function inlined but it not forced. Sometimes compiler does not compile the function as inlined, so here inline is replaced by __always_inline prefix. It does not happen in gcc compiler actually, but it possibly happens. Signed-off-by: bibo mao Signed-off-by: Linus Torvalds commit 44b940c299dfaaf25b7aad683ff55cb213502ddd tree 1b7397f5a661d467414dfee4709be40c29306afe parent ecc16ba96fd5b1a1c1988f0a2b05ff954bdff728 author Andi Kleen Tue, 11 Apr 2006 12:54:51 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] x86_64: Fix embarassing typo in mmconfig bus check Surprising that it still worked at all with this - yes it was tested. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit ecc16ba96fd5b1a1c1988f0a2b05ff954bdff728 tree 57a994d0741ddef2c869db0ef83d3456cc6a13df parent 3d8a4d795cc1ffa6be5371629ca6c3431af4c2d5 author Andi Kleen Tue, 11 Apr 2006 12:54:48 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] i386/x86-64: Remove checks for value == NULL in PCI config space access Nobody should pass NULL here. Could in theory make it a BUG, but the NULL pointer oops will do as well. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 3d8a4d795cc1ffa6be5371629ca6c3431af4c2d5 tree 40c0935f4d5f6235a35c50733d23b7cad4ea7f00 parent e4cff6ac78e9c3bbb90c0e01b20418eeae0c6b52 author Andi Kleen Tue, 11 Apr 2006 12:54:45 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] i386: Remove bogus special case code from AMD core parsing It's not actually needed and would break non power of two number of cores. Follows similar earlier x86-64 patch. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit e4cff6ac78e9c3bbb90c0e01b20418eeae0c6b52 tree 8238a3c16227089250de19a6ab0fc0a8ec939b36 parent 97a4d00388db4f0bfa37425b31d7d9751ea649db author Siddha, Suresh B Tue, 11 Apr 2006 12:54:42 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] x86_64: fix sync before RDTSC on Intel cpus Commit c818a18146997d1356a4840b0c01f1168c16c8a4 didn't do the expected thing. This fix will remove the additional sync(cpuid) before RDTSC on Intel platforms.. Signed-off-by: Suresh Siddha Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 97a4d00388db4f0bfa37425b31d7d9751ea649db tree 3713eb2e7e69461108899b799b8030ae30cb2c14 parent 0fcd270901f731342df64816f277ae7adbd67130 author Andi Kleen Tue, 11 Apr 2006 12:54:39 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] x86_64: Remove check for canonical RIP As pointed out by Linus it is useless now because entry.S should handle it correctly in all cases. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 0fcd270901f731342df64816f277ae7adbd67130 tree 44dc15a768c5bcac8678dab19c537ba6a6e8a7d6 parent 88dd9c16cecbd105bbe7711b6120333f6f7b5474 author Andi Kleen Tue, 11 Apr 2006 12:54:36 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:38:57 -0700 [PATCH] x86-64/i386: Don't process APICs/IO-APICs in ACPI when APIC is disabled. When nolapic was passed or the local APIC was disabled for another reason ACPI would still parse the IO-APICs until these were explicitely disabled with noapic. Usually this resulted in a non booting configuration unless "nolapic noapic" was used. I also disabled the local APIC parsing in this case, although that's only cosmetic (suppresses a few printks) This hopefully makes nolapic work in all cases. Cc: Len Brown Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 88dd9c16cecbd105bbe7711b6120333f6f7b5474 tree 9632e5988abeaa7e4d20350305edc4e4652b56d1 parent 6dde432553551ae036aae12c2b940677d36c9a5b parent d1195c516a9acd767cb541f914be2c6ddcafcfc1 author Linus Torvalds Tue, 11 Apr 2006 06:34:02 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:34:02 -0700 Merge branch 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block * 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block: [PATCH] vfs: add splice_write and splice_read to documentation [PATCH] Remove sys_ prefix of new syscalls from __NR_sys_* [PATCH] splice: warning fix [PATCH] another round of fs/pipe.c cleanups [PATCH] splice: comment styles [PATCH] splice: add Ingo as addition copyright holder [PATCH] splice: unlikely() optimizations [PATCH] splice: speedups and optimizations [PATCH] pipe.c/fifo.c code cleanups [PATCH] get rid of the PIPE_*() macros [PATCH] splice: speedup __generic_file_splice_read [PATCH] splice: add direct fd <-> fd splicing support [PATCH] splice: add optional input and output offsets [PATCH] introduce a "kernel-internal pipe object" abstraction [PATCH] splice: be smarter about calling do_page_cache_readahead() [PATCH] splice: optimize the splice buffer mapping [PATCH] splice: cleanup __generic_file_splice_read() [PATCH] splice: only call wake_up_interruptible() when we really have to [PATCH] splice: potential !page dereference [PATCH] splice: mark the io page as accessed commit 6dde432553551ae036aae12c2b940677d36c9a5b tree 2998fe9a1f6517717a7433f2fcf318b176fc1492 parent 397eeab321e87d8c1ef928b58f256513e6f481dc author Matthias Urlichs Tue, 11 Apr 2006 05:01:44 +0200 committer Linus Torvalds Tue, 11 Apr 2006 06:24:15 -0700 [PATCH] Overrun in option-card USB driver Since the arrays are declared as in_urbs[N_IN_URB] and out_urbs[N_OUT_URB], both for loops go one over the end of the array. This fixes coverity id #555. Signed-off-by: Eric Sesterhenn Signed-Off-By: Matthias Urlichs Signed-Off-By: Linus Torvalds commit 397eeab321e87d8c1ef928b58f256513e6f481dc tree 01bdc74a00ef159b2be1eafd7c8b4010555d7a87 parent 89ec4c238e7a3d7e660291f3f1a8181381baad77 author Antonino A. Daplas Mon, 10 Apr 2006 22:55:49 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:54 -0700 [PATCH] fbdev: Use logo with depth of 4 or less for static pseudocolor Since the visual STATIC_PSEUDOCOLOR has a read-only colormap, use logos with 16 colors only since these logos use the console palette. This has a higher likelihood that the logo will display correctly. Signed-of-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 89ec4c238e7a3d7e660291f3f1a8181381baad77 tree 8ba2ab49cea71cfff21ee7a56717f83746cb8d0c parent ac50ab3e45436900b5d73edd0c6b0744af560535 author Antonino A. Daplas Mon, 10 Apr 2006 22:55:48 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:54 -0700 [PATCH] vesafb: Fix incorrect logo colors in x86_64 Bugzilla Bug 6299: A pixel size of 8 bits produces wrong logo colors in x86_64. The driver has 2 methods for setting the color map, using the protected mode interface provided by the video BIOS and directly writing to the VGA registers. The former is not supported in x86_64 and the latter is enabled only in i386. Fix by enabling the latter method in x86_64 only if supported by the BIOS. If both methods are unsupported, change the visual of vesafb to STATIC_PSEUDOCOLOR. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ac50ab3e45436900b5d73edd0c6b0744af560535 tree bbf18fb48ce262cb024a2e459eaa6bc0fa7512b9 parent f2e782efb0876214c77a48e8e67248125f1607c1 author Andrew Morton Mon, 10 Apr 2006 22:55:47 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:54 -0700 [PATCH] sparc32 vga support sparc32 lacks vga.h, so lots of fbdev drivers won't compile. There are no sparc32 systems with PCI slots, so it's a bit moot. The patch gives sparc32 a copy of the sparc64 vga.h. It fixes sparc32 allmodconfig without mucking up fbdev Kconfig and gives us wider compile coverage. Cc: "Antonino A. Daplas" Acked-by: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f2e782efb0876214c77a48e8e67248125f1607c1 tree f6a6bdf62917d6e94fa7e483cb21ce1e8ee34b76 parent 9ec85c03d045d5ec24d6f15649a68646aefe88ba author Andrew Morton Mon, 10 Apr 2006 22:55:45 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:54 -0700 [PATCH] atyfb is bust on sparc32 Heaps of build errors - disable it to keep sparc32 allmodconfig happy. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9ec85c03d045d5ec24d6f15649a68646aefe88ba tree b2f5e983ac0bf99a7e9c0a57444cd38c9b7568e6 parent 358dd55aa3a77fbbae482b83d96733d9ad441d05 author Adrian Bunk Mon, 10 Apr 2006 22:55:45 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:53 -0700 [PATCH] video/aty/atyfb_base.c: fix an off-by-one error Fix an obvious of-by-one error spotted by the Coverity checker. Signed-off-by: Adrian Bunk Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 358dd55aa3a77fbbae482b83d96733d9ad441d05 tree d72352df2fc26e94a22202917df7db13c9563085 parent ef0f3390ebedac78bff1936bbb26606bca83e891 author NeilBrown Mon, 10 Apr 2006 22:55:42 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:53 -0700 [PATCH] knfsd: nfsd4: grant delegations more frequently Keep unused openowners around for at least one lease period, to avoid the need for as many open confirmations and to allow handing out more delegations. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ef0f3390ebedac78bff1936bbb26606bca83e891 tree 86fceb6260a80b9d3ba41b13371b2be73198c300 parent 4e2fd495b520b51e4ba83340f13520b7f07e3743 author NeilBrown Mon, 10 Apr 2006 22:55:41 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:53 -0700 [PATCH] knfsd: nfsd4: limit number of delegations handed out. It's very easy for the server to DOS itself by just giving out too many delegations. For now we just solve the problem with a dumb hard limit. Eventually we'll want a smarter policy. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4e2fd495b520b51e4ba83340f13520b7f07e3743 tree 91bc6f41267df3e19a71016546484edb7e648527 parent 541e0e09814594e907e18fb8d9fc9b746aa4b18a author NeilBrown Mon, 10 Apr 2006 22:55:39 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:53 -0700 [PATCH] knfsd: nfsd4: add missing rpciod_down() We should be shutting down rpciod for the callback channel when we shut down the server. Also note that we do rpciod_up() and create the callback client *before* setting cb_set--the cb_set only determines whether the initial null was succesful. So cb_set is not a reliable determiner of whether we need to clean up, only cb_client is. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 541e0e09814594e907e18fb8d9fc9b746aa4b18a tree a411c62cb60e168db6906583f4146c67e6d8f3a1 parent 5e8d5c29482dc56de5971ddc99c6e7f69e4d16f6 author NeilBrown Mon, 10 Apr 2006 22:55:38 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:53 -0700 [PATCH] knfsd: nfsd4: nfsd4_probe_callback cleanup Some obvious cleanup. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5e8d5c29482dc56de5971ddc99c6e7f69e4d16f6 tree fe50096b5742960ff6bcccbb053c1f9b379916c8 parent 6f54e2d0d3a904e55c9c50b78542072f6c42080e author NeilBrown Mon, 10 Apr 2006 22:55:37 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: nfsd4: fix laundromat shutdown race We need to make sure the laundromat work doesn't reschedule itself just when we try to cancel it. Also, we shouldn't be waiting for it to finish running while holding the state lock, as that's a potential deadlock. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6f54e2d0d3a904e55c9c50b78542072f6c42080e tree cde5f03d8e80477c7bebcde0e41c48df85dd9846 parent dfee55f06213a23b250ea63ba41caa461cdd5e72 author J. Bruce Fields Mon, 10 Apr 2006 22:55:36 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: svcrpc: WARN() instead of returning an error from svc_take_page Every caller of svc_take_page ignores its return value and assumes it succeeded. So just WARN() instead of returning an ignored error. This would have saved some time debugging a recent nfsd4 problem. If there are still failure cases here, then the result is probably that we overwrite an earlier part of the reply while xdr-encoding. While the corrupted reply is a nasty bug, it would be worse to panic here and create the possibility of a remote DOS; hence WARN() instead of BUG(). Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Cc: Ingo Oeser Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dfee55f06213a23b250ea63ba41caa461cdd5e72 tree cfee86e10c5f5406bf7f1fa98c2b5d73d66d259b parent bb6e8a9f4005237401a45f1ea43db060ea5f9725 author NeilBrown Mon, 10 Apr 2006 22:55:34 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: svcrpc: gss: don't call svc_take_page unnecessarily We're using svc_take_page here to get another page for the tail in case one wasn't already allocated. But there isn't always guaranteed to be another page available. Also fix a typo that made us check the tail buffer for space when we meant to be checking the head buffer. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bb6e8a9f4005237401a45f1ea43db060ea5f9725 tree b1e0b144964691eb3b5ea241a4e686adcba2824c parent 6ed6decccf544970664757464cfb67e081775e6a author NeilBrown Mon, 10 Apr 2006 22:55:33 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: nfsd4: fix corruption on readdir encoding with 64k pages Fix corruption on readdir encoding with 64k pages. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ed6decccf544970664757464cfb67e081775e6a tree 9aa6b62856426e5aba7f34b3bbc9b24c87a54b87 parent f0e2993e9e73e8f38b05a89c98b9db94fec2199d author NeilBrown Mon, 10 Apr 2006 22:55:32 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: nfsd4: fix corruption of returned data when using 64k pages In v4 we grab an extra page just for the padding of returned data. The formula that the rpc server uses to allocate pages for the response doesn't take into account this extra page. Instead of adjusting those formulae, we adopt the same solution as v2 and v3, and put the "tail" data in the same page as the "head" data. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f0e2993e9e73e8f38b05a89c98b9db94fec2199d tree b7dd2e5c7284e8422966c8498bdd87e08ef5e4f8 parent 54cceebb679a8d10fa382422aa2035cdc65fe7ce author NeilBrown Mon, 10 Apr 2006 22:55:31 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: nfsd4: remove nfsd_setuser from putrootfh Since nfsd_setuser() is already called from any operation that uses the current filehandle (because it's called from fh_verify), there's no reason to call it from putrootfh. Signed-off-by: Andy Adamson Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 54cceebb679a8d10fa382422aa2035cdc65fe7ce tree 745908146565ba6e936b2faa977c5aa5a4602ed4 parent cd15654963cf7e4dd938a403de3ec5bcd09f8350 author NeilBrown Mon, 10 Apr 2006 22:55:30 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: nfsd: nfsd_setuser doesn't really need to modify rqstp->rq_cred. In addition to setting the processes filesystem id's, nfsd_setuser also modifies the value of the rq_cred which stores the id's that originally came from the rpc call, for example to reflect root squashing. There's no real reason to do that--the only case where rqstp->rq_cred is actually used later on is in the NFSv4 SETCLIENTID/SETCLIENTID_CONFIRM operations, and there the results are the opposite of what we want--those two operations don't deal with the filesystem at all, they only record the credentials used with the rpc call for later reference (so that we may require the same credentials be used on later operations), and the credentials shouldn't vary just because there was or wasn't a previous operation in the compound that referred to some export This fixes a bug which caused mounts from Solaris clients to fail. Signed-off-by: Andy Adamson Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cd15654963cf7e4dd938a403de3ec5bcd09f8350 tree a7bc0135754b42d3e1bb49bb685a6fea2547c12e parent b5872b0dcc0501035d5ae53c60f8cbbb3798da8a author NeilBrown Mon, 10 Apr 2006 22:55:27 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:52 -0700 [PATCH] knfsd: nfsd: oops exporting nonexistent directory Export a directory that does not exist: exportfs -orw,fsid=0,insecure,no_subtree_check client:/home/NFS4 Try to mount from client with nfs4. Mount hangs (I'm not sure why - that's another issue). While client is hung, back on server mkdir /home/NFS4 The server panics in dput. I traced the problem back to svc_export_parse() calling path_release() even though path_lookup() failed (it happens to fill in the nameidata structure with a negative dentry - so the test after out: succeeds). After patching, an recreating the problem, the client mount still takes some time before finally exiting with a message "couldn't read superblock". Here is a simple patch to resolve this issue: Signed-off-by: Frank Filz Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b5872b0dcc0501035d5ae53c60f8cbbb3798da8a tree 8f0baf4103c0e5b5b97eea35cc9f416fdedd86cf parent b905b7b0a054d2ab3e0c9304def998546c93f6b5 author NeilBrown Mon, 10 Apr 2006 22:55:26 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] knfsd: nfsd4: fix acl xattr length return We should be using the length from the second vfs_getxattr, in case it changed. (Note: there's still a small race here; we could end up returning -ENOMEM if the length increased between the first and second call. I don't know whether it's worth spending a lot of effort to fix that.) This makes XFS ACLs usable on NFS exports, which they currently aren't, since XFS appears to be returning a too-large value for vfs_getxattr() when it's passed a NULL buffer. So there's probably an XFS bug here too, though since getxattr with a NULL buffer is usually used to decide how much memory to allocate, it may be a fairly harmless bug in most cases. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b905b7b0a054d2ab3e0c9304def998546c93f6b5 tree 688aaf8ee7840072a1ea7b4b299068d6e33a1840 parent 249920527f9e6e5c305538bbf1ea882ee7dc1c06 author NeilBrown Mon, 10 Apr 2006 22:55:25 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] knfsd: nfsd4: better nfs4acl errors We're returning -1 in a few places in the NFSv4<->POSIX acl translation code where we could return a reasonable error. Also allows some minor simplification elsewhere. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 249920527f9e6e5c305538bbf1ea882ee7dc1c06 tree 39c2a10a05f75a23cca797727649f4e231385610 parent e465a77f943f51df1a169426df879340bd0db3f3 author NeilBrown Mon, 10 Apr 2006 22:55:24 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] knfsd: nfsd4: Wrong error handling in nfs4acl this fixes coverity id #3. Coverity detected dead code, since the == -1 comparison only returns 0 or 1 to error. Therefore the if ( error < 0 ) statement was always false. Seems that this was an if( error = nfs4... ) statement some time ago, which got broken during cleanup. Signed-off-by: Eric Sesterhenn Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e465a77f943f51df1a169426df879340bd0db3f3 tree a9f11a318fd0ce3df430520a5c14c84e130402c4 parent d5b9026a670fdb404e6e2e2e0a1b447e9ea9c1f6 author Adrian Bunk Mon, 10 Apr 2006 22:55:23 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] fs/nfsd/nfs4state.c: make a struct static Signed-off-by: Adrian Bunk Cc: Marc Eshel Cc: Andy Adamson Cc: J. Bruce Fields Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d5b9026a670fdb404e6e2e2e0a1b447e9ea9c1f6 tree e657e09e5e1eb43f163775d1b8e599131516a67a parent 7775f4c85dcbd1175f21b2fbb7221c79ec70b722 author NeilBrown Mon, 10 Apr 2006 22:55:22 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] knfsd: locks: flag NFSv4-owned locks Use the fl_lmops field to identify which locks are ours, instead of trying to look them up in our private hash. This is safer and more efficient. Earlier versions of this patch used a lock flag instead, but Trond pointed out that adding a new flag for each lock manager wasn't going to scale well, and suggested this approach instead; a separate patch converts lockd to using fl_lmops in the same way. In the NFSv4 case this looks like a bit of a hack, since the NFSv4 server isn't currently actually defining a lock_manager_operations struct, so we end up defining one *just* to serve as a cookie to identify our locks. But it works, and we actually do expect to start using the lock_manager_operations at some point anyway. Signed-off-by: Marc Eshel Signed-off-by: Andy Adamson Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7775f4c85dcbd1175f21b2fbb7221c79ec70b722 tree 40bc57f1192d19942630d7490d50f387d533c160 parent df2487cff5e5be2877594f269b014652536d68bb author NeilBrown Mon, 10 Apr 2006 22:55:20 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] knfsd: Correct reserved reply space for read requests. NFSd makes sure there is enough space to hold the maximum possible reply before accepting a request. The units for this maximum is (4byte) words. However in three places, particularly for read request, the number given is a number of bytes. This means too much space is reserved which is slightly wasteful. This is the sort of patch that could uncover a deeper bug, and it is not critical, so it would be best for it to spend a while in -mm before going in to mainline. (akpm: target 2.6.17-rc2, 2.6.16.3 (approx)) Discovered-by: "Eivind Sarto" Signed-off-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit df2487cff5e5be2877594f269b014652536d68bb tree 4d17e64909e8d1d1bf63b9d8e9b04c15ef0f6a0c parent f4675c7016484220a62069d87958a2873d92f159 author Adrian Bunk Mon, 10 Apr 2006 22:55:19 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] ISDN_DRV_GIGASET should select, not depend on CRC_CCITT CRC_CCITT is an internal helper function that should be select'ed. Signed-off-by: Adrian Bunk Acked-by: Tilman Schmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f4675c7016484220a62069d87958a2873d92f159 tree e46542b35921773f947c6efa5bb38b1a885f288c parent 8ca445df3a3291c2bdd95b91142c079700a688be author Adrian Bunk Mon, 10 Apr 2006 22:55:19 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:51 -0700 [PATCH] isdn/gigaset/common.c: fix a memory leak Fix a memory leak spotted by the Coverity checker if (!try_module_get(owner)). Signed-off-by: Adrian Bunk Acked-by: Tilman Schmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8ca445df3a3291c2bdd95b91142c079700a688be tree 79c69d17e536778ecde792c75bbb37eaddefc17f parent 69049cc87dccb1e6fb54aa25c63033efac805dbd author Adrian Bunk Mon, 10 Apr 2006 22:55:18 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] drivers/isdn/gigaset/common.c: small cleanups - make the needlessly global gigaset_get_cs_by_tty() static - remove the unused EXPORT_SYMBOL_GPL(gigaset_debugdrivers) Signed-off-by: Adrian Bunk Acked-by: Tilman Schmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 69049cc87dccb1e6fb54aa25c63033efac805dbd tree 9db1953a831091335b98f8749865f4c8b410ff9b parent 27d1ac2ef7d0b9250ca9fd2ef506e12866ce8fdf author Tilman Schmidt Mon, 10 Apr 2006 22:55:16 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: make some variables non-atomic With Hansjoerg Lipp Replace some atomic_t variables in the Gigaset drivers by non-atomic ones, using spinlocks instead to assure atomicity, as proposed in discussions on the linux-kernel mailing list. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 27d1ac2ef7d0b9250ca9fd2ef506e12866ce8fdf tree 131961534606860e0d2bc17901cd92264e203bb6 parent 70440cf24ce6841fc5a01c38e2a732cf0bc2792a author Tilman Schmidt Mon, 10 Apr 2006 22:55:15 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: add README With Hansjoerg Lipp Add a README file for the Siemens Gigaset drivers to the Documentation/isdn directory. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 70440cf24ce6841fc5a01c38e2a732cf0bc2792a tree 712fb3d0dea87e1e2750f395bb84d83b9a003c9a parent 443e1f45ac1fee498e3ff053c61fcc54024ee6ee author Tilman Schmidt Mon, 10 Apr 2006 22:55:14 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: remove forward references With Hansjoerg Lipp Remove four unnecessary forward function declarations and an obsolete E-mail address from the Siemens Gigaset drivers. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 443e1f45ac1fee498e3ff053c61fcc54024ee6ee tree 9f837cc00736ddfc57d74b5a74b6785991f907fc parent abfd1dc7c18e4be89715071a524324c7b2515565 author Tilman Schmidt Mon, 10 Apr 2006 22:55:13 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: remove private version of __skb_put() With Hansjoerg Lipp Remove the private version of __skb_put() from the Siemens Gigaset drivers. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit abfd1dc7c18e4be89715071a524324c7b2515565 tree 84109f661246b66b2a7503164ec41e4382e37812 parent 01371500b245ae63f542d74140a3d8ccb74d0318 author Tilman Schmidt Mon, 10 Apr 2006 22:55:12 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: mutex conversion With Hansjoerg Lipp Convert the semaphores used by the Gigaset drivers to mutexes. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 01371500b245ae63f542d74140a3d8ccb74d0318 tree 8c758e86e3b6266c742b08111d53ac5bd21c0cbe parent 714e8236e5ea9d39169761c546274ceb7eeb765f author Tilman Schmidt Mon, 10 Apr 2006 22:55:11 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: eliminate from_user argument With Hansjoerg Lipp Eliminate the from_user argument from a debugging function, thus easing the job of sparse. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 714e8236e5ea9d39169761c546274ceb7eeb765f tree ff24b813867d9461abe2bc042034d5afdd4ceae1 parent d48c77841a71ba552ef4e6a862642073652f4473 author Tilman Schmidt Mon, 10 Apr 2006 22:55:09 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:50 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: uninline With Hansjoerg Lipp Uninline a function which was slightly too big to warrant inlining. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d48c77841a71ba552ef4e6a862642073652f4473 tree 98e76d8bd9962eba7f5897e9d24acacc88b4e1f6 parent b1d47464c947f08125dc4ac4a2321ced9e2fed29 author Tilman Schmidt Mon, 10 Apr 2006 22:55:08 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: remove IFNULL macros With Hansjoerg Lipp Remove the IFNULL debugging macros from the Gigaset drivers. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b1d47464c947f08125dc4ac4a2321ced9e2fed29 tree 6a977f4335c5a2ab734779fb52565c81eb61bb1b parent 784d5858aac58c06608def862d73ae9a32f5ee23 author Tilman Schmidt Mon, 10 Apr 2006 22:55:07 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: sysfs usage With Hansjoerg Lipp Correct the way the Gigaset drivers create their sysfs entries. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 784d5858aac58c06608def862d73ae9a32f5ee23 tree 992ba2e122df6fc90a935dcc1629186bc7e168ac parent ec81b5e6294088dc4738d0e8c2316c0dc081215c author Tilman Schmidt Mon, 10 Apr 2006 22:55:04 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: logging usage With Hansjoerg Lipp Improve error reporting of the Gigaset drivers, by using the dev_err/dev_warn/dev_info macros from device.h instead of err/warn/info from usb.h whereever possible. Also rename the private dbg macro to gig_dbg in order to avoid confusion with the macro of the same name in usb.h. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ec81b5e6294088dc4738d0e8c2316c0dc081215c tree c78b16feffafeed5ffa77da2d5afb5a6552a2a25 parent bd0d6ef944f992c584152dbfca99188107bf2f8d author Tilman Schmidt Mon, 10 Apr 2006 22:55:03 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: timer usage With Hansjoerg Lipp Correct timer usage in the Gigaset drivers to take advantage of the existing setup_timer() function, and use milliseconds as unit. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bd0d6ef944f992c584152dbfca99188107bf2f8d tree 6211aa731b857da8d0d7270d098c40854d2ae948 parent 917f5085ddb3498033551e711fb22f48ddeb8378 author Tilman Schmidt Mon, 10 Apr 2006 22:55:02 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: Kconfig correction With Hansjoerg Lipp Remove the restriction to build the Gigaset drivers as modules only. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 917f5085ddb3498033551e711fb22f48ddeb8378 tree ff67547a8f4cbf27e4a30b795635778d8e6cc79d parent 08a53cdce62d37d918530bbbf726cc01b21dc3d1 author Tilman Schmidt Mon, 10 Apr 2006 22:55:00 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] isdn4linux: Siemens Gigaset drivers: code cleanup With Hansjoerg Lipp Source code formatting cleanups for the Siemens Gigaset drivers, such as line length, comments, removal of unused declarations, and typo corrections. It does not introduce any functional changes. Signed-off-by: Hansjoerg Lipp Signed-off-by: Tilman Schmidt Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 08a53cdce62d37d918530bbbf726cc01b21dc3d1 tree 2db5e37737da91f1b2b32136e4e10ad540d8dc09 parent ce1d5a491f0ee50560416a73faa5e4ddbab074bd author Miklos Szeredi Mon, 10 Apr 2006 22:54:59 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] fuse: account background requests The previous patch removed limiting the number of outstanding requests. This patch adds a much simpler limiting, that is also compatible with file locking operations. A task may have at most one synchronous request allocated. So these requests need not be otherwise limited. However the number of background requests (release, forget, asynchronous reads, interrupted requests) can grow indefinitely. This can be used by a malicous user to cause FUSE to allocate arbitrary amounts of unswappable kernel memory, denying service. For this reason add a limit for the number of background requests, and block allocations of new requests until the number goes bellow the limit. Also use this mechanism to block all requests until the INIT reply is received. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ce1d5a491f0ee50560416a73faa5e4ddbab074bd tree 21f91d983b467ad05df0213f54fe00aad84e5761 parent a87046d822f2d982d25b24c4a644d34f22d4888a author Miklos Szeredi Mon, 10 Apr 2006 22:54:58 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:49 -0700 [PATCH] fuse: clean up request accounting FUSE allocated most requests from a fixed size pool filled at mount time. However in some cases (release/forget) non-pool requests were used. File locking operations aren't well served by the request pool, since they may block indefinetly thus exhausting the pool. This patch removes the request pool and always allocates requests on demand. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a87046d822f2d982d25b24c4a644d34f22d4888a tree 582a3a2a89015bf09ad9a73df8d06cd7272b3b46 parent d713311464bcca73c990d1a1b5c9467eae87f5b4 author Miklos Szeredi Mon, 10 Apr 2006 22:54:56 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:48 -0700 [PATCH] fuse: consolidate device errors Return consistent error values for the case when the opened device file has no mount associated yet. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d713311464bcca73c990d1a1b5c9467eae87f5b4 tree d049e9655bebed5212cd3534961d354e51c2769f parent 0720b315976447cba3f0c3e211223b8cb82b0f93 author Miklos Szeredi Mon, 10 Apr 2006 22:54:55 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:48 -0700 [PATCH] fuse: use a per-mount spinlock Remove the global spinlock in favor of a per-mount one. This patch is basically find & replace. The difficult part has already been done by the previous patch. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0720b315976447cba3f0c3e211223b8cb82b0f93 tree b8013f53bca7a72670961ea6f439612d1c631283 parent e5ac1d1e70a8c19a65a959d73650203df7a2e168 author Miklos Szeredi Mon, 10 Apr 2006 22:54:55 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:48 -0700 [PATCH] fuse: simplify locking This is in preparation for removing the global spinlock in favor of a per-mount one. The only critical part is the interaction between fuse_dev_release() and fuse_fill_super(): fuse_dev_release() must see the assignment to file->private_data, otherwise it will leak the reference to fuse_conn. This is ensured by the fput() operation, which will synchronize the assignment with other CPU's that may do a final fput() soon after this. Also redundant locking is removed from fuse_fill_super(), where exclusion is already ensured by the BKL held for this function by the VFS. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e5ac1d1e70a8c19a65a959d73650203df7a2e168 tree e3efd114e3350c270d3693266d38d07eaedae757 parent 385a17bfc3cb035333c8a91eddc78a6e04c4625e author Jeff Dike Mon, 10 Apr 2006 22:54:53 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:48 -0700 [PATCH] fuse: add O_NONBLOCK support to FUSE device I don't like duplicating the connected and list_empty tests in fuse_dev_readv, but this seemed cleaner than adding the f_flags test to request_wait. Signed-off-by: Jeff Dike Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 385a17bfc3cb035333c8a91eddc78a6e04c4625e tree 7a9fde77c95f0e4cc86f31e8b1f5d23b6d815634 parent 7025d9ad10a38dadef8b286e0092731c2d3cdc53 author Jeff Dike Mon, 10 Apr 2006 22:54:52 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:48 -0700 [PATCH] fuse: add O_ASYNC support to FUSE device This adds asynchronous notification to FUSE - a FUSE server can request O_ASYNC on a /dev/fuse file descriptor and receive SIGIO when there is input available. One subtlety - fuse_dev_fasync, which is called when O_ASYNC is requested, does no locking, unlink the other methods. I think it's unnecessary, as the fuse_conn.fasync list is manipulated only by fasync_helper and kill_fasync, which provide their own locking. It would also be wrong to use the fuse_lock, as it's a spin lock and fasync_helper can sleep. My one concern with this is the fuse_conn going away underneath fuse_dev_fasync - sys_fcntl takes a reference on the file struct, so this seems not to be a problem. Signed-off-by: Jeff Dike Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7025d9ad10a38dadef8b286e0092731c2d3cdc53 tree 054f5ce4a0b7a0d3793e66f094af4905a68d1896 parent d3406ffa4af8af1d7c14cff06e003eb0a557d4ad author Miklos Szeredi Mon, 10 Apr 2006 22:54:50 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] fuse: fix fuse_dev_poll() return value fuse_dev_poll() returned an error value instead of a poll mask. Luckily (or unluckily) -ENODEV does contain the POLLERR bit. There's also a race if filesystem is unmounted between fuse_get_conn() and spin_lock(), in which case this event will be missed by poll(). Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d3406ffa4af8af1d7c14cff06e003eb0a557d4ad tree e521174613659a167f56e9890c403f9fa95a50ca parent 3e16f6afb267c0256416d481862ce8019c33417d author Miklos Szeredi Mon, 10 Apr 2006 22:54:49 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] fuse: fix oops in fuse_send_readpages() During heavy parallel filesystem activity it was possible to Oops the kernel. The reason is that read_cache_pages() could skip pages which have already been inserted into the cache by another task. Occasionally this may result in zero pages actually being sent, while fuse_send_readpages() relies on at least one page being in the request. So check this corner case and just free the request instead of trying to send it. Reported and tested by Konstantin Isakov. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3e16f6afb267c0256416d481862ce8019c33417d tree 21f726fc2a7a466452bb5f0dd945bf5c728a8572 parent 8417eb7a168eee8b9baa744ee5c591868e85529a author Alessandro Zummo Mon, 10 Apr 2006 22:54:48 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: VR41XX cleanup Clean up kconfig entry for the rtc-vr41xx. Signed-off-by: Alessandro Zummo Cc: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8417eb7a168eee8b9baa744ee5c591868e85529a tree 24ead87700250799a14f257e7d259b50d550f30c parent 2260a25c93cb356e834f1ab08b419f9897c977b7 author Yoichi Yuasa Mon, 10 Apr 2006 22:54:47 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: VR41XX driver This patch updates VR4100 series RTC driver. * This driver supports new RTC subsystem. * Simple set time/read time test worked fine. Signed-off-by: Yoichi Yuasa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2260a25c93cb356e834f1ab08b419f9897c977b7 tree 48380a5486d500d38a457a741ab00641999db083 parent d1d65b7712016ca5ff2e44470eb13e772999de94 author Alessandro Zummo Mon, 10 Apr 2006 22:54:46 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: SA1100 cleanup - convert printks to dev_xxx - remove messages in excess Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d1d65b7712016ca5ff2e44470eb13e772999de94 tree 06f6e823cf5ca785f055b129c003c55b9cbdae86 parent 8289607249ad25ecfc9a3742873fcd8f319d5b09 author Alessandro Zummo Mon, 10 Apr 2006 22:54:45 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: compact error messages Move registration error message from drivers to core. Signed-off-by: Alessandro Zummo Cc: Lennert Buytenhek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8289607249ad25ecfc9a3742873fcd8f319d5b09 tree c69bc65332554358fdd959136e2cb1e0f730ffef parent adfb4341259f2f89baac2316a8a3660b63c1103b author Alessandro Zummo Mon, 10 Apr 2006 22:54:44 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: RS5C372 sysfs fix Fix sysfs show() return code Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit adfb4341259f2f89baac2316a8a3660b63c1103b tree acd4fac57e6cbe9569aac967835200a1e188c417 parent f90a65060e6a71a818abc3584ac64f986b838fba author Alessandro Zummo Mon, 10 Apr 2006 22:54:43 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: fix proc output Move the "24hr: yes" proc output from drivers to rtc proc code. This is required because the time value in the proc output is always in 24hr mode regardless of the driver. Signed-off-by: Alessandro Zummo Cc: Lennert Buytenhek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f90a65060e6a71a818abc3584ac64f986b838fba tree 8b0eebcbbc447059c2c61f5209eb1801a645e6e0 parent 015aefbb87f9e6bd5d3c82ece97f7a7ba8f9b66c author Alessandro Zummo Mon, 10 Apr 2006 22:54:42 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:47 -0700 [PATCH] RTC subsystem: whitespaces and error messages cleanup - fix whitespace - remove some debugging in excess Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 015aefbb87f9e6bd5d3c82ece97f7a7ba8f9b66c tree 099781c3d6cf469ac9ef188be3b52fdd2558350a parent 3903586ab0eeaf363bd33633f0ae4846f03e2db5 author Alessandro Zummo Mon, 10 Apr 2006 22:54:42 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] RTC subsystem: X1205 sysfs cleanup Fix sysfs show() return code Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3903586ab0eeaf363bd33633f0ae4846f03e2db5 tree 9d7a2683b0a4cf6b98265aea72ff405738103219 parent 8a95b252d194ea57c3d2c16ec2a25b1b70e36cad author Alessandro Zummo Mon, 10 Apr 2006 22:54:41 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] RTC subsystem: DS1672 cleanup - removed a duplicate error message - bumped driver version - removed some debugging messages in excess - refined the formatting - adjusted copyright notice Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8a95b252d194ea57c3d2c16ec2a25b1b70e36cad tree 6e1b3ca9cbb913905f6065545aed06574dfd6967 parent 389ed39b9711bbe5210d5e118e1f1af36ca88b7c author Kumar Gala Mon, 10 Apr 2006 22:54:39 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] RTC subsystem: DS1672 oscillator handling * Always enable the oscillator when we set the time * If the oscillator is disable when we probe the RTC report back a warning to the user * Added sysfs attribute to represent the state of the oscillator Signed-off-by: Kumar Gala Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 389ed39b9711bbe5210d5e118e1f1af36ca88b7c tree 101997797e4a475d09c3af5ae211251768da3281 parent d93c2efc93f61c95808e303982f12fe6f5987270 author Ananiev, Leonid I Mon, 10 Apr 2006 22:54:38 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] ext3: Fix missed mutex unlock Missed unlock_super()call is added in error condition code path. Signed-off-by: Leonid Ananiev Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d93c2efc93f61c95808e303982f12fe6f5987270 tree dfb81b98ad65e8b1b27a8ed1d32e545cd4c0e8c2 parent e60b6e2f747e94358fed9a23afd6abd738de4bf7 author Eric Sesterhenn Mon, 10 Apr 2006 22:54:37 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] Overrun in cdrom/aztcd.c This fixes coverity bug id #473. After the for loop i==16 if we didn't find a cdrom. So we should check for i==16 first before checking the array element. Signed-off-by: Eric Sesterhenn Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e60b6e2f747e94358fed9a23afd6abd738de4bf7 tree bdfa71daf5ac502b9f21a54a71863fd2d364ce77 parent fd5403c79bc21819f6e0c40ba098cea8b6a418bd author Eric Sesterhenn Mon, 10 Apr 2006 22:54:36 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] Wrong out of range check in drivers/char/applicom.c This fixes coverity bug id #469. The out of range check didnt work as intended, as seen by the printk(), which states that boardno has to be 1 <= boardno <= MAX_BOARD. Signed-off-by: Eric Sesterhenn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fd5403c79bc21819f6e0c40ba098cea8b6a418bd tree d63e61d010e79c82042defef4ba983b759240d2d parent 7551d9a20b3cfbac9f8a28b7d909c4b15a94924f author Coywolf Qi Hunt Mon, 10 Apr 2006 22:54:35 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] page-writeback comment fixes Signed-off-by: Coywolf Qi Hunt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7551d9a20b3cfbac9f8a28b7d909c4b15a94924f tree 5347998cb265d323aaece33b3539a56f83186df2 parent b3f28a9a26d9e8a02119cc8d1604fdb891c23697 author Andrew Morton Mon, 10 Apr 2006 22:54:34 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:46 -0700 [PATCH] 3ware: kmap_atomic() fix We must disable local IRQs while holding KM_IRQ0 or KM_IRQ1. Otherwise, an IRQ handler could use those kmap slots while this code is using them, resulting in memory corruption. Thanks to Nick Orlov for reporting. Cc: Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b3f28a9a26d9e8a02119cc8d1604fdb891c23697 tree 4c4824ace558ee350d1a1c68701c30d50bdd1bb7 parent 4791c03d2c3b9b6822784f6d7c8e5bbadb1f35ae author Andrew Morton Mon, 10 Apr 2006 22:54:32 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] hdaps: use ENODEV Use ENODEV when the hdaps hardware isn't there, not ENXIO. Cc: Jean Delvare Cc: Robert Love Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4791c03d2c3b9b6822784f6d7c8e5bbadb1f35ae tree 9200001570ecf30f13e2adcfb62110109bf26f7e parent 091e881d0e55496d8887b61446ae1c598b0995b6 author Corey Minyard Mon, 10 Apr 2006 22:54:31 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] ipmi: fix event queue limit The event handler mechanism in the IPMI driver had a limit on the number of received events, but the counts were not being updated. Update the counts to impose a limit. This is not a critical fix, as this function (the sending of the events) has to be turned on by the user, anyway. This avoids problems if they forget to turn it back off. Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 091e881d0e55496d8887b61446ae1c598b0995b6 tree 359de08690a236593f4a24727fc060f7adc0993c parent 68250ba5df4c9d00d3064a0ba9a894035436916b author Arnd Bergmann Mon, 10 Apr 2006 22:54:31 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] inotify: check for NULL inode in inotify_d_instantiate The spufs file system creates files in a directory before instantiating the directory itself, which causes a NULL pointer access in inotify_d_instantiate since c32ccd87bfd1414b0aabfcd8dbc7539ad23bcbaa. I'd like to keep this behavior since it means that the user will not have access to files in the directory before I know that I succeed in creating everything in it. This patch adds a simple check for the inode to keep that working. Signed-off-by: Arnd Bergmann Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 68250ba5df4c9d00d3064a0ba9a894035436916b tree 2d53f5fea3d2e2f879f7d005bb2ea1b6ab8d4189 parent 5ac90c9f78953b1a2ac937cc5a2f90c3521a710e author Vivek Goyal Mon, 10 Apr 2006 22:54:30 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] kdump: enable CONFIG_PROC_VMCORE by default Everybody seems to be using /proc/vmcore as a method to access the kernel crash dump. Hence probably it makes sense to enable CONFIG_PROC_VMCORE by default if CONFIG_CRASH_DUMP is selected. This makes kdump configuration further easier for a user. Signed-off-by: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ac90c9f78953b1a2ac937cc5a2f90c3521a710e tree 4358f489334f856690ef4a451c433829352daf19 parent 7ad04b0d0ebed1844522dd83cca0ef838d1ac673 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:54:28 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] module support: record in vermagic ability to unload a module An UML user reported (against 2.6.13.3/UML) he got kernel Oopses when trying to rmmod (on a kernel with module unloading enabled) a module compiled with module unloading disabled. As crashing is a very correct thing to do in that case, a solution is altering the vermagic string to include this too. Possibly, however, the code should not crash in this case, even if the module didn't support unloading - it should simply abort the module removal. In this case, fixing that bug would be a better solution. I've not investigated though. (akpm: a bit marginal - root screwed up and shot himself in the foot). Cc: Hayim Shaul Cc: Rusty Russell Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7ad04b0d0ebed1844522dd83cca0ef838d1ac673 tree e9063726ccc7d20f1b19440c2266179fc70dc8c3 parent d45aebbfa4d0682ec9b15c3687835ac1f5f01f50 author Martin Michlmayr Mon, 10 Apr 2006 22:54:27 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] parport: remove duplicate entry for NETMOS_9835 Remove a duplicated entry from parport_serial_pci_tbl. Signed-off-by: Martin Michlmayr Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d45aebbfa4d0682ec9b15c3687835ac1f5f01f50 tree f972bc27df1bce1d7f88189ffe919d36988e01f2 parent 1a26feb9622f1b1bc5e4f5f60f65557b73c38cbf author Randy Dunlap Mon, 10 Apr 2006 22:54:26 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] kexec: update MAINTAINERS Eric is the kexec maintainer. Signed-off-by: Randy Dunlap Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1a26feb9622f1b1bc5e4f5f60f65557b73c38cbf tree 2404fc0d346127b71b9c30d9f9c95603c652ac93 parent 25a80759c5c237f0ecf57eb11fdd4efb21079c88 author David Howells Mon, 10 Apr 2006 22:54:26 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:45 -0700 [PATCH] Keys: Improve usage of memory barriers and remove IRQ disablement Remove an unnecessary memory barrier (implicit in rcu_dereference()) from install_session_keyring(). install_session_keyring() is also rearranged a little to make it slightly more efficient. As install_*_keyring() may schedule (in synchronize_rcu() or keyring_alloc()), they may not be entered with interrupts disabled - and so there's no point saving the interrupt disablement state over the critical section. exec_keys() will also be invoked with interrupts enabled, and so that doesn't need to save the interrupt state either. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 25a80759c5c237f0ecf57eb11fdd4efb21079c88 tree b73578d405374f0c48d5ac52985ece5302821933 parent c14038c39ddd9c14225907a05a6ac4d91d645ef1 author Geert Uytterhoeven Mon, 10 Apr 2006 22:54:25 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:44 -0700 [PATCH] Update contact info for Geert Uytterhoeven Update contact info for Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c14038c39ddd9c14225907a05a6ac4d91d645ef1 tree a9f57acaaf9764b35ab9e50f370b8e6859f9501e parent dbc8700e27a94621de9d22c506c67913e0121501 author David Howells Mon, 10 Apr 2006 22:54:24 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:44 -0700 [PATCH] Improve data-dependency memory barrier example in documentation In the memory barrier document, improve the example of the data dependency barrier situation by: (1) showing the initial values of the variables involved; and (2) repeating the instruction sequence description, this time with the data dependency barrier actually shown to make it clear what the revised sequence actually is. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dbc8700e27a94621de9d22c506c67913e0121501 tree 4ac767de021735f8826ac849ac8a3795bd78ade5 parent 235963b2edc080b577000031b9ad75804dd83c88 author David Howells Mon, 10 Apr 2006 22:54:23 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:44 -0700 [PATCH] Fix memory barrier docs wrt atomic ops Fix the memory barrier documentation to attempt to describe atomic ops correctly. atomic_t ops that return a value _do_ imply smp_mb() either side, and so don't actually require smp_mb__*_atomic_*() special barriers. Also explains why special barriers exist in addition to normal barriers. Further fix the memory barrier documents to portray bitwise operation memory barrier effects correctly following Nick Piggin's comments. It makes the point that any atomic op that both modifies some state in memory and returns information on that state implies memory barriers on both sides. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 235963b2edc080b577000031b9ad75804dd83c88 tree b53a3e36e6d5ed2e6c421a2777fa04c1aca083e6 parent 8c37bea1a0506f45111c64bac4325173e066b22d author Randy Dunlap Mon, 10 Apr 2006 22:54:22 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:44 -0700 [PATCH] Doc: fix mtrr userspace programs to build cleanly Fix mtrr-add.c and mtrr-show.c in Doc/mtrr.txt to build cleanly. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8c37bea1a0506f45111c64bac4325173e066b22d tree e0881fe790687f8063a5178ec36b6946100a0bac parent 56b146d36db933844011d5026c6f55593037c7b8 author Randy Dunlap Mon, 10 Apr 2006 22:54:21 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:44 -0700 [PATCH] docs: laptop-mode.txt source file build Fix C source file in Doc/laptop-mode.txt to compile. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 56b146d36db933844011d5026c6f55593037c7b8 tree e8b9bed7bf22f658f9b62bf13e512bf08f137efc parent 31cc48bfeef7a021d6e29f3454a4505edcfd6daa author Tobias Klauser Mon, 10 Apr 2006 22:54:21 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:44 -0700 [PATCH] Last DMA_xBIT_MASK cleanups These are the last conversions of pci_set_dma_mask(), pci_set_consistent_dma_mask() and pci_dma_supported() to use DMA_xBIT_MASK constants from linux/dma-mapping.h Signed-off-by: Tobias Klauser Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 31cc48bfeef7a021d6e29f3454a4505edcfd6daa tree d2059a46e39ce4582fbf93483892ffef4ff6dd6d parent 14a6283eb5c1c70e6deee985c85dcce884150737 author Mark Bellon Mon, 10 Apr 2006 22:54:20 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:43 -0700 [PATCH] MPBL0010 driver sysfs permissions wide open The MPBL0010 Telco clock driver (drivers/char/tlclk.c) uses 0222 (anyone can write) permissions on its writable sysfs entries. Alter the permissions to 0220 (owner and group can write). The use case for this driver is to configure the fail over behavior of the clock hardware. That should be done by the more privileged users. Signed-off-by: Mark Bellon Acked-by: "Gross, Mark" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 14a6283eb5c1c70e6deee985c85dcce884150737 tree b83f8170f3ee089959bb9d43d2abc963a6edd1aa parent 9453a5adaf32aa0b31d1491819a083d403f645c1 author Paul Fulghum Mon, 10 Apr 2006 22:54:19 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:43 -0700 [PATCH] tty release_dev(): remove dead code Remove dead code from tty_io.c release_dev() Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9453a5adaf32aa0b31d1491819a083d403f645c1 tree 49acd011b03e437137fdf083e5c44cba27403a75 parent acc8dadc0b3f007e6e60da77feb2efe2a19c5cda author Paul Fulghum Mon, 10 Apr 2006 22:54:18 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:43 -0700 [PATCH] ptmx: fix duplicate idr_remove Remove duplicate call to idr_remove() in ptmx_open. Error during open can result in call to release_dev() followed by call to idr_remove(). release_dev already calls idr_remove so the second call can cause a stack dump in idr_remove()->sub_remove() flagging an attempt to release an already released entry. I reproduces this on a machine with a misconfigured X server (attempting to restart multiple times rapidly) getting the same error as the 1st link below. This also seems to be related to: http://marc.theaimsgroup.com/?l=selinux&m=110536513426735&w=2 http://marc.theaimsgroup.com/?l=selinux&m=110596994916785&w=2 The stack dump can occur on close (as well as open) as shown in the 1st instance above, possible from something like: process A - open (index=0), open fail to out1, release_dev calls idr_remove (index 0), down(sem) sleeps process B - open (index=0), open OK (idr allocated) process A - wake and call idr_remove on index 0 ... process B - close, release_dev, stack dump on idr_remove (index=0) because entry already removed Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit acc8dadc0b3f007e6e60da77feb2efe2a19c5cda tree df1d7ba842f9b944a0445f65e82a590c3e768dd4 parent f5e902817fee1589badca1284f49eecc0ef0c200 author Joern Engel Mon, 10 Apr 2006 22:54:17 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:43 -0700 [PATCH] Remove blkmtd Remove the blkmtd driver. - An alternative exists (block2mtd) that hasn't had bug report for > 1 year. - Most embedded people tend to use ancient kernels with custom patches from mtd cvs and elsewhere, so the 1 year warning period neither helps nor hurts them too much. - It's in the way of klibc. The problems caused by pulling blkmtd support are fairly low, while the problems caused by delaying klibc can be fairly substantial. At best, this would be a severe burden on hpa's time. Signed-off-by: Joern Engel Acked-by: Thomas Gleixner Cc: "H. Peter Anvin" Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f5e902817fee1589badca1284f49eecc0ef0c200 tree c72c0b9ae52c81ccecbd434fb886f8f668245f74 parent 491d4bed8051c655c7664b85446e13901463eb63 author Roland McGrath Mon, 10 Apr 2006 22:54:16 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] process accounting: take original leader's start_time in non-leader exec The only record we have of the real-time age of a process, regardless of execs it's done, is start_time. When a non-leader thread exec, the original start_time of the process is lost. Things looking at the real-time age of the process are fooled, for example the process accounting record when the process finally dies. This change makes the oldest start_time stick around with the process after a non-leader exec. This way the association between PID and start_time is kept constant, which seems correct to me. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 491d4bed8051c655c7664b85446e13901463eb63 tree 91d7d5e7241ee09bd347d6c406f3605d62c546df parent 5ef37b196467bf2f9d41e5579dd388c08b800f7c author Andrew Morton Mon, 10 Apr 2006 22:54:14 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] sys_kexec_load() naming fixups __NR_sys_kexec_load should be __NR_kexec_load. Mainly affects users of the _syscallN() macros, and glibc is already checking for __NR_kexec_load. Cc: Ulrich Drepper Cc: "Eric W. Biederman" Cc: Mikael Starvik Cc: David Howells Cc: Yoshinori Sato Cc: Hirokazu Takata Cc: Paul Mundt Cc: Kazumoto Kojima Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ef37b196467bf2f9d41e5579dd388c08b800f7c tree ea1ea6e4c0f7b34b917fa52948e4939fa4e3eaf1 parent 2395140ee2bffe38b1c8a59318f62882b797f5e6 author Joe Korty Mon, 10 Apr 2006 22:54:13 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] add cpu_relax to hrtimer_cancel Add a cpu_relax() to the hand-coded spinwait in hrtimer_cancel(). Signed-off-by: Joe Korty Acked-by: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2395140ee2bffe38b1c8a59318f62882b797f5e6 tree b8e8f6d6db2f1aa417bb32b8a5a376d0c0a478b2 parent 0f6c840d774d669baf4727c0499ab0674826429f author Davide Libenzi Mon, 10 Apr 2006 22:54:12 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] uniform POLLRDHUP handling between epoll and poll/select As reported by Michael Kerrisk, POLLRDHUP handling was not consistent between epoll and poll/select, since in epoll it was unmaskeable. This patch brings uniformity in POLLRDHUP handling. Signed-off-by: Davide Libenzi Cc: Michael Kerrisk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0f6c840d774d669baf4727c0499ab0674826429f tree ce1b99e404df0feef8cd029f3fa948307bfb68c9 parent 80e8ff634169be3fc2ac48f258cc7638e898cd46 author Robert Love Mon, 10 Apr 2006 22:54:11 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] hdaps: support new Lenovo machines Add support for forthcoming Lenovo-branded machines to the HDAPS driver. Signed-off-by: Robert Love Cc: Jean Delvare Cc: Dmitry Torokhov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 80e8ff634169be3fc2ac48f258cc7638e898cd46 tree 481b805fedc77b28183ae2be0f114d50d4163bdb parent 4c416ab71164dc8d3f800a942fb18c4e67f67897 author Vivek Goyal Mon, 10 Apr 2006 22:54:10 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] kdump proc vmcore size oveflow fix A couple of /proc/vmcore data structures overflow with 32bit systems having memory more than 4G. This patch fixes those. Signed-off-by: Ken'ichi Ohmichi Signed-off-by: Vivek Goyal Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4c416ab71164dc8d3f800a942fb18c4e67f67897 tree 7fcdcec0aa74ca820eb1338f56dc5530bccad689 parent b04eb6aa08ecc3e24df2f78ebc486011ebd74feb author Jan-Benedict Glaw Mon, 10 Apr 2006 22:54:09 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:42 -0700 [PATCH] Silence a const vs non-const warning lib/string.c: In function 'memcpy': lib/string.c:470: warning: initialization discards qualifiers from pointer = target type Signed-off-by: Jan-Benedict Glaw Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b04eb6aa08ecc3e24df2f78ebc486011ebd74feb tree 8dbf6a2449f886f0db9c3082dabdf83d4c4f04f7 parent a9cdf410ca8f59b52bc7061a6751050010c7cc5b author Mitchell Blank Jr Mon, 10 Apr 2006 22:54:08 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] select: don't overflow if (SELECT_STACK_ALLOC % sizeof(long) != 0) If SELECT_STACK_ALLOC is not a multiple of sizeof(long) then stack_fds[] would be shorter than SELECT_STACK_ALLOC bytes and could overflow later in the function. Fixed by simply rearranging the test later to work on sizeof(stack_fds) Currently SELECT_STACK_ALLOC is 256 so this doesn't happen, but it's nasty to have things like this hidden in the code. What if later someone decides to change SELECT_STACK_ALLOC to 300? Signed-off-by: Mitchell Blank Jr Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a9cdf410ca8f59b52bc7061a6751050010c7cc5b tree a7b63f15f2221e424b37989af1083701d1549adf parent 49b6e2ad00435209503863932d03470f825e0a1a author Keith Owens Mon, 10 Apr 2006 22:54:07 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] Reinstate const in next_thread() Before commit 47e65328a7b1cdfc4e3102e50d60faf94ebba7d3, next_thread() took a const task_t. Reinstate the const qualifier, getting the next thread never changes the current thread. Signed-off-by: Keith Owens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 49b6e2ad00435209503863932d03470f825e0a1a tree eb7f7d06046f7e56df3a72cfb9063e300d2d4054 parent 00fbc6dfe7c4487f812829bff79c3121c8fd3bca author Dave Jones Mon, 10 Apr 2006 22:54:06 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] Remove extraneous \n in doubletalk init printk. Doubletalk printk's an extraneous \n Signed-off-by: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 00fbc6dfe7c4487f812829bff79c3121c8fd3bca tree 1813bfe351db1424839be30c99dc620e0ca52457 parent e1a2509023785bd3199ac068ab80155aeba01265 author Eric Van Hensbergen Mon, 10 Apr 2006 22:54:06 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] 9p: handle sget() failure Handle a failing sget() in v9fs_get_sb(). Signed-off-by: Christoph Hellwig Signed-off-by: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1a2509023785bd3199ac068ab80155aeba01265 tree 2d1f4541893a39537e67a921a2d5999c38310c28 parent d824e66a9a427faf69c58f98dd7e1c3d1bb51c61 author Andrew Morton Mon, 10 Apr 2006 22:54:05 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] make tty_insert_flip_string_flags() a non gpl export We changed the wrong symbol. It's tty_insert_flip_string_flags() which is called from the previously-non-GPL'ed now-inlined tty_insert_flip_char(). Fix that up, and uninline tty_schedule_flip() while we're there. Cc: Tobias Powalowski Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d824e66a9a427faf69c58f98dd7e1c3d1bb51c61 tree f2f1050a55e496777896aaac96ebd82cbc62c174 parent f6422f17d3a480f21917a3895e2a46b968f56a08 author Christoph Hellwig Mon, 10 Apr 2006 22:54:04 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] build kernel/irq/migration.c only if CONFIG_GENERIC_PENDING_IRQ is set Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f6422f17d3a480f21917a3895e2a46b968f56a08 tree 116e78562d862aa1d3d2b6c98e22a73a0009c9cc parent fb5035dbbea8826cdbeb5c43d7605255eb6f0baa author Herbert Poetzl Mon, 10 Apr 2006 22:54:03 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] vfs: propagate mnt_flags into do_loopback/vfsmount The mnt_flags are propagated into do_loopback(), so that they can be stored with the vfsmount Signed-off-by: Herbert Poetzl Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb5035dbbea8826cdbeb5c43d7605255eb6f0baa tree bf01a0b9321cd6715051f477750c108afa699963 parent 24f51e81745861c70da2255ce30c7078aed2d20e author Ben Dooks Mon, 10 Apr 2006 22:54:02 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:41 -0700 [PATCH] leds: re-layout include/linux/leds.h Lay out the structure definitions in include/linux/leds.h to be aligned as much as possible. Also minor updates to the comments to make them more concise. Signed-off-by: Ben Dooks Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 24f51e81745861c70da2255ce30c7078aed2d20e tree 199b11453cc4e8a974ef3f1330da7fb5f4bc724b parent baa351eaf3a309f5ff50a77c63d234d93bce3f62 author Ben Dooks Mon, 10 Apr 2006 22:54:01 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] leds: reorganise Kconfig Reorganise the drivers/leds Kconfig file to have the LED trigger enable with the triggers themselves. Also add comments to divide up the sections into the drivers and triggers Signed-off-by: Ben Dooks Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit baa351eaf3a309f5ff50a77c63d234d93bce3f62 tree d7a6f295953960db2b3ac5a84ca16230ee55bbee parent 54bdc470100b9d8ffd349a3ebe23013c25affddf author Ben Dooks Mon, 10 Apr 2006 22:54:01 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] leds: fix IDE disk trigger name The IDE Disk LED trigger has the same name as the timer trigger. Signed-off-by: Ben Dooks Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 54bdc470100b9d8ffd349a3ebe23013c25affddf tree 5cc56a985c77c662bdc1c9239de9563b11237e15 parent aa7271076ae6547d7f370ad7e91ef86fdb318f17 author Ben Dooks Mon, 10 Apr 2006 22:54:00 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] S3C24XX GPIO LED support GPIO LED support for Samsung S3C24XX SoC series processors. Signed-off-by: Ben Dooks Acked-by: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aa7271076ae6547d7f370ad7e91ef86fdb318f17 tree 5a04c82e8ea4dda6cfd7905da18f68752d10faa3 parent ba6edfcd1708da2e665f14eee76e87f39448ec40 author Adrian Bunk Mon, 10 Apr 2006 22:53:59 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] the scheduled unexport of panic_timeout Implement the scheduled unexport of panic_timeout. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ba6edfcd1708da2e665f14eee76e87f39448ec40 tree 68aaebb5d97c31712567fb459dcd34343a514b78 parent 5246d0503130fa58904c8beb987fcf93b96d8ab6 author Andrew Morton Mon, 10 Apr 2006 22:53:58 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] timer initialisation fix We need the boot CPU's tvec_bases[] entry to be initialised super-early in boot, for early_serial_setup(). That runs within setup_arch(), before even per-cpu areas are initialised. The patch changes tvec_bases to use compile-time initialisation, and adds a separate array `tvec_base_done' to keep track of which CPU has had its tvec_bases[] entry initialised (because we can no longer use the zeroness of that tvec_bases[] entry to determine whether it has been initialised). Thanks to Eugene Surovegin for diagnosing this. Cc: Eugene Surovegin Cc: Jan Beulich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5246d0503130fa58904c8beb987fcf93b96d8ab6 tree c807f1bba6a1d5abf0b3a9f221bc3e49ca5810c8 parent 8833d328caf009f8da58337e17a2cf5d52993a7c author Andrew Morton Mon, 10 Apr 2006 22:53:57 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] sync_file_range(): use unsigned for flags Ulrich suggested that the `flags' arg to sync_file_range() become unsigned. Cc: Ulrich Drepper Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8833d328caf009f8da58337e17a2cf5d52993a7c tree dc12f9c94f28ad0fb41ea6c4ebe6a0ae31c36ad1 parent 894b5779ceeabdce139068310e58bcf51ed9bb22 author Kyle McMartin Mon, 10 Apr 2006 22:53:57 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] Clean up arch-overrides in linux/string.h Some string functions were safely overrideable in lib/string.c, but their corresponding declarations in linux/string.h were not. Correct this, and make strcspn overrideable. Odds of someone wanting to do optimized assembly of these are small, but for the sake of cleanliness, might as well bring them into line with the rest of the file. Signed-off-by: Kyle McMartin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 894b5779ceeabdce139068310e58bcf51ed9bb22 tree a5235a777d109a22a3867a8e31e2dcf40fb21bc0 parent c80d79d746cc48bd94b0ce4f6d4f3c90cd403aaf author Kyle McMartin Mon, 10 Apr 2006 22:53:56 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:40 -0700 [PATCH] No arch-specific strpbrk implementations While cleaning up parisc_ksyms.c earlier, I noticed that strpbrk wasn't being exported from lib/string.c. Investigating further, I noticed a changeset that removed its export and added it to _ksyms.c on a few more architectures. The justification was that "other arches do it." I think this is wrong, since no architecture currently defines __HAVE_ARCH_STRPBRK, there's no reason for any of them to be exporting it themselves. Therefore, consolidate the export to lib/string.c. Signed-off-by: Kyle McMartin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c80d79d746cc48bd94b0ce4f6d4f3c90cd403aaf tree 5aa8d1590d95f8fd820ad797fe03a063b592e9bf parent 653edba1a8b2ed018bdfb078131324dfbfe1dd6a author Yasunori Goto Mon, 10 Apr 2006 22:53:53 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:39 -0700 [PATCH] Configurable NODES_SHIFT Current implementations define NODES_SHIFT in include/asm-xxx/numnodes.h for each arch. Its definition is sometimes configurable. Indeed, ia64 defines 5 NODES_SHIFT values in the current git tree. But it looks a bit messy. SGI-SN2(ia64) system requires 1024 nodes, and the number of nodes already has been changeable by config. Suitable node's number may be changed in the future even if it is other architecture. So, I wrote configurable node's number. This patch set defines just default value for each arch which needs multi nodes except ia64. But, it is easy to change to configurable if necessary. On ia64 the number of nodes can be already configured in generic ia64 and SN2 config. But, NODES_SHIFT is defined for DIG64 and HP'S machine too. So, I changed it so that all platforms can be configured via CONFIG_NODES_SHIFT. It would be simpler. See also: http://marc.theaimsgroup.com/?l=linux-kernel&m=114358010523896&w=2 Signed-off-by: Yasunori Goto Cc: Hirokazu Takata Cc: "Luck, Tony" Cc: Andi Kleen Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Ivan Kokshaysky Cc: Richard Henderson Cc: Kyle McMartin Cc: Russell King Cc: Ralf Baechle Cc: Jack Steiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 653edba1a8b2ed018bdfb078131324dfbfe1dd6a tree b86b80652e05509e276cdbdf10e7a4f7cdce0032 parent 5bd1db65ec3d21db6d34e96679c7443c18e135c5 author Frank Gevaerts Mon, 10 Apr 2006 22:53:51 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:39 -0700 [PATCH] hdaps: add support for Thinkpad R52 This adds support for my Thinkpad R52, which for some reason is not matched by the "ThinkPad R52" line. Signed-off-by: Frank Gevaerts Cc: Robert Love Cc: Dmitry Torokhov Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5bd1db65ec3d21db6d34e96679c7443c18e135c5 tree 55340b198d28c574322deae47d9c99eac8e591e5 parent b068b43ba4a2aa576f8c0db3dc59ba529d8a6cdd author Dave Jones Mon, 10 Apr 2006 22:53:51 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:39 -0700 [PATCH] S390: fix implicit declaration of (un)likely. include/asm/atomic.h:94: warning: implicit declaration of function 'unlikely' include/asm/atomic.h:97: warning: implicit declaration of function 'likely' Signed-off-by: Dave Jones Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b068b43ba4a2aa576f8c0db3dc59ba529d8a6cdd tree ffe5da0a2057ec8f3417fe8e27b76a9d60d756db parent f976069a3a4f9f79ef816223cccb1efa5c4f51ed author Adrian Bunk Mon, 10 Apr 2006 22:53:50 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:39 -0700 [PATCH] arch/s390/Makefile: remove -finline-limit=10000 -finline-limit might have been required for older compilers, but nowadays it does no longer make sense. Signed-off-by: Adrian Bunk Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f976069a3a4f9f79ef816223cccb1efa5c4f51ed tree 2c5ef5aa99d7dab42074766b51e1f7f5c262ecc6 parent 7220fe8b7915af4ffcd42d73c285c5898734d087 author Peter Oberparleiter Mon, 10 Apr 2006 22:53:49 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:38 -0700 [PATCH] s390: minor tape fixes Cleanup of minor bugs found by a source code checker. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7220fe8b7915af4ffcd42d73c285c5898734d087 tree f7e15da7fdbb16b9749d3a0f3a79ae2fd99aec40 parent 25ee4cf831fcc2855927c175d246a25e5ebe5902 author Horst Hummel Mon, 10 Apr 2006 22:53:48 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:38 -0700 [PATCH] s390: dasd proc entries The proc_mkdir calls in the dasd driver are not check for NULL pointers. Add code to check the pointers and bail out if one of the proc entries could not be created. Signed-off-by: Horst Hummel Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 25ee4cf831fcc2855927c175d246a25e5ebe5902 tree 8338c521644eef239912230543fafbdaa1eee22e parent dafd87aaef7d95a6ad3ff92e0d512e5b166c0716 author Peter Oberparleiter Mon, 10 Apr 2006 22:53:47 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:38 -0700 [PATCH] s390: fail-fast requests on quiesced devices Using the fail-fast flag in i/o requests on a dasd disk which has been quiesced leads to kernel panics. Modify the request start function to only work on requests in a valid state. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dafd87aaef7d95a6ad3ff92e0d512e5b166c0716 tree e60cb58ab85a874c07e9a1d93ffc8b5c94858aa1 parent 06fbcb104ad16c22eb5718ae598b306c777be8af author Horst Hummel Mon, 10 Apr 2006 22:53:47 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:38 -0700 [PATCH] s390: dasd device offline messages The dasd driver sometimes print the misleading message "Can't offline dasd device with open count = 0". The reason why it can't offline the device in this case is that the device is still in the startup phase. Print a more meaningful message. Signed-off-by: Horst Hummel Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 06fbcb104ad16c22eb5718ae598b306c777be8af tree 99e4099d9b20445d5af8fd1433431c1f8dc7e3d0 parent a7fbf6bba7f1f0616b0223a8b1cba91fffe607f5 author Peter Oberparleiter Mon, 10 Apr 2006 22:53:46 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] s390: increase cio_trace debug event size Debugging events in cio_trace/hex_ascii are truncated for some trace entries. Increase trace event size to 16 bytes to cover longer text events, make CIO_HEX_EVENT an inline function that loops to cover bigger hex events. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a7fbf6bba7f1f0616b0223a8b1cba91fffe607f5 tree fea61a369fe5efe55fea010a9d3608bd8f0fdc9c parent da074d0ac8ccae1068dc227ef9893c2510d23bd8 author Cornelia Huck Mon, 10 Apr 2006 22:53:45 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] s390: wrong return codes in cio_ignore_proc_init() cio_ignore_proc_init() returns 1 in case of success and 0 in case of failure. The caller tests for != 0, so better return 0 in case of success and -ENOENT in case of failure. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit da074d0ac8ccae1068dc227ef9893c2510d23bd8 tree d0ea31a77b3c07c498bbfd8118af5703ab05eb66 parent 0664299743d213e59ea70b2cf2e4a81ee367e80b author Peter Oberparleiter Mon, 10 Apr 2006 22:53:44 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] s390: invalid check after kzalloc() Typo. After the call to kzalloc() for kdb->key_maps the test for NULL checks the wrong variable. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0664299743d213e59ea70b2cf2e4a81ee367e80b tree 640bd4f5dfeb914f22c76abdd6f361efacd81fd3 parent bdc7f159096856dac570e2659d6381841e0aaa78 author Peter Oberparleiter Mon, 10 Apr 2006 22:53:43 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] s390: ebdic to ascii conversion tables Make the length of ebcdic<->ascii conversion arrays known. This avoid warnings with source code checking tools. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bdc7f159096856dac570e2659d6381841e0aaa78 tree 29675130d0a984a09d2180f97a3c34bd58a1ff02 parent 52c7378236103ce5fbfb7b3e6ac46aa9de9f970d author Martin Schwidefsky Mon, 10 Apr 2006 22:53:42 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] s390: update default configuration Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 52c7378236103ce5fbfb7b3e6ac46aa9de9f970d tree 7b61a8c0521395b2c32507816625d92ac4ff3363 parent 40dbb8676ed0d4c7a40596c7ef8c1c7acde9d972 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:41 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] uml: avoid warnings for diffent names for an unsigned quadword Since on some 64-bit systems __u64 is rightfully defined to unsigned long and GCC recognizes anyway unsigned long and unsigned long long as different, fix some types back to being unsigned long long to avoid warnings and errors (for prototype mismatch) on those systems. Thanks to the report by Wesley Emeneker wesleyemeneker (at) google (dot) com Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 40dbb8676ed0d4c7a40596c7ef8c1c7acde9d972 tree bf8d97f2d29b64b5c339f1f4d19a803810904035 parent dbdb4c06b73599dc162b2cad1af304b498baa107 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:40 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] uml: fix parallel make early failure on clean tree Parallel make failed once for me - fix this by adding the appropriate command (mkdir before creating a link in that dir). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Sam Ravnborg Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dbdb4c06b73599dc162b2cad1af304b498baa107 tree ec1c761806b6872798001fe9cb0edf306cab592d parent 87276f721a9407a4a152b09265dc079f37674672 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:39 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] uml: local_irq_save, not local_save_flags The call to local_save_flags seems bogus since it is followed by local_irq_restore, and it's intended to lock the list from concurrent mconsole_interrupt invocations. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 87276f721a9407a4a152b09265dc079f37674672 tree 5034e88d6ee2769e76374494d5dec19234c8e09e parent d84a19ce52a7b01dc7318ea3a8223dfe44cccb6f author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:39 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:37 -0700 [PATCH] uml: fix big stack user Switch this proc from storing 4k of data (a whole path) on the stack to keeping it on the heap. Maybe it's not called in process context but only in early boot context (where in UML you have a normal process stack on the host) but just to be safe, fix it. While at it some little readability simplifications. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d84a19ce52a7b01dc7318ea3a8223dfe44cccb6f tree a3ad05cee1888b44605ec9b1e02f2f0a8b31035f parent b1c332c9e813cbee6ca77c3a66ee4d312eb96770 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:38 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: fix failure path after conversion Little fix for error paths in this code. - Some bug come from conversion to os-Linux (open() doesn't follow the kernel -errno return convention, while the old code called os_open_file() which followed it). This caused the wrong return code to be printed. - Then be more precise about what happened and do some whitespace fixes. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b1c332c9e813cbee6ca77c3a66ee4d312eb96770 tree 8ce0329e77d6c293b0c15ef1d163a81cb1e1a950 parent e6fb54abb8a36703f54b7e27a756a3df6667c37b author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:37 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: fix hang on run_helper() failure on uml_net Fix an hang on a pipe when run_helper() fails when called by change_tramp() (i.e. when calling uml_net) - reproduced the bug and verified this fixes it. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e6fb54abb8a36703f54b7e27a756a3df6667c37b tree 282b65f740c069949d487aa8cdab82cb3f1742de parent ccea15f45eb0ab12d658f88b5d4be005cb2bb1a7 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:36 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: move outside spinlock call not needing it Move a call to kfree on a local variable out of a spinlock - there's no need to have it in. Done on a just merged patch. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ccea15f45eb0ab12d658f88b5d4be005cb2bb1a7 tree 38cc0f0591a39eb918772b5c296d15783d62095b parent f53389d8af6a73034e40eace6034622c03ed707b author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:35 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: support sparse for userspace files Make sparse checker work for userspace files - it normally gets -nostdinc separately, so avoid having it for userspace files. Also, add -D$(SUBARCH) for multiarch hosts (i.e. AMD64 with compatibility headers). It works, the only problem is a bit of bogus warnings for system headers, but they're not too many. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f53389d8af6a73034e40eace6034622c03ed707b tree 14c2493010ccba0107c95e317ecd3eeedcdfe7f7 parent 5b0e94787f1b8fdcd370fc6303579d171b941080 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:34 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: fix critical typo for TT mode Noticed this for a compilation-time warning, so I'm fixing it even for TT mode - this is not put_user, but copy_to_user, so we need a pointer to sp, not sp itself (we're trying to write the word pointed to by the "sp" var.). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b0e94787f1b8fdcd370fc6303579d171b941080 tree 037465ee69e0eb405982e04afe127bdcedfb90a6 parent 7c45ad16f0b64f5fdc64cb0e86aa548d7f4d60c1 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:34 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: fix "extern-vs-static" proto conflict in TLS code Move the prototype from arch-generic to arch-specific includes because on x86_64 these functions are two static inlines. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7c45ad16f0b64f5fdc64cb0e86aa548d7f4d60c1 tree 9ffef0d24701f3ee62fca30e983404b3a5db1a9f parent 802e307795c9cf57e91389d65cb87bfe6d03a89e author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:33 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: fix some double export warnings Some functions are exported twice in current code - remove the excess export. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 802e307795c9cf57e91389d65cb87bfe6d03a89e tree bf57760f57554f684f979b9413f506498fd15c49 parent 9cf85b3af2dbef8d4af4604d5eaf8ca090475b7a author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:32 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:36 -0700 [PATCH] uml: fix format errors Now that GCC warns about format errors, fix them. Nothing able to cause a crash, however. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9cf85b3af2dbef8d4af4604d5eaf8ca090475b7a tree 16941ac9a94b3b3c42d8d6ed96b4e96075581ae1 parent 6dad2d3faac21d487ffd1d15268b1802feeb3e72 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:31 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] uml: request format warnings to GCC for appropriate functions Add the format attribute to prototypes so GCC warns about improper usage. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6dad2d3faac21d487ffd1d15268b1802feeb3e72 tree 617f14deb02c1ab8911c630df0c990a55a67721f parent f2ea394082c5d1682e6a131c5981085b8752c6e9 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:31 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] uml: fix 2 harmless cast warnings for 64-bit Fix two harmless warnings in 64-bit compilation (the 2nd doesn't trigger for now because of a missing __attribute((format)) for cow_printf, but next patches fix that). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f2ea394082c5d1682e6a131c5981085b8752c6e9 tree b7789cee4e6484d5063a28a59dcf320ee4676017 parent cda402b283c34a24b091f78eee116963e9494762 author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:30 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] uml: safe migration path to the correct V3 COW format - Correct the layout of all header versions - make all them well-specified for any external event. As we don't have 1-byte or 2-byte wide fields, the 32-bit layout (historical one) has no extra padding, so we can safely add __attribute__((packed)). - Add detection and reading of the broken 64-bit COW format which has been around for a while - to allow safe migration to the correct 32-bit format. Safe detection is possible, thanks to some luck with the existing format, and it works in practice. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cda402b283c34a24b091f78eee116963e9494762 tree a79d720e9ad5fe65b3488f10dfbaaa24cb0b9162 parent 60baa1583959e8b15e2823ef9e1cc00fd7ea929c author Paolo 'Blaisorblade' Giarrusso Mon, 10 Apr 2006 22:53:29 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] uml: make 64-bit COW files compatible with 32-bit ones This is the minimal fix to make 64-bit UML binaries create 32-bit compatible COW files and read them. I've indeed tested that current code doesn't do this - the code gets SIGFPE for a division by a value read at the wrong place, where 0 is found. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 60baa1583959e8b15e2823ef9e1cc00fd7ea929c tree 2d46837ed217d829e87f5d963b8d2a5205b24ae2 parent 7b04d7170e9af805cac19f97b28fff10db897893 author Jeff Dike Mon, 10 Apr 2006 22:53:28 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] uml: memory hotplug cleanups Change memory hotplug to use GFP_NOWAIT instead of GFP_ATOMIC, so that it will grab memory without sleeping, but doesn't try to use the emergency pools. A small list initialization suggested by Daniel Phillips - don't initialize lists which are just about to be list_add-ed. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7b04d7170e9af805cac19f97b28fff10db897893 tree f4b0de67af631c1a1099bcd35621ae7fff38af67 parent a5d2f46a97cf8e23f5da17dec50a972642ac409f author Jeff Dike Mon, 10 Apr 2006 22:53:27 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] Add GFP_NOWAIT Introduce GFP_NOWAIT, as an alias for GFP_ATOMIC & ~__GFP_HIGH. This also changes XFS, which is the only in-tree user of this idiom that I could find. The XFS piece is compile-tested only. Signed-off-by: Jeff Dike Acked-by: Nathan Scott Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a5d2f46a97cf8e23f5da17dec50a972642ac409f tree 21f822fd8ed87de6c8dcc49fc9236a32a76dd5fc parent 73830056f56afe4b7d418debbf9ecb64e3d9b0ae author Jeff Dike Mon, 10 Apr 2006 22:53:26 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] UML: TLS fixlets Two small TLS fixes - arch/um/os-Linux/sys-i386/tls.c uses errno and -E* so it should include errno.h __setup_host_supports_tls returns 1, but as an initcall, it should return 0 Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 73830056f56afe4b7d418debbf9ecb64e3d9b0ae tree 8e5a4b3c88d94f298836ff0bc2bb77ae6b60ed89 parent bad7af550e90ab82e74024357438d77b561e1b5f author Hirokazu Takata Mon, 10 Apr 2006 22:53:25 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:35 -0700 [PATCH] m32r: Remove symbols exported twice Remove multi-exported symbols from arch/m32r/kernel/m32r_ksyms.c. WARNING: vmlinux: 'enable_irq' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'disable_irq' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'disable_irq_nosync' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'synchronize_irq' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'memchr' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strstr' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'memscan' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'memcmp' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'memmove' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strnlen' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strchr' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strncmp' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strcmp' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strncat' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strcat' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strncpy' exported twice. Previous export was in vmlinux WARNING: vmlinux: 'strcpy' exported twice. Previous export was in vmlinux Signed-off-by: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bad7af550e90ab82e74024357438d77b561e1b5f tree 4ba9ee182455c3329e231b96eaa366ad95aace6b parent 04dfd0de4ec04aaf7d9d42439c972c642a15a75c author Hirokazu Takata Mon, 10 Apr 2006 22:53:23 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] Remove unused prepare_to_switch macro Remove unused prepare_to_switch() macros. Signed-off-by: Hirokazu Takata Cc: Mikael Starvik Cc: David Howells Cc: Yoshinori Sato Cc: Miles Bader Cc: Chris Zankel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 04dfd0de4ec04aaf7d9d42439c972c642a15a75c tree 26f093671aee900dadc7458f774eb9eb9e209b78 parent 7c1c4e541888947947bc46a18a9a5543a259ed62 author Hirokazu Takata Mon, 10 Apr 2006 22:53:20 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] m32r: security fix of {get,put}_user macros Update {get,put}_user macros for m32r kernel. - Modify get_user to use __get_user_asm macro, instead of __get_user_x macro. - Remove arch/m32r/lib/{get,put}user.S. - Some cosmetic updates. I would like to thank NIIBE Yutaka for his reporting about the m32r kernel's security problem in {get,put}_user macros. There were no address checking for user space access in {get,put}_user macros. ;-) Signed-off-by: Hirokazu Takata Cc: NIIBE Yutaka Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7c1c4e541888947947bc46a18a9a5543a259ed62 tree b2484781dd89aea63fb0e66702f0ec1b9ad491c0 parent 917b1f78a9871a1985004df09ed1eb2e0dc3bf4f author Hirokazu Takata Mon, 10 Apr 2006 22:53:18 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] m32r: Fix cpu_possible_map and cpu_present_map initialization for SMP kernel This patch fixes a boot problem of the m32r SMP kernel 2.6.16-rc1-mm3 or later. In this patch, cpu_possible_map is statically initialized, and cpu_present_map is also copied from cpu_possible_map in smp_prepare_cpus(), because the m32r architecture has not supported CPU hotplug yet. Signed-off-by: Hayato Fujiwara Signed-off-by: Hirokazu Takata Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 917b1f78a9871a1985004df09ed1eb2e0dc3bf4f tree fad71a349195be55c35d026c24422678c1b73e6e parent 1c08ca89b07eeca241fcf1ec297d3ef173a999a9 author Brian Uhrain says Mon, 10 Apr 2006 22:53:16 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] alpha: SMP boot fixes I've encountered two problems with 2.6.16 and newer kernels on my API CS20 (dual 833MHz Alpha 21264b processors). The first is the kernel OOPSing because of a NULL pointer dereference while trying to populate SysFS with the CPU information. The other is that only one processor was being brought up. I've included a small Alpha-specific patch that fixes both problems. The first problem was caused by the CPUs never being properly registered using register_cpu(), the way it's done on other architectures. The second problem has to do with the removal of hwrpb_cpu_present_mask in arch/alpha/kernel/smp.c. In setup_smp() in the 2.6.15 kernel sources, hwrpb_cpu_present_mask has a bit set for each processor that is probed, and afterwards cpu_present_mask is set to the cpumask for the boot CPU. In the same function of the same file in the 2.6.16 sources, instead of hwrpb_cpu_present_mask being set, cpu_possible_map is updated for each probed CPU. cpu_present_mask is still set to the cpumask of the boot CPU afterwards. The problem lies in include/asm-alpha/smp.h, where cpu_possible_map is #define'd to be cpu_present_mask. Cleanups from: Ivan Kokshaysky - cpu_present_mask and cpu_possible_map are essentially the same thing on alpha, as it doesn't support CPU hotplug; - allocate "struct cpu" only for present CPUs, like sparc64 does. Static array of "struct cpu" is just a waste of memory. Signed-off-by: Brian Uhrain Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1c08ca89b07eeca241fcf1ec297d3ef173a999a9 tree c88c0920be1637b837f24dfc859e5c248eb6ca2d parent edd711f3810f46787593fb79eda9a9fbb82cbb62 author Jordan Crouse Mon, 10 Apr 2006 22:53:15 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] Enable TSC for AMD Geode GX/LX Geode GX/LX should enable X86_TSC. Pointed out by Adrian Bunk. Signed-off-by: Jordan Crouse Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit edd711f3810f46787593fb79eda9a9fbb82cbb62 tree 107d1003ca8c0416d81b39f110c196a736f81baa parent dc8cbaed57f773a2b3cee40c15ec4f1e17b08046 author Adrian Bunk Mon, 10 Apr 2006 22:53:14 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] i386: move SMP option above subarch selection Since several subarchs depend on SMP, the SMP option should be above the subarch selection. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dc8cbaed57f773a2b3cee40c15ec4f1e17b08046 tree 225cc8421031c66ac973a094e7111cf9b80256fb parent c0ec31ad334fb83e53f2130eacbb44a639f77967 author Randy Dunlap Mon, 10 Apr 2006 22:53:14 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] mptspec: remove duplicate #include Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c0ec31ad334fb83e53f2130eacbb44a639f77967 tree 449070f25aa346dab179325d4eafc305bb6557b8 parent e39632faa0efbddc3aed4f8658f2fa0a8afa2717 author Randy Dunlap Mon, 10 Apr 2006 22:53:13 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:34 -0700 [PATCH] mpparse: prevent table index out-of-bounds John Z. Bohach found this bug: If the board has more than 32 PCI busses on it, the mptable bus array will overwrite its bounds for the PCI busses, and stomp on anything that's after it. Prevent possible table overflow and unknown data corruption. Code is in an __init section so it will be discarded after init. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e39632faa0efbddc3aed4f8658f2fa0a8afa2717 tree fa9e6cd489a698ca713c4690a0007a58f18bc9e2 parent 7bee5c0fd2b25d185650cbfa049823e03f648c09 author Randy Dunlap Mon, 10 Apr 2006 22:53:12 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:33 -0700 [PATCH] menu: relocate DOUBLEFAULT option Move the DOUBLEFAULT option from the top-level menu to the EMBEDDED menu. Only applicable to X86_32. Signed-off-by: Randy Dunlap Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7bee5c0fd2b25d185650cbfa049823e03f648c09 tree f0937f3d2ce67cee54ad8a81d7a6628e21d8e955 parent 6cf272acd59e4e7a17b969adcdf413e15754bfe4 author Randy Dunlap Mon, 10 Apr 2006 22:53:11 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:33 -0700 [PATCH] i386: print EIP/ESP last Print summary registers (EIP and SS:ESP only) as last death info. This makes this important data visible in case it had scrolled off the top of the display. Similar to what x86_64 does. Suggested by Andi Kleen. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6cf272acd59e4e7a17b969adcdf413e15754bfe4 tree 270c777ea40d4a00ee3178be088419fb9bb2361e parent 3016b421534e2fa8a5eede1c12a3eba6164822f4 author Ashok Raj Mon, 10 Apr 2006 22:53:07 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:33 -0700 [PATCH] swsusp: don't require bigsmp Switching to automatic bigsmp causes a misleading error message, that more then 8 cpus are detected, and user needs to select either X86_GENERICARCH or X86_BIGSMP to handle. Reason is we switched to bigsmp to avoid IP race when new cpu is comming up. [bigsmp is nothing but using physical flat mode that can work for 1 .. 255 cpus] [default is X86_PC, that uses logical flat mode up to 8 CPUs max] Current x86_64 code uses bigsmp as default when hotplug is enabled. It would be preferable to make bigsmp as default, and work the dependencies of other related code like SMP_SUSPEND, and some related to memory hotplug code for i386. Current logical flat mode doesnt use shortcuts that cause the race by using the send_IPI_mask() instead of shortcuts when HOTPLUG_CPU is enabled. In the meantime this patch is the path of lease resistance. We will switch to bigsmp default sometime soon, when we get to work it again. Signed-off-by: Ashok Raj Cc: Pavel Machek Cc: "Rafael J. Wysocki" Cc: Nigel Cunningham Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3016b421534e2fa8a5eede1c12a3eba6164822f4 tree 136bf93a1c24f6d4ed46ce6c54ddd4ba5d56a8ae parent 21a26d49d1ab3163b589bf913dd9176e921eb1d7 author Hyok S. Choi Mon, 10 Apr 2006 22:53:06 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:33 -0700 [PATCH] frv: define MMU mode specific syscalls as 'cond_syscall' and clean up unneeded macros For some architectures, a few syscalls are not linked in noMMU mode. In that case, the MMU depending syscalls are needed to be defined as 'cond_syscall'. For example, ARM architecture selectively links sys_mlock by the mode configuration. In case of FRV, it has been managed by #ifdef CONFIG_MMU macro in arch/frv/kernel/entry.S. However these conditional macros are just duplicates if they were defined as cond_syscall. Compilation test is done with FRV toolchains for both of MMU and noMMU mode. Signed-off-by: Hyok S. Choi Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 21a26d49d1ab3163b589bf913dd9176e921eb1d7 tree b5a0c33b4d3a954c7ba6200f03d4e647c9ecd9ab parent 64a3ca5f7ec2606b03be4a65736164a5373732ed author Randy Dunlap Mon, 10 Apr 2006 22:53:04 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:33 -0700 [PATCH] hugetlbfs doc. update Fix typos, spelling, etc., in Doc/vm/hugetlbpage.txt. Signed-off-by: Randy Dunlap Cc: David Gibson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 64a3ca5f7ec2606b03be4a65736164a5373732ed tree a65c1ee2eab32e0ad9571dc5553544ad36d74d77 parent 91fc8ab3c6312931d64c72845ee2f93a0f87f1a5 author Adrian Bunk Mon, 10 Apr 2006 22:53:03 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:33 -0700 [PATCH] mm/migrate.c: don't export a static function EXPORT_SYMBOL'ing of a static function is not a good idea. Signed-off-by: Adrian Bunk Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 91fc8ab3c6312931d64c72845ee2f93a0f87f1a5 tree 63cbc8d224a27f7d62bd1651afa5cd3b659c7587 parent d5ddc79bcaab6975e7671805c3578407dc33b764 author Andy Whitcroft Mon, 10 Apr 2006 22:53:01 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] page flags: add commentry regarding field reservation Add some documentation regarding the utilisation of the flags field in struct page. This field is overloaded for per page bits and to hold node, zone and SPARSEMEM information. Make it clear which areas are used for what and how many bits are in each area. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d5ddc79bcaab6975e7671805c3578407dc33b764 tree de29b6d1c43fa6f5a1aca52ad6c2cc6027edc1fc parent 6d9f78396583244258080f3369889644c06c37c8 author Hideo AOKI Mon, 10 Apr 2006 22:53:01 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] overcommit: use totalreserve_pages for nommu This patch is an enhancement of OVERCOMMIT_GUESS algorithm in __vm_enough_memory() in mm/nommu.c. When the OVERCOMMIT_GUESS algorithm calculates the number of free pages, the algorithm subtracts the number of reserved pages from the result nr_free_pages(). Signed-off-by: Hideo Aoki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6d9f78396583244258080f3369889644c06c37c8 tree 645f5e8630bc57e3a8f5653dc941fc0232b5e98b parent cb45b0e966cbe747b6189c15b108901cc7d6c97c author Hideo AOKI Mon, 10 Apr 2006 22:53:00 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] overcommit: use totalreserve_pages This patch is an enhancement of OVERCOMMIT_GUESS algorithm in __vm_enough_memory() in mm/mmap.c. When the OVERCOMMIT_GUESS algorithm calculates the number of free pages, the algorithm subtracts the number of reserved pages from the result nr_free_pages(). Signed-off-by: Hideo Aoki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cb45b0e966cbe747b6189c15b108901cc7d6c97c tree 0402d4809ec175e80b083f7a713ec32c0109baad parent e23ca00bf1b1c6c0f04702cb4d29e275ab8dc330 author Hideo AOKI Mon, 10 Apr 2006 22:52:59 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] overcommit: add calculate_totalreserve_pages() These patches are an enhancement of OVERCOMMIT_GUESS algorithm in __vm_enough_memory(). - why the kernel needed patching When the kernel can't allocate anonymous pages in practice, currnet OVERCOMMIT_GUESS could return success. This implementation might be the cause of oom kill in memory pressure situation. If the Linux runs with page reservation features like /proc/sys/vm/lowmem_reserve_ratio and without swap region, I think the oom kill occurs easily. - the overall design approach in the patch When the OVERCOMMET_GUESS algorithm calculates number of free pages, the reserved free pages are regarded as non-free pages. This change helps to avoid the pitfall that the number of free pages become less than the number which the kernel tries to keep free. - testing results I tested the patches using my test kernel module. If the patches aren't applied to the kernel, __vm_enough_memory() returns success in the situation but autual page allocation is failed. On the other hand, if the patches are applied to the kernel, memory allocation failure is avoided since __vm_enough_memory() returns failure in the situation. I checked that on i386 SMP 16GB memory machine. I haven't tested on nommu environment currently. This patch adds totalreserve_pages for __vm_enough_memory(). Calculate_totalreserve_pages() checks maximum lowmem_reserve pages and pages_high in each zone. Finally, the function stores the sum of each zone to totalreserve_pages. The totalreserve_pages is calculated when the VM is initilized. And the variable is updated when /proc/sys/vm/lowmem_reserve_raito or /proc/sys/vm/min_free_kbytes are changed. Signed-off-by: Hideo Aoki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e23ca00bf1b1c6c0f04702cb4d29e275ab8dc330 tree 3cf690fc3305a9af03f42aa25808b713efb53c27 parent 1e624196f43c3a62122959e15c5f03572cdadb5d author Christoph Lameter Mon, 10 Apr 2006 22:52:57 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] Some page migration fixups - Remove sparse comment - Remove duplicated include - Return the correct error condition in migrate_page_remove_references(). Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1e624196f43c3a62122959e15c5f03572cdadb5d tree 4196ccebe125c17dabc011422c6ff251835d1933 parent d6fef9da19b7acd46e04b7dbbba726b3febeca94 author Ram Gupta Mon, 10 Apr 2006 22:52:57 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] mm: fix bug in brk() The code checks for newbrk with oldbrk which are page aligned before making a check for the memory limit set of data segment. If the memory limit is not page aligned in that case it bypasses the test for the limit if the memory allocation is still for the same page. Signed-off-by: Ram Gupta Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d6fef9da19b7acd46e04b7dbbba726b3febeca94 tree bcbacfc4edc18a6c3e266717f3928ff9c5167002 parent fb7faf3313d527bf68ba2e7ff3a2b6ebf201af73 author Luke Yang Mon, 10 Apr 2006 22:52:56 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:32 -0700 [PATCH] nommu: use compound page in slab allocator The earlier patch to consolidate mmu and nommu page allocation and refcounting by using compound pages for nommu allocations had a bug: kmalloc slabs who's pages were initially allocated by a non-__GFP_COMP allocator could be passed into mm/nommu.c kmalloc allocations which really wanted __GFP_COMP underlying pages. Fix that by having nommu pass __GFP_COMP to all higher order slab allocations. Signed-off-by: Luke Yang Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb7faf3313d527bf68ba2e7ff3a2b6ebf201af73 tree ca4884d9fb0312eb19480b8319f2e01633298eda parent 5b74ada7eea1b0064d2b72384827853f349d803a author Ravikiran G Thirumalai Mon, 10 Apr 2006 22:52:54 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:31 -0700 [PATCH] slab: add statistics for alien cache overflows Add a statistics counter which is incremented everytime the alien cache overflows. alien_cache limit is hardcoded to 12 right now. We can use this statistics to tune alien cache if needed in the future. Signed-off-by: Alok N Kataria Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b74ada7eea1b0064d2b72384827853f349d803a tree 8f2909f8fefc1ed4436b918d9813159e96e4792d parent a283a52520569195c2d26d75455cddab758f530b author Ravikiran G Thirumalai Mon, 10 Apr 2006 22:52:53 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:31 -0700 [PATCH] slab: allocate node local memory for off-slab slabmanagement Allocate off-slab slab descriptors from node local memory. Signed-off-by: Alok N Kataria Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a283a52520569195c2d26d75455cddab758f530b tree 3ea10360b06dad909dc5b9e48b7236bcf23f3fab parent fff8efe7b71efd88829782be64dc42c25c70ad53 author KAMEZAWA Hiroyuki Mon, 10 Apr 2006 22:52:52 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:31 -0700 [PATCH] for_each_possible_cpu: sparc64 for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu. for sparc64. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fff8efe7b71efd88829782be64dc42c25c70ad53 tree 3cf82543f8b2194b9eb6bbf1a9da12753c8da351 parent 6f912042256c12b0927438122594f5379b364f5d author KAMEZAWA Hiroyuki Mon, 10 Apr 2006 22:52:51 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:31 -0700 [PATCH] for_each_possible_cpu: sparc for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6f912042256c12b0927438122594f5379b364f5d tree c11949814057b356d5896e7f025ec15132dbff78 parent dd7ba3b8b15f9c65366986d723ae83254d8d78b7 author KAMEZAWA Hiroyuki Mon, 10 Apr 2006 22:52:50 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:31 -0700 [PATCH] for_each_possible_cpu: network codes for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu under /net Signed-off-by: KAMEZAWA Hiroyuki Acked-by: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dd7ba3b8b15f9c65366986d723ae83254d8d78b7 tree fd7ec09ddeb6fbfc8549a71f66d86792e4add5da parent 6f91fe88e4e28b40b4f08d99e0ea6d17b70e9567 author Adrian Bunk Mon, 10 Apr 2006 22:52:49 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:30 -0700 [PATCH] arch/i386/mach-voyager/voyager_cat.c: named initializers This patch switches arch/i386/mach-voyager/voyager_cat.c to using named initializers for struct resource. Besides a fixing compile error in Greg's tree, it makes the code more readable. Signed-off-by: Adrian Bunk Cc: James Bottomley Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6f91fe88e4e28b40b4f08d99e0ea6d17b70e9567 tree 035ac07180e058579ee8023ed0fcb12e40315594 parent 54404e72cd3758e465fb6362f6d71e22b705c589 author NeilBrown Mon, 10 Apr 2006 22:52:48 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:30 -0700 [PATCH] md: make sure 64bit fields in version-1 metadata are 64-bit aligned reshape_position is a 64bit field that was not 64bit aligned. So swap with new_level. NOTE: this is a user-visible change. However: - The bad code has not appeared in a released kernel - This code is still marked 'experimental' - This only affects version-1 superblock, which are not in wide use - These field are only used (rather than simply reported) by user-space tools in extemely rare circumstances : after a reshape crashes in the first second of the reshape process. So I believe that, at this stage, the change is safe. Especially if people heed the 'help' message on use mdadm-2.4.1. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 54404e72cd3758e465fb6362f6d71e22b705c589 tree aead2791d4e5ea39c0bb57e4d29760d72db07727 parent 29ff2db55196717e2e67e0f04adc833ee7edd491 author Christoph Lameter Mon, 10 Apr 2006 22:52:47 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:30 -0700 [PATCH] Fix NULL pointer dereference in node_read_numastat() zone_pcp() only returns valid values if the processor is online. Change node_read_numastat() to only scan online processors. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 29ff2db55196717e2e67e0f04adc833ee7edd491 tree 7f68496e093a294d60939b60aa204ff16fb9633a parent 8a5bc075b8d8cf7a87b3f08fad2fba0f5d13295e author Andrew Morton Mon, 10 Apr 2006 22:52:46 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:30 -0700 [PATCH] select() warning fixes fs/select.c: In function `core_sys_select': fs/select.c:339: warning: assignment from incompatible pointer type fs/select.c:376: warning: comparison of distinct pointer types lacks a cast By using a void* we can remove lots of casts rather than adding more. Cc: Jes Sorensen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8a5bc075b8d8cf7a87b3f08fad2fba0f5d13295e tree 977c14c704c44a905014ff9b3c0f613983793109 parent 5ce74abe788a26698876e66b9c9ce7e7acc25413 author Mike Galbraith Mon, 10 Apr 2006 22:52:45 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:30 -0700 [PATCH] sched: don't awaken RT tasks on expired array RT tasks are being awakened on the expired array when expired_starving() is true, whereas they really should be excluded. Fix. Signed-off-by: Mike Galbraith Acked-by: Ingo Molnar Cc: Con Kolivas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ce74abe788a26698876e66b9c9ce7e7acc25413 tree 2e0c2cfc1aad32a9e2903f5e01256f1ed43982e4 parent 019ff2d57b0bbe77d1eca19f5b634e5e7ff2a0b8 author Mike Galbraith Mon, 10 Apr 2006 22:52:44 -0700 committer Linus Torvalds Tue, 11 Apr 2006 06:18:30 -0700 [PATCH] sched: fix interactive task starvation Fix a starvation problem that occurs when a stream of highly interactive tasks delay an array switch for extended periods despite EXPIRED_STARVING(rq) being true. AFAIKT, the only choice is to enqueue awakening tasks on the expired array in this case. Without this patch, it can be nearly impossible to remotely login to a busy server, and interactive shell commands can starve for minutes. Also, convert the EXPIRED_STARVING macro into an inline function which humans can understand. Signed-off-by: Mike Galbraith Acked-by: Ingo Molnar Cc: Nick Piggin Acked-by: Con Kolivas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d1195c516a9acd767cb541f914be2c6ddcafcfc1 tree 1edb7afcdee207e34298ec72e0a89b0a66866b2b parent 7519fdc90fe577cb966ab1ce2bf51ac639f05a0e author Pekka J Enberg Tue, 11 Apr 2006 14:21:59 +0200 committer Jens Axboe Tue, 11 Apr 2006 14:21:59 +0200 [PATCH] vfs: add splice_write and splice_read to documentation This patch adds the new splice_write and splice_read file operations to Documentation/filesystems/vfs.txt. Signed-off-by: Pekka Enberg Signed-off-by: Jens Axboe commit 7519fdc90fe577cb966ab1ce2bf51ac639f05a0e tree b07dba5126ab4ef4fe55fa5897f821432179429e parent 88e6faefaeed40a162041d85689e94595756d4c3 author OGAWA Hirofumi Tue, 11 Apr 2006 14:00:04 +0200 committer Jens Axboe Tue, 11 Apr 2006 14:00:04 +0200 [PATCH] Remove sys_ prefix of new syscalls from __NR_sys_* On i386, we don't use sys_ prefix for __NR_*. This patch removes it [FWIW, _syscall*() macros will generate foo() instead of sys_foo().] Signed-off-by: OGAWA Hirofumi Signed-off-by: Jens Axboe commit 88e6faefaeed40a162041d85689e94595756d4c3 tree 78724ca8f0b7a5d0cf6071e5615e2e6eee3ab7f4 parent 341b446bc5aa36d1d5b8159c1e66716b5d89024d author Andrew Morton Tue, 11 Apr 2006 13:59:36 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:59:36 +0200 [PATCH] splice: warning fix From: Andrew Morton net/socket.c:148: warning: initialization from incompatible pointer type extern declarations in .c files! Bad boy. Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit 341b446bc5aa36d1d5b8159c1e66716b5d89024d tree 6ccd0b90df84a94a4b7b4f8a6622d11786d74714 parent 73d62d83ec3627782ba6f55defc76f3ffbef46ee author Ingo Molnar Tue, 11 Apr 2006 13:57:45 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:57:45 +0200 [PATCH] another round of fs/pipe.c cleanups make pipe.c a bit more readable and hackable. Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit 73d62d83ec3627782ba6f55defc76f3ffbef46ee tree 732cf9ded2fc5ce37175df809394d384cd0ce693 parent c2058e0611c2fb4a00e63db61ef3a638cf760a98 author Ingo Molnar Tue, 11 Apr 2006 13:57:21 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:57:21 +0200 [PATCH] splice: comment styles - capitalize consistently - end sentences in one way or another - update comment text to match the implementation Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit c2058e0611c2fb4a00e63db61ef3a638cf760a98 tree 7f157bdb85a2a0c37c732487d5b2d18b8014fcbf parent 49570e9b29a3d78950b5eba6b73bdcca955f0877 author Jens Axboe Tue, 11 Apr 2006 13:56:34 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:56:34 +0200 [PATCH] splice: add Ingo as addition copyright holder The comment is also somewhat out of date, correct that as well. Signed-off-by: Jens Axboe commit 49570e9b29a3d78950b5eba6b73bdcca955f0877 tree 65ffdeb8062824b3370abbca5572782f440501e8 parent 6f767b0425f5902e4817648632230b512e81c963 author Jens Axboe Tue, 11 Apr 2006 13:56:09 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:56:09 +0200 [PATCH] splice: unlikely() optimizations Also corrects a few comments. Patch mainly from Ingo, changes by me. Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit 6f767b0425f5902e4817648632230b512e81c963 tree 2a8177c31617b4994a9ae5173b10653fb547e218 parent 923f4f23940d2361e8d5c4245982163a8e9d1c91 author Jens Axboe Tue, 11 Apr 2006 13:53:56 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:53:56 +0200 [PATCH] splice: speedups and optimizations - Kill the local variables that cache ->nrbufs, they just take up space. - Only set do_wakeup for a real pipe. This is a big win for direct splicing. - Kill i_mutex lock around ->f_pos update, regular io paths don't do this either. Signed-off-by: Jens Axboe commit 923f4f23940d2361e8d5c4245982163a8e9d1c91 tree 05d24681cadfd731a083b0fa3b22b6e7a6622555 parent 9aeedfc4712ed58d9f7ae41596185c72b8dc97e8 author Ingo Molnar Tue, 11 Apr 2006 13:53:33 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:53:33 +0200 [PATCH] pipe.c/fifo.c code cleanups more code cleanups after the macro conversion: - standardize on 'struct pipe_inode_info *pipe' variable names - introduce 'pipe' temporaries to reduce mass inode->i_pipe dereferencing Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit 9aeedfc4712ed58d9f7ae41596185c72b8dc97e8 tree b055bab09a86cfc6cb13506d2f25da6abd12e3c1 parent 7480a90435673b4c717b6caf1350ec577d5f1adf author Ingo Molnar Tue, 11 Apr 2006 13:53:10 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:53:10 +0200 [PATCH] get rid of the PIPE_*() macros get rid of the PIPE_*() macros. Scripted transformation. Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit 7480a90435673b4c717b6caf1350ec577d5f1adf tree 16470986faf89380450da76a928c7856e5a850a1 parent b92ce55893745e011edae70830b8bc863be881f9 author Jens Axboe Tue, 11 Apr 2006 13:52:47 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:52:47 +0200 [PATCH] splice: speedup __generic_file_splice_read Using find_get_page() is a lot faster than find_or_create_page(). This gets splice a lot closer to sendfile() for fd -> socket transfers. Signed-off-by: Jens Axboe commit b92ce55893745e011edae70830b8bc863be881f9 tree e2afd62d2e63d74157905140f5907d07bdfe31b9 parent 529565dcb1581c9a1e3f6df1c1763ca3e0f0d512 author Jens Axboe Tue, 11 Apr 2006 13:52:07 +0200 committer Jens Axboe Tue, 11 Apr 2006 13:52:07 +0200 [PATCH] splice: add direct fd <-> fd splicing support It's more efficient for sendfile() emulation. Basically we cache an internal private pipe and just use that as the intermediate area for pages. Direct splicing is not available from sys_splice(), it is only meant to be used for sendfile() emulation. Additional patch from Ingo Molnar to avoid the PIPE_BUFFERS loop at exit for the normal fast path. Signed-off-by: Jens Axboe commit b5ac4817de3032796c558b0a32062e7392b5ea60 tree a34053145044ed27438a6176233001baea1da254 parent 94f2505be3b6afaf50129e949b1840bc4dd0b3e8 author Roman Zippel Sun, 09 Apr 2006 17:27:28 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:41:06 +0200 kconfig: fix typo in change count initialization Configuration needs saving when either of these conditions is true. Signed-off-by: Roman Zippel Signed-off-by: Sam Ravnborg commit 94f2505be3b6afaf50129e949b1840bc4dd0b3e8 tree 60e5c1ece1690e999890a08691a46845866e5f79 parent 59c6a3f4d745584f2f78cdf1f5e221a19518926c author Roman Zippel Sun, 09 Apr 2006 17:27:14 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:41:06 +0200 kconfig: recenter menuconfig Move the menuconfig output more into the centre again, it's using a fixed position depending on the window width using the fact that the menu output has to work in a 80 chars terminal. Signed-off-by: Roman Zippel Signed-off-by: Sam Ravnborg commit 59c6a3f4d745584f2f78cdf1f5e221a19518926c tree 392293e66a85997c4dcab8c65e69436bd0fdcab7 parent 40aee729b350672c2550640622416a855e27938f author Roman Zippel Sun, 09 Apr 2006 17:26:50 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:41:06 +0200 kconfig: revert conf behaviour change After the last patch fixed the real problem, revert this needless behaviour change of conf, which only hid the real problem. Signed-off-by: Roman Zippel Signed-off-by: Sam Ravnborg commit 40aee729b350672c2550640622416a855e27938f tree 507ded045006d744d2ba83df328c8003419c0162 parent eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 author Roman Zippel Sun, 09 Apr 2006 17:26:39 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:41:06 +0200 kconfig: fix default value for choice input The wrong default value can cause conf to end up in endless loop for choice questions. Signed-off-by: Roman Zippel Signed-off-by: Sam Ravnborg commit eaaae38c1ac4ccbec6d2de7255b0538f38fb29d6 tree 2bfe95565bfeac539b651499a6654f8a0a375635 parent 71378be91f5473e89c8be170c6e49edda3bdbb67 author Eric Sesterhenn Tue, 11 Apr 2006 00:54:16 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:37:07 +0200 kbuild: fix NULL dereference in scripts/mod/modpost.c before is NULL in this case, concluding from the surrounding code it seems that after is the right one to use. Signed-off-by: Eric Sesterhenn Signed-off-by: Sam Ravnborg commit 71378be91f5473e89c8be170c6e49edda3bdbb67 tree 0e776973af0d48034e2b15213af085849a74f3fe parent d39a206bc35d46a3b2eb98cd4f34e340d5e56a50 author Paolo 'Blaisorblade' Giarrusso Fri, 07 Apr 2006 16:16:40 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:37:07 +0200 kbuild: fix mode of checkstack.pl and other files. Make it executable like it should be. Do the same for other files intended to be executed by the user - the ones called by the build process needn't be executable as they already work (as argument to their interpreter). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Sam Ravnborg commit d39a206bc35d46a3b2eb98cd4f34e340d5e56a50 tree c11cac2d3051264accc36dee7ef9a735f4420659 parent d9df92e22aca939857c5bc9ecb130ef22307ccc1 author Sam Ravnborg Tue, 11 Apr 2006 13:24:32 +0200 committer Sam Ravnborg Tue, 11 Apr 2006 13:24:32 +0200 kbuild: rebuild initramfs if content of initramfs changes initramfs.cpio.gz being build in usr/ and included in the kernel was not rebuild when the included files changed. To fix this the following was done: - let gen_initramfs.sh generate a list of files and directories included in the initramfs - gen_initramfs generate the gzipped cpio archive so we could simplify the kbuild file (Makefile) - utilising the kbuild infrastructure so when uid/gid root mapping changes the initramfs will be rebuild With this change we have a much more robust initramfs generation. Signed-off-by: Sam Ravnborg commit 019ff2d57b0bbe77d1eca19f5b634e5e7ff2a0b8 tree 6ff46a380b8c42c9615a521e94d2bd608aabb9f9 parent 8c0b5113a55c698f3190ec85925815640f1c2049 author Nathan Scott Tue, 11 Apr 2006 15:45:05 +1000 committer Nathan Scott Tue, 11 Apr 2006 15:45:05 +1000 [XFS] Fix a problem in aligning inode allocations to stripe unit boundaries. SGI-PV: 951862 SGI-Modid: xfs-linux-melb:xfs-kern:25726a Signed-off-by: Nathan Scott commit 8c0b5113a55c698f3190ec85925815640f1c2049 tree 99f0d35a0a69a1b7fa870fed3f0c2fc22c995489 parent 58829e490ee805f1c8b3009abc90e2a1a7a0d278 author Nathan Scott Tue, 11 Apr 2006 15:12:45 +1000 committer Nathan Scott Tue, 11 Apr 2006 15:12:45 +1000 [XFS] Fix utime(2) in the case that no times parameter was passed in. SGI-PV: 949858 SGI-Modid: xfs-linux-melb:xfs-kern:25717a Signed-off-by: Jes Sorensen Signed-off-by: Nathan Scott commit 58829e490ee805f1c8b3009abc90e2a1a7a0d278 tree 6eb08b56ec5cf164ba70113749cb800a7a0ed83d parent 1fc5d959d88a5f77aa7e4435f6c9d0e2d2236704 author David Chinner Tue, 11 Apr 2006 15:11:20 +1000 committer Nathan Scott Tue, 11 Apr 2006 15:11:20 +1000 [XFS] Fix an inode use-after-free durin an unpin. When reclaiming inodes that have been unlinked, we may need to execute transactions during reclaim. By the time the transaction has hit the disk, the linux inode and xfs vnode may already have been freed so we can't reference them safely. Use the known xfs inode state to determine if it is safe to reference the vnode and linux inode during the unpin operation. SGI-PV: 946321 SGI-Modid: xfs-linux-melb:xfs-kern:25687a Signed-off-by: David Chinner Signed-off-by: Nathan Scott commit 1fc5d959d88a5f77aa7e4435f6c9d0e2d2236704 tree 0a2d3fce6b4e296f2d2dfbfdd5a58c19624d754b parent 8272145c05c6d01a34f5114357c5e8093fb66472 author David Chinner Tue, 11 Apr 2006 15:11:12 +1000 committer Nathan Scott Tue, 11 Apr 2006 15:11:12 +1000 [XFS] Fix inode reclaim scalability regression. When a filesystem has millions of inodes cached and has sparse cluster population, removing inodes from the cluster hash consumes excessive amounts of CPU time. Reduce the CPU cost by making removal O(1) via use of a double linked list for the hash chains. SGI-PV: 951551 SGI-Modid: xfs-linux-melb:xfs-kern:25683a Signed-off-by: David Chinner Signed-off-by: Nathan Scott commit 8272145c05c6d01a34f5114357c5e8093fb66472 tree 9ecab9d1bd5bc3f106ff1b8447869fef87a0d30b parent e50bd16fe49689bc5fb54fca5ed8b568dfba65c6 author Nathan Scott Tue, 11 Apr 2006 15:10:55 +1000 committer Nathan Scott Tue, 11 Apr 2006 15:10:55 +1000 [XFS] Fix a writepage regression where we accidentally stopped honouring nonblock mode with the new IO path code (since 2.6.16). SGI-PV: 951662 SGI-Modid: xfs-linux-melb:xfs-kern:25676a Signed-off-by: Nathan Scott commit e50bd16fe49689bc5fb54fca5ed8b568dfba65c6 tree 5cb50495fdd11c695177cfce25af996b0b4583d0 parent 30d41bfbfb40bc6615e62eaa17fead79e3083c32 author Nathan Scott Tue, 11 Apr 2006 15:10:45 +1000 committer Nathan Scott Tue, 11 Apr 2006 15:10:45 +1000 [XFS] Fix superblock validation regression for the zero imaxpct case. Thanks to kjamieson for noticing. SGI-PV: 951661 SGI-Modid: xfs-linux-melb:xfs-kern:25675a Signed-off-by: Nathan Scott commit 30d41bfbfb40bc6615e62eaa17fead79e3083c32 tree b570a428b88e5cde113236c9cb208cdc1045ffb3 parent e38d557896c4213dd0919770feac0f4a8f60151b parent 1356c1948da967bc1d4c663762bfe21dfcec4b2f author Linus Torvalds Mon, 10 Apr 2006 16:45:24 -0700 committer Linus Torvalds Mon, 10 Apr 2006 16:45:24 -0700 Merge master.kernel.org:/home/rmk/linux-2.6-arm * master.kernel.org:/home/rmk/linux-2.6-arm: [ARM] 3473/1: Use numbers 0-15 for the VFP double registers [ARM] 3472/1: Use the D variants of FLDMIA/FSTMIA on ARMv6 [ARM] 3471/1: FTOSI functions should return 0 for NaN [ARM] 3470/1: Clear the HWCAP bits for the disabled kernel features [ARM] 3469/1: S3C24XX: clkout missing hclk selector [ARM] 3468/1: S3C2410: SMDK common include fix [ARM] 3461/1: ARM: OMAP: Fix clk_get() when using id and name [ARM] 3460/1: ARM: OMAP: Remove unnecessary nop_release() [ARM] 3459/1: ixp23xx: fix debug serial macros for big-endian operation [ARM] Allow decompressor to be built with -ffunction-sections [ARM] Fix SA110/SA1100 cache flushing [ARM] ebsa110: Fix incorrect serial port address [ARM] Fix ebsa110 debug macros [ARM] Move FLUSH_BASE macros to asm/arch/memory.h [ARM] Remove unnecessary extra parens in include/asm-arm/memory.h [ARM] arm's arch_local_page_offset() fix against 2.6.17-rc1 commit e38d557896c4213dd0919770feac0f4a8f60151b tree 6f35cc88a0591a2195ce3e4a849d34c367288903 parent de12a7878c11f3b282d640888aa635e0711d0b5e parent 65714b918415e06c92426f6544b2296dae694590 author Linus Torvalds Mon, 10 Apr 2006 16:44:09 -0700 committer Linus Torvalds Mon, 10 Apr 2006 16:44:09 -0700 Merge branch 'upstream-linus' of git://oss.oracle.com/home/sourcebo/git/ocfs2 * 'upstream-linus' of git://oss.oracle.com/home/sourcebo/git/ocfs2: [PATCH] CONFIGFS_FS must depend on SYSFS [PATCH] Bogus NULL pointer check in fs/configfs/dir.c ocfs2: Better I/O error handling in heartbeat ocfs2: test and set teardown flag early in user_dlm_destroy_lock() ocfs2: Handle the DLM_CANCELGRANT case in user_unlock_ast() ocfs2: catch an invalid ast case in dlmfs ocfs2: remove an overly aggressive BUG() in dlmfs ocfs2: multi node truncate fix commit de12a7878c11f3b282d640888aa635e0711d0b5e tree 742b72a47cc36a7e591dba1883cd9af3c44290c4 parent 1b72373491a061be6d456d219a4e2d054ac2aaad author Eric W. Biederman Mon, 10 Apr 2006 17:16:49 -0600 committer Linus Torvalds Mon, 10 Apr 2006 16:36:50 -0700 [PATCH] de_thread: Don't confuse users do_each_thread. Oleg Nesterov spotted two interesting bugs with the current de_thread code. The simplest is a long standing double decrement of __get_cpu_var(process_counts) in __unhash_process. Caused by two processes exiting when only one was created. The other is that since we no longer detach from the thread_group list it is possible for do_each_thread when run under the tasklist_lock to see the same task_struct twice. Once on the task list as a thread_group_leader, and once on the thread list of another thread. The double appearance in do_each_thread can cause a double increment of mm_core_waiters in zap_threads resulting in problems later on in coredump_wait. To remedy those two problems this patch takes the simple approach of changing the old thread group leader into a child thread. The only routine in release_task that cares is __unhash_process, and it can be trivially seen that we handle cleaning up a thread group leader properly. Since de_thread doesn't change the pid of the exiting leader process and instead shares it with the new leader process. I change thread_group_leader to recognize group leadership based on the group_leader field and not based on pids. This should also be slightly cheaper then the existing thread_group_leader macro. I performed a quick audit and I couldn't see any user of thread_group_leader that cared about the difference. Signed-off-by: Eric W. Biederman Signed-off-by: Linus Torvalds commit 1356c1948da967bc1d4c663762bfe21dfcec4b2f tree 7d7ddbaa5b9b69b53b9079bd7562eb3daf7682c4 parent bb54a335ae6d282a4f177c7b35cd149aa9b0b9be author Catalin Marinas Mon, 10 Apr 2006 21:32:46 +0100 committer Russell King Mon, 10 Apr 2006 21:32:46 +0100 [ARM] 3473/1: Use numbers 0-15 for the VFP double registers Patch from Catalin Marinas This patch changes the double registers numbering to 0-15 from even 0-30, in preparation for future VFP extensions. It also fixes the VFP_REG_ZERO bug (value 16 actually represents the 8th double register with the original numbering). The original mcrr/mrrc on CP10 were generating FMRRS/FMSRR instead of FMRRD/FMDRR. The patch changes to CP11 for the correct instructions. Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit bb54a335ae6d282a4f177c7b35cd149aa9b0b9be tree 66dc46a556ab5a11748a42a069b45aa32c4c126a parent 1320a80d1d2587545f39bc0d2dc3adaf390250ef author Catalin Marinas Mon, 10 Apr 2006 21:32:42 +0100 committer Russell King Mon, 10 Apr 2006 21:32:42 +0100 [ARM] 3472/1: Use the D variants of FLDMIA/FSTMIA on ARMv6 Patch from Catalin Marinas The X variants are deprecated starting with ARMv6. Using the D variants, the fpmx_state in vfp_hard_struct is no longer needed. Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit 1320a80d1d2587545f39bc0d2dc3adaf390250ef tree 95a2af8dca357efe40a70258b70fa1227098098b parent adeff42236aec0601ec979d1a41cd6d9cf5a8c05 author Catalin Marinas Mon, 10 Apr 2006 21:32:39 +0100 committer Russell King Mon, 10 Apr 2006 21:32:39 +0100 [ARM] 3471/1: FTOSI functions should return 0 for NaN Patch from Catalin Marinas The NaN case was dealed with by the "exponent >= ... + 32" condition but it was not setting the value "d" to 0. Signed-off-by: Ken'ichi Kuromusha Signed-off-by: Russell King commit adeff42236aec0601ec979d1a41cd6d9cf5a8c05 tree 52691b790e036de0a4f311f6ecef84f66a6796ae parent 7359036d5cdb86d14cfeb06d0e5a1d68f85cf8b7 author Catalin Marinas Mon, 10 Apr 2006 21:32:35 +0100 committer Russell King Mon, 10 Apr 2006 21:32:35 +0100 [ARM] 3470/1: Clear the HWCAP bits for the disabled kernel features Patch from Catalin Marinas Glibc interprets the HWCAP bits and decides on what features to use. However, even if the features are present in the hardware, they are not always supported by the kernel and hence the corresponding bits have to be cleared from the elf_hwcap variable. Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit ce684df05a531904ea055d01aeee75321fa0db1e tree 0190ad3a94d12efeed218abe8e69a9062a75c75c parent f697f74a6b189702474b2fd457e1f9365fa213e3 author Michael S. Tsirkin Mon, 10 Apr 2006 13:17:43 -0700 committer Roland Dreier Mon, 10 Apr 2006 13:17:43 -0700 IB/cache: Use correct pointer to calculate size When allocating gid_cache, use kmalloc(sizeof *gid_cache, ...) rather than kmalloc(sizeof *pkey_cache, ...). It doesn't really matter which one is used, since the size ends up the same either way, but it's much better to say what we mean. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 1b72373491a061be6d456d219a4e2d054ac2aaad tree a8af22d36b8028239693f3012c08a0f7ebd1369d parent 9227c33de80ac01f269ed33624990ce84358e419 author Jeff Garzik Mon, 10 Apr 2006 14:56:39 -0400 committer Jeff Garzik Mon, 10 Apr 2006 14:56:39 -0400 [libata] sata_mv: fix can_queue line accidentally removed in scsi-eh patch commit 65714b918415e06c92426f6544b2296dae694590 tree a68b1ae614247c75dc5caba695cc4d14b37d799e parent cbca692c246874a3cc1b5a9b694add4c39e8bc18 author Adrian Bunk Sun, 26 Mar 2006 14:25:52 +0200 committer Mark Fasheh Mon, 10 Apr 2006 11:17:21 -0700 [PATCH] CONFIGFS_FS must depend on SYSFS This patch fixes the a compile error with CONFIG_SYSFS=n Configfs is creating, as a matter of policy, the /sys/kernel/config mountpoint. This means it requires CONFIG_SYSFS. Signed-off-by: Adrian Bunk Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh commit cbca692c246874a3cc1b5a9b694add4c39e8bc18 tree fd9ac8ed8387c72f444c7c78e57a1ff07427f0fb parent a9e2ae39170d01937725e1fff2e606baaa71346c author Eric Sesterhenn Thu, 23 Mar 2006 00:36:54 +0100 committer Mark Fasheh Mon, 10 Apr 2006 11:16:17 -0700 [PATCH] Bogus NULL pointer check in fs/configfs/dir.c We check the "group" pointer after we dereference it. This check is bogus, as it cannot be NULL coming in. Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh commit 9227c33de80ac01f269ed33624990ce84358e419 tree 7678d342949db011d37e15516c3eaa22ec32ff2a parent 676165a8af7167f488abdcce6851a9bc36e83254 author Christoph Hellwig Sat, 01 Apr 2006 19:21:04 +0200 committer Jeff Garzik Mon, 10 Apr 2006 14:15:47 -0400 [PATCH] move ->eh_strategy_handler to the transport class Overriding the whole EH code is a per-transport, not per-host thing. Move ->eh_strategy_handler to the transport class, same as ->eh_timed_out. Downside is that scsi_host_alloc can't check for the total lack of EH anymore, but the transition period from old EH where we needed it is long gone already. Signed-off-by: Christoph Hellwig Signed-off-by: Jeff Garzik commit 676165a8af7167f488abdcce6851a9bc36e83254 tree a9b2b8dc155b48ce073b5ada31f2ac0694118e69 parent c3a9d6541f84ac3ff566982d08389b87c1c36b4e author Nick Piggin Mon, 10 Apr 2006 11:21:48 +1000 committer Linus Torvalds Mon, 10 Apr 2006 10:16:37 -0700 [PATCH] Fix buddy list race that could lead to page lru list corruptions Rohit found an obscure bug causing buddy list corruption. page_is_buddy is using a non-atomic test (PagePrivate && page_count == 0) to determine whether or not a free page's buddy is itself free and in the buddy lists. Each of the conjuncts may be true at different times due to unrelated conditions, so the non-atomic page_is_buddy test may find each conjunct to be true even if they were not both true at the same time (ie. the page was not on the buddy lists). Signed-off-by: Martin Bligh Signed-off-by: Rohit Seth Signed-off-by: Nick Piggin Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Linus Torvalds commit f697f74a6b189702474b2fd457e1f9365fa213e3 tree 2e01abf6b8f324b195c7d72e925b79e9eca9ab1f parent a30bb96c6f5aca6513e4dbd94962da03d14b20a9 author Roland Dreier Mon, 10 Apr 2006 09:43:59 -0700 committer Roland Dreier Mon, 10 Apr 2006 09:43:59 -0700 IPoIB: Use spin_lock_irq() instead of spin_lock_irqsave() We know ipoib_flush_paths() is called from plain process context with interrupts enabled, since it does wait_for_completion(). So there's no need to use spin_lock_irqsave() -- spin_lock_irq() is fine. Signed-off-by: Roland Dreier commit a30bb96c6f5aca6513e4dbd94962da03d14b20a9 tree 7314d0813071b9e1b808422c96e868c26e14245a parent abf45dbb5b256dab439ca3b6b71191ecfddf9cb6 author Eli Cohen Wed, 05 Apr 2006 15:59:34 +0300 committer Roland Dreier Mon, 10 Apr 2006 09:43:59 -0700 IPoIB: Close race in ipoib_flush_paths() ib_sa_cancel_query() must be called with priv->lock held since a completion might arrive and set path->query to NULL. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit abf45dbb5b256dab439ca3b6b71191ecfddf9cb6 tree c2b95e3e911f6c8649c84c196de8b399cf7db269 parent 0f4852513fb07405ce88da40d8c497060561246e author Michael S. Tsirkin Wed, 05 Apr 2006 15:47:16 +0300 committer Roland Dreier Mon, 10 Apr 2006 09:43:58 -0700 IB/mthca: Disable tuning PCI read burst size The PCI spec recommends against drivers playing with a device's PCI read burst size, and says that systems software should configure it. And we actually have users that report that changing it from the default set by BIOS hurts performance and/or stability for them. On the other hand, the Mellanox Programmer's Reference Manual recommends turning it up all the way to the maximum value. Some tests conducted here in the lab do not show performance improvement from this tuning, but this might be just me. As a work-around, make this tuning an option, off by default (safe value), with an eye towards removing it completely one day if no one complains. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 0f4852513fb07405ce88da40d8c497060561246e tree 4221d43a7868b0431d7564601017d8f1449cd13d parent f2de3b06126ddb07d0e4617225d74dce0855add3 author Shirley Ma Mon, 10 Apr 2006 09:43:58 -0700 committer Roland Dreier Mon, 10 Apr 2006 09:43:58 -0700 IPoIB: Make send and receive queue sizes tunable Make IPoIB's send and receive queue sizes tunable via module parameters ("send_queue_size" and "recv_queue_size"). This allows the queue sizes to be enlarged to fix disastrously bad performance on some platforms and workloads, without bloating memory usage when large queues aren't needed. Signed-off-by: Shirley Ma Signed-off-by: Roland Dreier commit f2de3b06126ddb07d0e4617225d74dce0855add3 tree 21a62b2115804688d700c01ed2ede87413b5d9d1 parent bf6a9e31cfa768ce0a8e18474b3ca808641d9243 author Eli Cohen Wed, 05 Apr 2006 14:59:40 +0300 committer Roland Dreier Mon, 10 Apr 2006 09:43:58 -0700 IPoIB: Wait for join to finish before freeing mcast struct ipoib_mcast_restart_task() might free an mcast object while a join request is still outstanding, leading to an oops when the query completes. Fix this by waiting for query to complete, similar to what ipoib_stop_thread() is doing. The wait for mcast completion code is consolidated in wait_for_mcast_join(). Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit bf6a9e31cfa768ce0a8e18474b3ca808641d9243 tree a7ebdb5a10e528959ca1497e222975d3087a5eef parent d2e0655ede1d91c3a586455d03a4a2d57e659830 author Jack Morgenstein Mon, 10 Apr 2006 09:43:47 -0700 committer Roland Dreier Mon, 10 Apr 2006 09:43:47 -0700 IB: simplify static rate encoding Push translation of static rate to HCA format into low-level drivers, where it belongs. For static rate encoding, use encoding of rate field from IB standard PathRecord, with addition of value 0, for backwards compatibility with current usage. The changes are: - Add enum ib_rate to midlayer includes. - Get rid of static rate translation in IPoIB; just use static rate directly from Path and MulticastGroup records. - Update mthca driver to translate absolute static rate into the format used by hardware. This also fixes mthca's static rate handling for HCAs that are capable of 4X DDR. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit c3a9d6541f84ac3ff566982d08389b87c1c36b4e tree 161e507b276105b35dadf0c2637be9f018b0f664 parent 460fbf82c0842cad3f3c744c4dcb81978b7829f3 author David Howells Mon, 10 Apr 2006 15:15:21 +0100 committer Linus Torvalds Mon, 10 Apr 2006 09:33:46 -0700 [Security] Keys: Fix oops when adding key to non-keyring This fixes the problem of an oops occuring when a user attempts to add a key to a non-keyring key [CVE-2006-1522]. The problem is that __keyring_search_one() doesn't check that the keyring it's been given is actually a keyring. I've fixed this problem by: (1) declaring that caller of __keyring_search_one() must guarantee that the keyring is a keyring; and (2) making key_create_or_update() check that the keyring is a keyring, and return -ENOTDIR if it isn't. This can be tested by: keyctl add user b b `keyctl add user a a @s` Signed-off-by: David Howells Signed-off-by: Linus Torvalds commit 460fbf82c0842cad3f3c744c4dcb81978b7829f3 tree d19b6d7d18491a8fa423f3ac9f2b422863b8c373 parent 68491d5892defca59ad4f604cace2b1e30889c14 parent b1a7ffcb7a047e99ab02424e651e0492f36095f7 author Linus Torvalds Mon, 10 Apr 2006 08:46:00 -0700 committer Linus Torvalds Mon, 10 Apr 2006 08:46:00 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (35 commits) [IPV6]: Deinline few large functions in inet6 code [IPV4] ip_fragment: Always compute hash with ipfrag_lock held. [NETFILTER]: Fix DNAT in LOCAL_OUT [X25]: Restore skb->dev setting in x25_type_trans(). [NET]: Fix hotplug race during device registration. [IPV6]: Unexport secure_ipv6_port_ephemeral [NETFILTER]: Fix build with CONFIG_NETFILTER=y/m on IA64 [NET]: More kzalloc conversions. [NET] kzalloc: use in alloc_netdev [PKT_SCHED] act_police: Rename methods. [TG3]: Speed up SRAM access (2nd version) [TG3]: Kill some less useful flags [NETFILTER]: H.323 helper: remove changelog [NETFILTER]: Convert conntrack/ipt_REJECT to new checksumming functions [NETFILTER]: Add address family specific checksum helpers [NETFILTER]: Introduce infrastructure for address family specific operations [NETFILTER]: Fix IP_NF_CONNTRACK_NETLINK dependency [NETFILTER]: H.323 helper: add parameter 'default_rrq_ttl' [NETFILTER]: H.323 helper: make get_h245_addr() static [NETFILTER]: H.323 helper: change EXPORT_SYMBOL to EXPORT_SYMBOL_GPL ... commit 529565dcb1581c9a1e3f6df1c1763ca3e0f0d512 tree e8069cc17f887ad86f8dee0d96640a2f19bf4112 parent 3a326a2ce88e71d00ac0d133e314a3342a7709f8 author Ingo Molnar Mon, 10 Apr 2006 15:18:58 +0200 committer Jens Axboe Mon, 10 Apr 2006 15:18:58 +0200 [PATCH] splice: add optional input and output offsets add optional input and output offsets to sys_splice(), for seekable file descriptors: asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags); semantics are straightforward: f_pos will be updated with the offset provided by user-space, before the splice transfer is about to begin. Providing a NULL offset pointer means the existing f_pos will be used (and updated in situ). Providing an offset for a pipe results in -ESPIPE. Providing an invalid offset pointer results in -EFAULT. Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit 3a326a2ce88e71d00ac0d133e314a3342a7709f8 tree 3a3cf55be19311c04d195e37baec9f49c4015b18 parent 0b749ce3802428007a37870eb51ba3c0bdf90857 author Ingo Molnar Mon, 10 Apr 2006 15:18:35 +0200 committer Jens Axboe Mon, 10 Apr 2006 15:18:35 +0200 [PATCH] introduce a "kernel-internal pipe object" abstraction separate out the 'internal pipe object' abstraction, and make it usable to splice. This cleans up and fixes several aspects of the internal splice APIs and the pipe code: - pipes: the allocation and freeing of pipe_inode_info is now more symmetric and more streamlined with existing kernel practices. - splice: small micro-optimization: less pointer dereferencing in splice methods Signed-off-by: Ingo Molnar Update XFS for the ->splice_read/->splice_write changes. Signed-off-by: Jens Axboe commit 0b749ce3802428007a37870eb51ba3c0bdf90857 tree 8e3a2278fab3dae95310570ea54d0dfee1af9fe5 parent 49d0b21be21efc07526d637e0ae935019667e532 author Jens Axboe Mon, 10 Apr 2006 09:05:04 +0200 committer Jens Axboe Mon, 10 Apr 2006 09:05:04 +0200 [PATCH] splice: be smarter about calling do_page_cache_readahead() We don't want to call into the read-ahead logic unless we are at the start of a page, _or_ we have multiple pages to read. Signed-off-by: Jens Axboe commit 49d0b21be21efc07526d637e0ae935019667e532 tree 04b200920e3e628a1a38939c580b5d63ff56bf0a parent 16c523ddabcce5d3d817f4a2491d628f84dfaaa1 author Jens Axboe Mon, 10 Apr 2006 09:04:41 +0200 committer Jens Axboe Mon, 10 Apr 2006 09:04:41 +0200 [PATCH] splice: optimize the splice buffer mapping We don't really need to lock down the pages, just make sure they are uptodate. Signed-off-by: Jens Axboe commit 16c523ddabcce5d3d817f4a2491d628f84dfaaa1 tree 61b26e8d6b774a956fb069efdc62eb275b849c97 parent c0bd1f650bd06a43435808d44f1e9520ea806206 author Jens Axboe Mon, 10 Apr 2006 09:03:58 +0200 committer Jens Axboe Mon, 10 Apr 2006 09:03:58 +0200 [PATCH] splice: cleanup __generic_file_splice_read() The whole shadow/pages logic got overly complex, and this simpler approach is actually faster in testing. Signed-off-by: Jens Axboe commit c0bd1f650bd06a43435808d44f1e9520ea806206 tree e2f4480a1bc08d9044f66c44174273abea7e0c58 parent 9aefe431f5a000884db7ae74ac208de814fe5913 author Jens Axboe Mon, 10 Apr 2006 09:03:32 +0200 committer Jens Axboe Mon, 10 Apr 2006 09:03:32 +0200 [PATCH] splice: only call wake_up_interruptible() when we really have to __wake_up_common() is pretty heavy in the kernel profiles, this brings it down to a more acceptable level. Signed-off-by: Jens Axboe commit 9aefe431f5a000884db7ae74ac208de814fe5913 tree 2a5a5469f0a56529c78ca067d798fff0363207a3 parent c7f21e4f5a3d4e378e4d453b2be209dcfd1bb964 author Dave Jones Mon, 10 Apr 2006 09:02:40 +0200 committer Jens Axboe Mon, 10 Apr 2006 09:02:40 +0200 [PATCH] splice: potential !page dereference We can get to out: with a NULL page, which we probably don't want to be calling page_cache_release() on. Signed-off-by: Dave Jones Signed-off-by: Jens Axboe commit c7f21e4f5a3d4e378e4d453b2be209dcfd1bb964 tree 2a8ee86b13c328a3df94ea3176e1691f411bdafb parent 67644726317a8274be4a3d0ef85b9ccebaa90304 author Jens Axboe Mon, 10 Apr 2006 09:01:01 +0200 committer Jens Axboe Mon, 10 Apr 2006 09:01:01 +0200 [PATCH] splice: mark the io page as accessed We should do that, since we do the LRU manipulation ourselves now. Suggested by Nick Piggin. Signed-off-by: Jens Axboe commit 68491d5892defca59ad4f604cace2b1e30889c14 tree 6d4a023ec88ef043808798b7539de0a9c7fa765a parent aa1d1a0af6022f02fb601508d3feaabafd405299 author David S. Miller Thu, 06 Apr 2006 20:28:11 -0700 committer David S. Miller Sun, 09 Apr 2006 22:56:45 -0700 [SPARC64]: Set ARCH_SELECT_MEMORY_MODEL Otherwise the build breaks with EXPERIMENTAL disabled because SPARSEMEM will not get selected properly. See mm/Kconfig for how that works. Signed-off-by: David S. Miller commit aa1d1a0af6022f02fb601508d3feaabafd405299 tree ef472a0c4df262b26366eb0d25fa2d03c87a444b parent 731bbe431f7dbbcbdc5293cfb187a916c375e83b author David S. Miller Thu, 06 Apr 2006 16:54:33 -0700 committer David S. Miller Sun, 09 Apr 2006 22:56:44 -0700 [SPARC64]: smp_call_function() fixups... 1) Take doc-book function comment from i386 implementation. 2) cacheline align call_lock, taken from powerpc 3) Need memory barrier after setting call_data 4) Remove timeout Signed-off-by: David S. Miller commit 731bbe431f7dbbcbdc5293cfb187a916c375e83b tree 6b4509828caff1cbed7526dcb514146d149e6056 parent 1608a96e7998bffd10fcb2440e8175cfb703fd95 author David S. Miller Tue, 04 Apr 2006 16:54:40 -0700 committer David S. Miller Sun, 09 Apr 2006 22:56:41 -0700 [SPARC64]: Translate PTRACE_GETEVENTMSG for 32-bit tasks. Signed-off-by: David S. Miller commit 1608a96e7998bffd10fcb2440e8175cfb703fd95 tree 2d14fb37fbfd5ff44654865dc8724b4fe8236903 parent 955c054f7905e0a9ee4483b03f866f61e6929bec author David S. Miller Sun, 02 Apr 2006 19:31:30 -0700 committer David S. Miller Sun, 09 Apr 2006 22:56:39 -0700 [SPARC64]: Update defconfig. Signed-off-by: David S. Miller commit 955c054f7905e0a9ee4483b03f866f61e6929bec tree 7e3f37f0f6b3c692dec00cc5351d65a3ccf46728 parent 1759e58ed2684b7a01cbb96864f23d18884f42ba author David S. Miller Sat, 01 Apr 2006 23:29:56 -0800 committer David S. Miller Sun, 09 Apr 2006 22:56:37 -0700 [SPARC64]: Print out return PC in cheetah_log_errors(). This makes debugging things a little bit easier. Signed-off-by: David S. Miller commit 1759e58ed2684b7a01cbb96864f23d18884f42ba tree e9c876d47c36093c3eb74456cbeb6b2f8cd69dbf parent 67644726317a8274be4a3d0ef85b9ccebaa90304 author David S. Miller Sat, 01 Apr 2006 23:28:10 -0800 committer David S. Miller Sun, 09 Apr 2006 22:56:35 -0700 [SPARC64]: Add dummy PTRACE_PEEKUSR for gdb. GDB uses a PTRACE_PEEKUSR call with offset 0 to see if a thread is alive, so provide a success return for this particular special case. Signed-off-by: David S. Miller commit b1a7ffcb7a047e99ab02424e651e0492f36095f7 tree ce84ddd2087b512ae484d6c6d21f985ef2e32a09 parent 55c0022e53452360064ea264c41410c70565d9f8 author Denis Vlasenko Sun, 09 Apr 2006 22:48:59 -0700 committer David S. Miller Sun, 09 Apr 2006 22:48:59 -0700 [IPV6]: Deinline few large functions in inet6 code Deinline a few functions which produce 200+ bytes of code. Size Uses Wasted Name and definition ===== ==== ====== ================================================ 429 3 818 __inet6_lookup include/net/inet6_hashtables.h 404 2 384 __inet6_lookup_established include/net/inet6_hashtables.h 206 3 372 __inet6_hash include/net/inet6_hashtables.h Signed-off-by: Denis Vlasenko Signed-off-by: David S. Miller commit 55c0022e53452360064ea264c41410c70565d9f8 tree cca5e75b12dfaaadf5620b59c7121a017a799117 parent 19910d1aec0b2b96ff4b4a93e2aed0d32643e850 author David S. Miller Sun, 09 Apr 2006 22:43:55 -0700 committer David S. Miller Sun, 09 Apr 2006 22:43:55 -0700 [IPV4] ip_fragment: Always compute hash with ipfrag_lock held. Otherwise we could compute an inaccurate hash due to the random seed changing. Noticed by Zach Brown and patch is based upon some feedback from Herbert Xu. Signed-off-by: David S. Miller commit 19910d1aec0b2b96ff4b4a93e2aed0d32643e850 tree 75d76070c55bc6564d27828ad251ac3fce462879 parent 9b591cbd4e0fc2911d105d88d354124467b2cc08 author Patrick McHardy Sun, 09 Apr 2006 22:38:29 -0700 committer David S. Miller Sun, 09 Apr 2006 22:38:29 -0700 [NETFILTER]: Fix DNAT in LOCAL_OUT Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 9b591cbd4e0fc2911d105d88d354124467b2cc08 tree 9da0f430be70d71e5d6f5f3105a225f3575a943e parent 9469d458b90bfb9117cbb488cfa645d94c3921b1 author David S. Miller Sun, 09 Apr 2006 22:37:18 -0700 committer David S. Miller Sun, 09 Apr 2006 22:37:18 -0700 [X25]: Restore skb->dev setting in x25_type_trans(). Noticed by Pascal Schlafer. Signed-off-by: David S. Miller commit 9469d458b90bfb9117cbb488cfa645d94c3921b1 tree 7b409ef16b310336edddcb396d1601896f39d33b parent 30aaa154fc21ad1ee4400e28009732a04a80862f author Sergey Vlasov Sun, 09 Apr 2006 22:32:48 -0700 committer David S. Miller Sun, 09 Apr 2006 22:32:48 -0700 [NET]: Fix hotplug race during device registration. From: Thomas de Grenier de Latour On Sun, 9 Apr 2006 21:56:59 +0400, Sergey Vlasov wrote: > However, show_address() does not output anything unless > dev->reg_state == NETREG_REGISTERED - and this state is set by > netdev_run_todo() only after netdev_register_sysfs() returns, so in > the meantime (while netdev_register_sysfs() is busy adding the > "statistics" attribute group) some process may see an empty "address" > attribute. I've tried the attached patch, suggested by Sergey Vlasov on hotplug-devel@, and as far as i can test it works just fine. Signed-off-by: David S. Miller commit 30aaa154fc21ad1ee4400e28009732a04a80862f tree 2486d6ea4bb00a5ed1e24c7ed5b5f76c07d7d49d parent 503e4faad18baa62bb818537b920ad939749823e author Adrian Bunk Sun, 09 Apr 2006 22:29:17 -0700 committer David S. Miller Sun, 09 Apr 2006 22:29:17 -0700 [IPV6]: Unexport secure_ipv6_port_ephemeral This patch removes the unused EXPORT_SYMBOL(secure_ipv6_port_ephemeral). Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 503e4faad18baa62bb818537b920ad939749823e tree 64ff33e6c80eee028fddf46de0a26a4dfeea4967 parent 77d04bd957ddca9d48a664e28b40f33993f4550e author Brian Haley Fri, 07 Apr 2006 15:00:06 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:49 -0700 [NETFILTER]: Fix build with CONFIG_NETFILTER=y/m on IA64 Can't build with CONFIG_NETFILTER=y/m on IA64, there's a missing #include in net/ipv6/netfilter.c net/ipv6/netfilter.c: In function `nf_ip6_checksum': net/ipv6/netfilter.c:92: warning: implicit declaration of function `csum_ipv6_magic' Signed-off-by: Brian Haley Signed-off-by: David S. Miller commit 77d04bd957ddca9d48a664e28b40f33993f4550e tree 8940d3ab7557aed03756e05eec13605e315c887e parent 31380de95cc3183bbb379339e67f83d69e56fbd6 author Andrew Morton Fri, 07 Apr 2006 14:52:59 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:48 -0700 [NET]: More kzalloc conversions. Signed-off-by: David S. Miller commit 31380de95cc3183bbb379339e67f83d69e56fbd6 tree 66eb2f4adf4ee02a0dffbe037f9340a3f7030544 parent 83b950c89c8cc0dcc1b079c638be25915c9945f1 author Paolo 'Blaisorblade' Giarrusso Thu, 06 Apr 2006 22:38:28 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:47 -0700 [NET] kzalloc: use in alloc_netdev Noticed this use, fixed it. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: David S. Miller commit 83b950c89c8cc0dcc1b079c638be25915c9945f1 tree d5216168fec6390a51ed371b80c42f6894380851 parent bbadf503d7c7e6efe0a4cd731f8855ba08276215 author Jamal Hadi Salim Thu, 06 Apr 2006 22:24:22 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:46 -0700 [PKT_SCHED] act_police: Rename methods. Rename policer specific _generic_ methods to be specific to _act_police_ Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller commit bbadf503d7c7e6efe0a4cd731f8855ba08276215 tree 1af228388f7f511525b7ef1d4b4777f4e258b2de parent d2d746f83b74022a50d28f7f0f496842c9cde330 author Michael Chan Thu, 06 Apr 2006 21:46:34 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:46 -0700 [TG3]: Speed up SRAM access (2nd version) Speed up SRAM read and write functions if possible by using MMIO instead of config. cycles. With this change, the post reset signature done at the end of D3 power change must now be moved before the D3 power change. IBM reported a problem on powerpc blades during ethtool self test that was caused by the memory test taking excessively long. Config. cycles are very slow on powerpc and the memory test can take more than 10 seconds to complete using config. cycles. David Miller informed me that an earlier version of the patch caused problems on sparc64 systems with built-in tg3 chips. This version fixes the problem by excluding all SUN built-in tg3 chips from doing MMIO SRAM access. TG3_FLAG_EEPROM_WRITE_PROT is also set unconditionally when TG3_FLG2_SUN_570X is set. This should be sane as all SUN chips are built-in and do not require Vaux switching. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit d2d746f83b74022a50d28f7f0f496842c9cde330 tree 4298a55e428e09a2643a53125e34caa6797b5f1e parent 7a43c9955178f1cc88374abe1186c0f2ef21e040 author Michael Chan Thu, 06 Apr 2006 21:45:39 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:44 -0700 [TG3]: Kill some less useful flags Kill the TG3_FLAG_NO_{TX|RX}_PSEUDO_CSUM flags because they are not very useful. This will free up some bits for new flags. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 7a43c9955178f1cc88374abe1186c0f2ef21e040 tree a91b830c5cd11208f2eaf53bc6f3c07d16c81cb2 parent 96f6bf82ea3abc77d255d5d554df5f349651f6de author Patrick McHardy Thu, 06 Apr 2006 16:16:51 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:43 -0700 [NETFILTER]: H.323 helper: remove changelog Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 96f6bf82ea3abc77d255d5d554df5f349651f6de tree 7050071415f6e0ab56ee6d9a51680b30c3876a94 parent 422c346fad806e2abaeffac686860ebc98dfe33e author Patrick McHardy Thu, 06 Apr 2006 14:19:24 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:42 -0700 [NETFILTER]: Convert conntrack/ipt_REJECT to new checksumming functions Besides removing lots of duplicate code, all converted users benefit from improved HW checksum error handling. Tested with and without HW checksums in almost all combinations. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 422c346fad806e2abaeffac686860ebc98dfe33e tree dd554d11e80ad33afef4b438ec4c2d8943ad37f4 parent bce8032ef3cc58170ab3550e9e271dba7b4c4764 author Patrick McHardy Thu, 06 Apr 2006 14:18:43 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:41 -0700 [NETFILTER]: Add address family specific checksum helpers Add checksum operation which takes care of verifying the checksum and dealing with HW checksum errors and avoids multiple checksum operations by setting ip_summed to CHECKSUM_UNNECESSARY after successful verification. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit bce8032ef3cc58170ab3550e9e271dba7b4c4764 tree 13dbdf12a6c567c3292daad4604eb55f7abd167e parent a0aed49bdb2bbb4234789f241cffb607fd2e213d author Patrick McHardy Thu, 06 Apr 2006 14:18:09 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:40 -0700 [NETFILTER]: Introduce infrastructure for address family specific operations Change the queue rerouter intrastructure to a generic usable infrastructure for address family specific operations as a base for some cleanups. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit a0aed49bdb2bbb4234789f241cffb607fd2e213d tree c1ce0b29ecb38427da529a8a5099be853200db46 parent a0b7db5e86d30f470dc1849f4fa44ff77a813091 author Patrick McHardy Thu, 06 Apr 2006 14:17:27 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:39 -0700 [NETFILTER]: Fix IP_NF_CONNTRACK_NETLINK dependency When NAT is built as a module, ip_conntrack_netlink can not be linked statically. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit a0b7db5e86d30f470dc1849f4fa44ff77a813091 tree 4b8bc7793dd25b2950b02b7f1576ffde4aa20d17 parent 51d42f5e4ee43fc98aa0c7a2a104808bb602276f author Jing Min Zhao Thu, 06 Apr 2006 14:15:33 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:38 -0700 [NETFILTER]: H.323 helper: add parameter 'default_rrq_ttl' default_rrq_ttl is used when no TTL is included in the RRQ. Signed-off-by: Jing Min Zhao Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 51d42f5e4ee43fc98aa0c7a2a104808bb602276f tree 75918387ba3d171765a4a33bb00bd70eaf12f41d parent 0f249685fde399c01e51a63f2bdfe4a667db083c author Jing Min Zhao Thu, 06 Apr 2006 14:14:59 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:37 -0700 [NETFILTER]: H.323 helper: make get_h245_addr() static Signed-off-by: Jing Min Zhao Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 0f249685fde399c01e51a63f2bdfe4a667db083c tree 87ae04aa3bca0a93506dc1d0f3667abc51f3a4dc parent 48bfee5fad0e46f4f18d46285efceba39e897482 author Jing Min Zhao Thu, 06 Apr 2006 14:14:11 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:36 -0700 [NETFILTER]: H.323 helper: change EXPORT_SYMBOL to EXPORT_SYMBOL_GPL Signed-off-by: Jing Min Zhao Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 48bfee5fad0e46f4f18d46285efceba39e897482 tree f527020c7163d519fdc6fd6d38f9473b6ce739bf parent 32292a7ff1d9306841a8da6ea286847b1070cc6a author Jing Min Zhao Thu, 06 Apr 2006 14:13:42 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:35 -0700 [NETFILTER]: H.323 helper: move some function prototypes to ip_conntrack_h323.h Move prototypes of NAT callbacks to ip_conntrack_h323.h. Because the use of typedefs as arguments, some header files need to be moved as well. Signed-off-by: Jing Min Zhao Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 32292a7ff1d9306841a8da6ea286847b1070cc6a tree e2149c5b4c7bc50a937f95657a2cb1814dea8ddb parent 964ddaa10de8f3aeed12bc2a30726514ff309e64 author Patrick McHardy Thu, 06 Apr 2006 14:11:30 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:34 -0700 [NETFILTER]: Fix section mismatch warnings Fix section mismatch warnings caused by netfilter's init_or_cleanup functions used in many places by splitting the init from the cleanup parts. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 964ddaa10de8f3aeed12bc2a30726514ff309e64 tree 4cda0dcd4d5ec2bf8f06cd4375be4251e96c6a16 parent 972d1cb1427946f4980240363aac4e73fb375290 author Patrick McHardy Thu, 06 Apr 2006 14:09:49 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:33 -0700 [NETFILTER]: Clean up hook registration Clean up hook registration by makeing use of the new mass registration and unregistration helpers. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 972d1cb1427946f4980240363aac4e73fb375290 tree 6b4af7fa66b358ab2d167093cd4bd43baa75f0a3 parent 137dc0233fba0bfa19679bdd96eb104f0e659c5a author Patrick McHardy Thu, 06 Apr 2006 14:09:12 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:32 -0700 [NETFILTER]: Add helper functions for mass hook registration/unregistration Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 137dc0233fba0bfa19679bdd96eb104f0e659c5a tree b1a087b443e6865478b6f99b54cbd562d3837886 parent c1e14a6ea2ae34993f431d2eb9a0f228ac3574eb author Samuel Ortiz Wed, 05 Apr 2006 22:39:14 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:31 -0700 [IRDA]: Support for Sigmatel STIR421x chip This patch enables support for the Sigmatel's STIR421x IrDA chip. Once patched with Sigmatel's firmware, this chip "almost" follows the USB-IrDA spec. Thus this patch is against irda-usb.[ch]. The code has been tested by Nick Fedchik on an STIR4210 chipset based dongle. Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit c1e14a6ea2ae34993f431d2eb9a0f228ac3574eb tree a49cbfdc16836115112e64d69780da7a7c2f2091 parent 45af08be6d120690d379cb8421ebaf9d9f86ba52 author Linus Walleij Wed, 05 Apr 2006 22:33:59 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:30 -0700 [IRDA]: smcinit merged into smsc-ircc driver This patch integrates the smcinit code into the smsc-ircc driver. Some laptops have their smsc-ircc chip not properly configured by the BIOS and needs some preconfiguration. Currently, this can be done from userspace with smcinit, a utility that comes with the irda-utils package. It messes with ioports and PCI settings, from userspace. Now with this patch, if we happen to be on one of the known to be faulty laptops, we preconfigure the chip from the driver. Patch from Linus Walleij Signed-off-by: Samuel Ortiz Signed-off-by: David S. Miller commit 45af08be6d120690d379cb8421ebaf9d9f86ba52 tree 5d0105eab9b524e0fa35b3caf9e6c1444e640010 parent cdee5751bf91d02616aaf30a5affef56105e3b79 author Herbert Xu Wed, 05 Apr 2006 22:31:19 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:29 -0700 [INET]: Use port unreachable instead of proto for tunnels This patch changes GRE and SIT to generate port unreachable instead of protocol unreachable errors when we can't find a matching tunnel for a packet. This removes the ambiguity as to whether the error is caused by no tunnel being found or by the lack of support for the given tunnel type. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit cdee5751bf91d02616aaf30a5affef56105e3b79 tree 8a7d6f231dc9de03c7d9bb5b6623bd539900abce parent ad96b485b4224785bcca478cfba02d06c46ee575 author Eric Sesterhenn Wed, 05 Apr 2006 22:28:14 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:29 -0700 [BLUETOOTH] sco: Possible double free. this fixes coverity bug id #1068. hci_send_sco() frees skb if (skb->len > hdev->sco_mtu). Since it returns a negative error value only in this case, we can directly return here. Signed-off-by: Eric Sesterhenn Signed-off-by: David S. Miller commit ad96b485b4224785bcca478cfba02d06c46ee575 tree 9f5ef069ffef7e02e37d771c23444b6b73d1a6f1 parent e3a5cd9edff9a7a20de3c88c9d479704da98fb85 author Adrian Bunk Wed, 05 Apr 2006 22:21:04 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:27 -0700 [TG3]: Fix a memory leak. This patch fixes a memory leak (buf wasn't freed) spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit e3a5cd9edff9a7a20de3c88c9d479704da98fb85 tree 2667fc69e67a58a49515e56d480ae61b984ab301 parent d938ab44c0c5418bb74a97b422a070e2cdccce22 author Adrian Bunk Wed, 05 Apr 2006 22:19:47 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:26 -0700 [NET]: Fix an off-by-21-or-49 error. This patch fixes an off-by-21-or-49 error ;-) spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit d938ab44c0c5418bb74a97b422a070e2cdccce22 tree 4404cad3bc941be9f25e51a478ba61a94c2c5ed4 parent 50fba2aa7cefa6b0e1768cb350c9e69042320c03 author Randy Dunlap Tue, 04 Apr 2006 20:11:56 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:25 -0700 [NET] netconsole: set .name in struct console Set .name in netconsole's struct console to identify the struct's owner. Signed-off-by: Randy Dunlap Acked-by: Matt Mackall Signed-off-by: David S. Miller commit 50fba2aa7cefa6b0e1768cb350c9e69042320c03 tree d9d229be1cc489759994e3860e3d2c60e6e6239f parent 2e2f7aefa8a8ba4adb6ecee8cbb43fbe9ca4cc89 author Herbert Xu Tue, 04 Apr 2006 13:50:45 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:25 -0700 [INET]: Move no-tunnel ICMP error to tunnel4/tunnel6 This patch moves the sending of ICMP messages when there are no IPv4/IPv6 tunnels present to tunnel4/tunnel6 respectively. Please note that for now if xfrm4_tunnel/xfrm6_tunnel is loaded then no ICMP messages will ever be sent. This is similar to how we handle AH/ESP/IPCOMP. This move fixes the bug where we always send an ICMP message when there is no ip6_tunnel device present for a given packet even if it is later handled by IPsec. It also causes ICMP messages to be sent when no IPIP tunnel is present. I've decided to use the "port unreachable" ICMP message over the current value of "address unreachable" (and "protocol unreachable" by GRE) because it is not ambiguous unlike the other ones which can be triggered by other conditions. There seems to be no standard specifying what value must be used so this change should be OK. In fact we should change GRE to use this value as well. Incidentally, this patch also fixes a fairly serious bug in xfrm6_tunnel where we don't check whether the embedded IPv6 header is present before dereferencing it for the inside source address. This patch is inspired by a previous patch by Hugo Santos . Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 2e2f7aefa8a8ba4adb6ecee8cbb43fbe9ca4cc89 tree 891921c05dbf5ac2436473d77b8dbfda91a1b9bc parent 550e29bc96e6f1ced2bca82dace197b009434367 author Patrick McHardy Tue, 04 Apr 2006 13:42:35 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:23 -0700 [NETFILTER]: Fix fragmentation issues with bridge netfilter The conntrack code doesn't do re-fragmentation of defragmented packets anymore but relies on fragmentation in the IP layer. Purely bridged packets don't pass through the IP layer, so the bridge netfilter code needs to take care of fragmentation itself. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 550e29bc96e6f1ced2bca82dace197b009434367 tree 423cb5460e1a25eff3d578003252b2de1b8ccaf5 parent 8bf4b8a1083694d5aac292f92705ddd3aec29be6 author Robert Olsson Tue, 04 Apr 2006 12:53:35 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:23 -0700 [FIB_TRIE]: Fix leaf freeing. Seems like leaf (end-nodes) has been freed by __tnode_free_rcu and not by __leaf_free_rcu. This fixes the problem. Only tnode_free is now used which checks for appropriate node type. free_leaf can be removed. Signed-off-by: Robert Olsson Signed-off-by: David S. Miller commit 8bf4b8a1083694d5aac292f92705ddd3aec29be6 tree a8bbf0bb32b7e286659eae12326c54671430560f parent 67644726317a8274be4a3d0ef85b9ccebaa90304 author Herbert Xu Tue, 04 Apr 2006 12:51:05 -0700 committer David S. Miller Sun, 09 Apr 2006 22:25:22 -0700 [IPSEC]: Check x->encap before dereferencing it We need to dereference x->encap before dereferencing it for encap_type. If it's absent then the encap_type is zero. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 7359036d5cdb86d14cfeb06d0e5a1d68f85cf8b7 tree 0aa7b2592a39865656b1157af170d28dda98af1d parent 13011d08346d9d649119cc6ef519209c6f33f1e8 author Ben Dooks Sun, 09 Apr 2006 22:21:10 +0100 committer Russell King Sun, 09 Apr 2006 22:21:10 +0100 [ARM] 3469/1: S3C24XX: clkout missing hclk selector Patch from Ben Dooks The clkout0/1 output parent code is missing the HCLK option, and does not set clk->parent field after updating the clock field Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 13011d08346d9d649119cc6ef519209c6f33f1e8 tree d27084187252caf496a24b7e5adc6e6cf6384211 parent 67d4d8352b5a78df422a956657d9be4b860680ab author Ben Dooks Sun, 09 Apr 2006 22:21:09 +0100 committer Russell King Sun, 09 Apr 2006 22:21:09 +0100 [ARM] 3468/1: S3C2410: SMDK common include fix Patch from Ben Dooks common-smdk.c does not include its own header file defining the exported prototypes. Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 67d4d8352b5a78df422a956657d9be4b860680ab tree 0c94bd81ccb9a1e0313382efc81ffe159d192484 parent 50e5629aa956c8c82015c90554a9a3fbf54cb404 author Tony Lindgren Sun, 09 Apr 2006 22:21:05 +0100 committer Russell King Sun, 09 Apr 2006 22:21:05 +0100 [ARM] 3461/1: ARM: OMAP: Fix clk_get() when using id and name Patch from Tony Lindgren Recent change to use both id and name when available was not necessarily returning the right clock as it also searched for clock name afterwards. This caused MMC to break on H2 and H3 boards. Signed-off-by: Tony Lindgren Signed-off-by: Russell King commit 50e5629aa956c8c82015c90554a9a3fbf54cb404 tree 30e5c819a15bab4f1c9d3124a8f4390155b0e1ba parent 932355797530f5bd4e1355a2c384e9f3ccc3dcbc author Tony Lindgren Sun, 09 Apr 2006 22:21:02 +0100 committer Russell King Sun, 09 Apr 2006 22:21:02 +0100 [ARM] 3460/1: ARM: OMAP: Remove unnecessary nop_release() Patch from Tony Lindgren Remove unnecessary omap_nop_release() as noted by RMK. Signed-off-by: Tony Lindgren Signed-off-by: Russell King commit 932355797530f5bd4e1355a2c384e9f3ccc3dcbc tree 97ef892c3b02b3275731e898a46c6c2a6b9f1f98 parent c5b8ef62b5df9530c573f00f4106742661425392 author Lennert Buytenhek Sun, 09 Apr 2006 22:20:57 +0100 committer Russell King Sun, 09 Apr 2006 22:20:57 +0100 [ARM] 3459/1: ixp23xx: fix debug serial macros for big-endian operation Patch from Lennert Buytenhek The debug-8250 macros do byte accesses, which means that if we're in big-endian mode, we need to logically OR the UART address with 3, as the LSB byte lane (where UART data and status is transferred) has the highest byte address in the word when we are in big-endian mode. It's unclear why this problem didn't surface earlier. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King commit 67644726317a8274be4a3d0ef85b9ccebaa90304 tree c2bcf873d19d1b18d65e4f5d6d5c3cd613e9cb13 parent 66004a6ca23f2a2408b32cbe27fda0389fb8f9dc author Dave Jones Sun, 02 Apr 2006 23:34:19 -0700 committer Linus Torvalds Sun, 09 Apr 2006 12:35:53 -0700 [SELINUX] Fix build after ipsec decap state changes. security/selinux/xfrm.c: In function 'selinux_socket_getpeer_dgram': security/selinux/xfrm.c:284: error: 'struct sec_path' has no member named 'x' security/selinux/xfrm.c: In function 'selinux_xfrm_sock_rcv_skb': security/selinux/xfrm.c:317: error: 'struct sec_path' has no member named 'x' Signed-off-by: Dave Jones Signed-off-by: David S. Miller Signed-off-by: Linus Torvalds commit 66004a6ca23f2a2408b32cbe27fda0389fb8f9dc tree 7f11359eec8c511e5fcf7340c93f9a84a2bad0e2 parent b8feb47f992d314c956add15c1118430120635bb author Linus Torvalds Sun, 09 Apr 2006 12:14:02 -0700 committer Linus Torvalds Sun, 09 Apr 2006 12:14:02 -0700 Move request_standard_resources() back to before PCI probing This effectively undoes the PCI resource allocation changes done in commit b408cbc704352eccee301e1103b23203ba1c3a0e, but leaves the cleanups of that commit in place. We're going back to marking the resources reported by e820 busy _before_ doing PCI probing, so that any PCI resource that clashes with the BIOS- reported memory map will be reloacted to a non-clashing area. The reason? Larry Finger reports that his laptop has the cardbus controller set up by the BIOS so that it conflicts with the e820 memory map, and needs to be relocated. See http://bugzilla.kernel.org/show_bug.cgi?id=6337 for more details. We'll have to work out how to handle the fbcon problem that caused that commit in the first place in some other way. Cc: Ivan Kokshaysky Cc: Greg Kroah-Hartman Cc: Antonino A. Daplas Cc: Tested-by: Larry Finger Signed-off-by: Linus Torvalds commit b8feb47f992d314c956add15c1118430120635bb tree fa134a28d0696edbe76bb3191ac00969440c7398 parent 67d53ea5a3d42aadeb1584e757ca4660c0e8a810 author Andi Kleen Fri, 07 Apr 2006 19:50:34 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:53 -0700 [PATCH] x86_64: Update 32-bit system call table Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 67d53ea5a3d42aadeb1584e757ca4660c0e8a810 tree 054906bb672c6faad287ede5b34c53d56afdc629 parent bbd3aff89d4b34ef17a748e4c001ecc5b43e3e55 author Andi Kleen Fri, 07 Apr 2006 19:50:31 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:53 -0700 [PATCH] x86_64: Eliminate IA32_NR_syscalls define Or rather compute it based on the table length automatically. This also has the intended side effect of not warning for new system calls anymore. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit bbd3aff89d4b34ef17a748e4c001ecc5b43e3e55 tree 26e9521b03e9cff515a96774cf3ac67c9b612bce parent 97c2803c9c694cafbd9f5e43a25903e0abf25188 author Sam Ravnborg Fri, 07 Apr 2006 19:50:28 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:53 -0700 [PATCH] x86_64: fix CONFIG_REORDER Fix CONFIG_REORDER. The value of cflags-y was assined to CFLAGS before cflags-y was assigned the value used for CONFIG_REORDER. Use cflags-y for all CFLAGS options in the Makefile to avoid this happening again. Signed-off-by: Sam Ravnborg Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 97c2803c9c694cafbd9f5e43a25903e0abf25188 tree e70f35adaae6c95cf5e4557a92ccaa3f827ae2d3 parent e48c4729d23a026f3711d5e36add5cce894b4913 author John Blackwood Fri, 07 Apr 2006 19:50:25 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:53 -0700 [PATCH] x86_64: Plug GS leak in arch_prctl() In linux-2.6.16, we have noticed a problem where the gs base value returned from an arch_prtcl(ARCH_GET_GS, ...) call will be incorrect if: - the current/calling task has NOT set its own gs base yet to a non-zero value, - some other task that ran on the same processor previously set their own gs base to a non-zero value. In this situation, the ARCH_GET_GS code will read and return the MSR_KERNEL_GS_BASE msr register. However, since the __switch_to() code does NOT load/zero the MSR_KERNEL_GS_BASE register when the task that is switched IN has a zero next->gs value, the caller of arch_prctl(ARCH_GET_GS, ...) will get back the value of some previous tasks's gs base value instead of 0. Change the arch_prctl() ARCH_GET_GS code to only read and return the MSR_KERNEL_GS_BASE msr register if the 'gs' register of the calling task is non-zero. Side note: Since in addition to using arch_prctl(ARCH_SET_GS, ...), a task can also setup a gs base value by using modify_ldt() and write an index value into 'gs' from user space, the patch below reads 'gs' instead of using thread.gs, since in the modify_ldt() case, the thread.gs value will be 0, and incorrect value would be returned (the task->thread.gs value). When the user has not set its own gs base value and the 'gs' register is zero, then the MSR_KERNEL_GS_BASE register will not be read and a value of zero will be returned by reading and returning 'task->thread.gs'. The first patch shown below is an attempt at implementing this approach. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit e48c4729d23a026f3711d5e36add5cce894b4913 tree 9f5556934bcba4d5ced8f06d0215a7534b3a8bbc parent b20367a6c2a0cd937cb1f0a8cf848f1402fef99c author Andi Kleen Fri, 07 Apr 2006 19:50:21 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:53 -0700 [PATCH] i386: Remove printk about reboot fixups at reboot Printk doesn't have any value Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit b20367a6c2a0cd937cb1f0a8cf848f1402fef99c tree 8624096baed40f8f89e757b2d170a7b4d1844575 parent 49c93e84d8b2d602a07c302c7e3cd4fa09095fbb author Jordan Hargrave Fri, 07 Apr 2006 19:50:18 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:53 -0700 [PATCH] x86_64: Fix drift with HPET timer enabled If the HPET timer is enabled, the clock can drift by ~3 seconds a day. This is due to the HPET timer not being initialized with the correct setting (still using PIT count). If HZ changes, this drift can become even more pronounced. HPET patch initializes tick_nsec with correct tick_nsec settings for HPET timer. Vojtech comments: "It's not entirely correct (it assumes the HPET ticks totally exactly), but it's significantly better than assuming the PIT error there." Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 49c93e84d8b2d602a07c302c7e3cd4fa09095fbb tree a59d0bb7a9f1df9f3187e466e3937ea9ffd83343 parent 8c30b1a74aed4041f183e183a149b7dfbdc6c20e author Andi Kleen Fri, 07 Apr 2006 19:50:15 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] i386/x86-64: Return defined error value for bad PCI config space accesses Mostly to get better handling when a extended config space access has to fallback to Type1. Cc: gregkh@suse.de Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 8c30b1a74aed4041f183e183a149b7dfbdc6c20e tree 1476500ffdefa842c632e960196fefdadb04ca04 parent e405d067298b2b960bf20318e91ed842157c65bc author Andi Kleen Fri, 07 Apr 2006 19:50:12 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] i386/x86_64: Check if MCFG works for the first 16 busses Previously only the first bus would be checked against Type 1. Why 16? Checking all would need too much memory and we can assume that systems with more than 16 busses have better than average quality BIOS. This is an additional defense against bad MCFG tables. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit e405d067298b2b960bf20318e91ed842157c65bc tree edb9bf3a90c70e7b7d490504f7ea695b39aa6a08 parent 3d34ee6891e274dfb6a22930546d37738cdbe9c4 author Ravikiran G Thirumalai Fri, 07 Apr 2006 19:50:09 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] x86_64: Fixup read_mostly section on internode cache line size for vSMP Fixup the read mostly section to start at internode cacheline boundary. Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 3d34ee6891e274dfb6a22930546d37738cdbe9c4 tree 46b5ea716446d598bfb5680af05aac4aed5c6284 parent ac04dcaf6f567307fbeef9c3c1fff35280e53f02 author Andi Kleen Fri, 07 Apr 2006 19:50:06 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] x86_64: Don't return error for HPET initialization in initcall Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit ac04dcaf6f567307fbeef9c3c1fff35280e53f02 tree 0af1ec91c2cfda958e2320aa4030df5c312c91e4 parent 7bf36bbc5e0c09271f9efe22162f8cc3f8ebd3d2 author Andi Kleen Fri, 07 Apr 2006 19:50:03 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] x86_64: Don't export strlen twice Fix WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux Reported by Mats Johannesson Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 7bf36bbc5e0c09271f9efe22162f8cc3f8ebd3d2 tree 9e97e2f5774824f0e2fbff1d4e7c49e9938285f5 parent 553f265fe883a23502ee351845f09334790f18b8 author Andi Kleen Fri, 07 Apr 2006 19:50:00 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] x86_64: When user could have changed RIP always force IRET Intel EM64T CPUs handle uncanonical return addresses differently from AMD CPUs. The exception is reported in the SYSRET, not the next instruction. This leads to the kernel exception handler running on the user stack with the wrong GS because the kernel didn't expect exceptions on this instruction. This version of the patch has the teething problems that plagued an earlier version fixed. This is CVE-2006-0744 Thanks to Ernie Petrides and Asit B. Mallick for analysis and initial patches. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 553f265fe883a23502ee351845f09334790f18b8 tree 1fd60e72d7d5cbed34812eb6763899d2bd37c152 parent be56db6186999a8571ae480cf2b929578f6dfd68 author Andi Kleen Fri, 07 Apr 2006 19:49:57 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:52 -0700 [PATCH] x86_64: Don't run NMI watchdog during machine checks Machine checks can stall the machine for a long time and it's not good to trigger the nmi watchdog during that. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit be56db6186999a8571ae480cf2b929578f6dfd68 tree df0760d15a76b9615c02f37ad5941fd5b52c5658 parent 4211a30349e8d2b724cfb4ce2584604f5e59c299 author Dave Hansen Fri, 07 Apr 2006 19:49:54 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86_64: extra NODES_SHIFT definition The generic linux/numa.h file defines NODES_SHIFT to 0 in case the architecture did not. Every architecture which has a NUMA config option defines NODES_SHIFT in its asm-$ARCH headers, but only if NUMA is enabled, except for x86_64. This should make it like all the rest. Signed-off-by: Dave Hansen Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 4211a30349e8d2b724cfb4ce2584604f5e59c299 tree 59fdb0b812156bbff2266cc51b22d9d608898ecf parent d7fa706ce2c29cb751c15ca00f3aa7b223e3c9f0 author Jacob Shin Fri, 07 Apr 2006 19:49:51 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86_64: Proper null pointer check in powernow_k8_get This prevents crashes on dual core system when enough ticks are lost. Replaces earlier patch by me. Cc: Dave Jones Signed-off-by: Thomas Renninger Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit d7fa706ce2c29cb751c15ca00f3aa7b223e3c9f0 tree 0e19431741ca192c8c98d6f06edc56e0d4be08db parent 95d769aaf47abfc77b600631403ff5af6c990cff author Andi Kleen Fri, 07 Apr 2006 19:49:48 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86_64: Revert earlier powernow-k8 change Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 95d769aaf47abfc77b600631403ff5af6c990cff tree 738fff854613a086e7c1ad04074fa596b8554760 parent d1530d82e02fd96d4634a6d6f6538c8b778c43af author Andi Kleen Fri, 07 Apr 2006 19:49:45 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] i386: Consolidate modern APIC handling AMD systems have a modern APIC that supports 8 bit IDs, but don't have a XAPIC version number. Add a new "modern_apic" subfunction that handles this correctly and use it (nearly) everywhere where XAPIC is tested for. I removed one wart: the code specified that external APICs would use an 8bit APIC ID. But I checked a real 82093 data sheet and it says clearly that they only use 4bit. So I removed this special case since it would a bit awkward to implement now. I removed the valid APIC tests in mptable parsing completely. On any modern system they only check against the full field width (8bit) anyways and are no-ops. This also fixes them doing the wrong thing on >8 core Opterons. This makes i386 boot again on 16 core Opterons. Cc: Ingo Molnar Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit d1530d82e02fd96d4634a6d6f6538c8b778c43af tree f825ae536b1ee15208b0917de54e42e528b59be6 parent d3b6a349d233aecf2c52f7f4c150ca09f684f2d8 author Andi Kleen Fri, 07 Apr 2006 19:49:42 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86_64: Clear APIC feature bit when local APIC is disabled Needed for other checks later in ACPI. Pointed out by Len Brown Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit d3b6a349d233aecf2c52f7f4c150ca09f684f2d8 tree 3ab86b3ffc1dbe2eaa69c5bb041644975df60da7 parent ec0f08eeea6ac1d8c925f47e3677e4c985fd8f63 author Andi Kleen Fri, 07 Apr 2006 19:49:39 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86-64/i386: Don't process APICs/IO-APICs in ACPI when APIC is disabled. When nolapic was passed or the local APIC was disabled for another reason ACPI would still parse the IO-APICs until these were explicitely disabled with noapic. Usually this resulted in a non booting configuration unless "nolapic noapic" was used. I also disabled the local APIC parsing in this case, although that's only cosmetic (suppresses a few printks) This hopefully makes nolapic work in all cases. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit ec0f08eeea6ac1d8c925f47e3677e4c985fd8f63 tree 053ede4e6c6648dc8d927a2ad17ef5e03069b3a2 parent fa47dd0ba303599f8adf8d8336ed2fb74efc47c5 author Andi Kleen Fri, 07 Apr 2006 19:49:36 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86_64: Don't sanity check Type 1 PCI bus access on newer systems Horus systems don't have anything on bus 0 which makes the Type 1 sanity checks fail. Use the DMI BIOS year to check for newer systems and always assume Type 1 works on them. I used 2001 as an pretty arbitary cutoff year. Cc: gregkh@suse.de Cc: Navin Boppuri Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit fa47dd0ba303599f8adf8d8336ed2fb74efc47c5 tree 5aad31f503964dafb047f15bf327e99e5ddbd5c7 parent 946f2ee5c7312e8acac4f3ab6629e7e2d36a3646 author Andi Kleen Fri, 07 Apr 2006 19:49:33 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] x86_64: Fix compilation with CONFIG_PCI=n / allnoconfig Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 946f2ee5c7312e8acac4f3ab6629e7e2d36a3646 tree 0821a2f3f59a089b73d33f64f59331460e20355a parent 952223683ec989e86328c24808fdb962c4dbeb0a author Arjan van de Ven Fri, 07 Apr 2006 19:49:30 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:51 -0700 [PATCH] i386/x86-64: Check that MCFG points to an e820 reserved area This patch introduces a user for the e820_all_mapped function: There have been several machines that don't have a working MMCONFIG, often because of a buggy MCFG table in the ACPI bios. This patch adds a simple sanity check that detects a whole bunch of these cases, and when it detects it, linux now boots rather than crash-and-burns. The accuracy of this detection can in principle be improved if there was a "is this entire range in e820 with THIS attribute", but no such function exist and the complexity needed for this is not really worth it; this simple check already catches most cases anyway. Signed-off-by: Arjan van de Ven Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 952223683ec989e86328c24808fdb962c4dbeb0a tree 0c7473d4469cba883bf880bbaa04900960806742 parent eee5a9fa63c97366cdea6ab3aa2ed9e3601812d0 author Arjan van de Ven Fri, 07 Apr 2006 19:49:27 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:50 -0700 [PATCH] x86_64: Introduce e820_all_mapped Introduce a e820_all_mapped() function which checks if the entire range is mapped with type. This is done by moving the local start variable to the end of each known-good region; if at the end of the function the start address is still before end, there must be a part that's not of the correct type; otherwise it's a good region. Signed-off-by: Arjan van de Ven Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit eee5a9fa63c97366cdea6ab3aa2ed9e3601812d0 tree b01876c5417f52173e9ab3d76c124df2042c9f62 parent a8062231d80239cf3405982858c02aea21a6066a author Arjan van de Ven Fri, 07 Apr 2006 19:49:24 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:17 -0700 [PATCH] x86_64: Rename e820_mapped to e820_any_mapped Rename e820_mapped to e820_any_mapped since it tests if any part of the range is mapped according to the type. Later steps will introduce e820_all_mapped which will check if the entire range is mapped with the type. Both have their merit. Signed-off-by: Arjan van de Ven Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit a8062231d80239cf3405982858c02aea21a6066a tree 0576493fa99cda91069fe3b67c19bd024858e69e parent 68a3a7feb08f960095072f28ec20f7900793c506 author Andi Kleen Fri, 07 Apr 2006 19:49:21 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:16 -0700 [PATCH] x86_64: Handle empty PXMs that only contain hotplug memory The node setup code would try to allocate the node metadata in the node itself, but that fails if there is no memory in there. This can happen with memory hotplug when the hotplug area defines an so far empty node. Now use bootmem to try to allocate the mem_map in other nodes. And if it fails don't panic, but just ignore the node. To make this work I added a new __alloc_bootmem_nopanic function that does what its name implies. TBD should try to use nearby nodes here. Currently we just use any. It's hard to do it better because bootmem doesn't have proper fallback lists yet. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 68a3a7feb08f960095072f28ec20f7900793c506 tree 1d458822fd4414997b6f12ad8a915f785d7e730f parent 9d99aaa31f5994d1923c3713ce9144c4c42332e1 author Andi Kleen Fri, 07 Apr 2006 19:49:18 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:16 -0700 [PATCH] x86_64: Reserve SRAT hotadd memory on x86-64 From: Keith Mannthey, Andi Kleen Implement memory hotadd without sparsemem. The memory in the SRAT hotadd area is just preserved instead and can be activated later. There are a few restrictions: - Only one continuous hotadd area allowed per node The main problem is dealing with the many buggy SRAT tables that are out there. The strategy here is to reject anything suspicious. Originally from Keith Mannthey, with several hacks and changes by AK and also contributions from Andrew Morton [ TBD: Problems pointed out by KAMEZAWA Hiroyuki : 1) Goto's rebuild_zonelist patch will not work if CONFIG_MEMORY_HOTPLUG=n. Rebuilding zonelist is necessary when the system has just memory < 4G at boot, and hot add memory > 4G. because x86_64 has DMA32, ZONE_NORAML is not included into zonelist at boot time if system doesn't have memory >4G at boot. [AK: should just force the higher zones at boot time when SRAT tells us] 2) zone and node's spanned_pages and present_pages are not incremented. They should be. For example, our server (ia64/Fujitsu PrimeQuest) can equip memory from 4G to 1T(maybe 2T in future), and SRAT will *always* say we have possible 1T +memory. (Microsoft requires "write all possible memory in SRAT") When we reserve memmap for possible 1T memory, Linux will not work well in +minimum 4G configuraion ;) [AK: needs limiting to 5-10% of max memory] ] Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 9d99aaa31f5994d1923c3713ce9144c4c42332e1 tree ae608593ca196dd6493cccbdfc1b8dd098e91ee8 parent 805e8c03c9ea9bdb402a36341e02ec24825d5417 author Andi Kleen Fri, 07 Apr 2006 19:49:15 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:16 -0700 [PATCH] x86_64: Support memory hotadd without sparsemem Memory hotadd doesn't need SPARSEMEM, but can be handled by just preallocating mem_maps. This only needs some untangling of ifdefs to enable the necessary code even without SPARSEMEM. Originally from Keith Mannthey, hacked by AK. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 805e8c03c9ea9bdb402a36341e02ec24825d5417 tree c7047d0e3b2e72a7885bfce80369c25c89936821 parent 903fcc608e9f531749024172277dc2fd15d5a587 author Andi Kleen Fri, 07 Apr 2006 19:49:12 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:16 -0700 [PATCH] x86_64: Clean up execve path Just call IRET always, no need for any special cases. Needed for the next bug fix. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit 903fcc608e9f531749024172277dc2fd15d5a587 tree 6844416b377a7f4f7aaf29eb53ed140afa47699e parent 6246b6128bbe34d0752f119cf7c5111c85fe481d author Andi Kleen Fri, 07 Apr 2006 19:49:09 +0200 committer Linus Torvalds Sun, 09 Apr 2006 11:53:16 -0700 [PATCH] x86_64: Update defconfig Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds commit c5b8ef62b5df9530c573f00f4106742661425392 tree f111f10bc13348d288e5f13f660759b5f43a92ff parent 95f3df6bcb89d370c57b7165f55c5a409d011c8e author Russell King Sun, 09 Apr 2006 19:08:42 +0100 committer Russell King Sun, 09 Apr 2006 19:08:42 +0100 [ARM] Allow decompressor to be built with -ffunction-sections Arrange for all the text ends up in the right place when -ffunction-sections is used. Signed-off-by: Russell King commit 0ffe984917b9cd6ecc19ffbc06f35869d8c18df8 tree 49b54ea585dcd657083c8b755726820b002ae75a parent 8cab7ccccbdd9fe3cf6b3400d5a88ecb683a5b1b author Christoph Lameter Tue, 28 Mar 2006 22:54:38 -0800 committer Tony Luck Fri, 07 Apr 2006 23:08:16 -0700 [IA64] Prefetch mmap_sem in ia64_do_page_fault() Take a hint from an x86_64 optimization by Arjan van de Ven and use it for ia64. See a9ba9a3b3897561d01e04cd21433746df46548c0 Prefetch the mmap_sem, which is critical for the performance of the page fault handler. Note: mm may be NULL but I guess that is safe. See 458f935527372499b714bf4f8e646a68bb0f52e3 Signed-off-by: Christoph Lameter Signed-off-by: Tony Luck commit 8cab7ccccbdd9fe3cf6b3400d5a88ecb683a5b1b tree 7d847ecf60940f7dae3e12240fc48184e68b87b8 parent 958b166c00b39ff0b28ad2bbb32624b9f305a4e1 author Keith Owens Fri, 07 Apr 2006 16:34:34 +1000 committer Tony Luck Fri, 07 Apr 2006 23:01:32 -0700 [IA64] Failure to resume after INIT in user space The OS INIT handler is loading incorrect values into cr.ifa on exit. This shows up as a hang when resuming after an INIT that is delivered while a cpu is in user space. Correct the value loaded into cr.ifa. Signed-off-by: Keith Owens Signed-off-by: Tony Luck commit 958b166c00b39ff0b28ad2bbb32624b9f305a4e1 tree 9a7d086f44e4fc034f1f91eed945ef4eabc5fa0c parent 2db8d99ffdbed7d2beb1bbdefdcd086dda9dee98 author Keith Owens Mon, 03 Apr 2006 15:26:12 +1000 committer Tony Luck Fri, 07 Apr 2006 22:51:51 -0700 [IA64] Pass more data to the MCA/INIT notify_die hooks The MCA/INIT handlers maintain important state in the SAL to OS (sos) area and in the monarch_cpu flag. Kernel debuggers (such as KDB) need this data, and may need to adjust the monarch_cpu field so make the data available to the notify_die hooks. Define two more events for calling the functions on the notify_die chain. Signed-off-by: Keith Owens Signed-off-by: Tony Luck commit 2db8d99ffdbed7d2beb1bbdefdcd086dda9dee98 tree d1d6b013f5e43c8210871cfb2c7b66bf1adbb93c parent cfab9d0e1da8e08a39759d0fc3bf5e40f0ac2d55 author Bjorn Helgaas Fri, 07 Apr 2006 22:47:12 -0700 committer Tony Luck Fri, 07 Apr 2006 22:47:12 -0700 [IA64] always map VGA framebuffer UC, even if it supports WB EFI on some machines, e.g., Intel Tiger, reports that the VGA framebuffer supports WB access. ioremap() prefers WB when possible, so it can work when mapping main memory. But it doesn't make sense to map a framebuffer WB, because the driver doesn't flush explicitly, so updates won't make it to the device immediately. This is due to Zou Nan hai . More extensive fix that adds a "size" argument coming soon. Signed-off-by: Bjorn Helgaas Cc: "Antonino A. Daplas" Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Tony Luck commit cfab9d0e1da8e08a39759d0fc3bf5e40f0ac2d55 tree e7dd4bbb97374b758bcb169b635b997c12893565 parent 0681226661754a99de711cda2c2bd12ff9cd2c3b author Chen, Kenneth W Fri, 07 Apr 2006 17:12:54 -0700 committer Tony Luck Fri, 07 Apr 2006 22:39:49 -0700 [IA64] fix bug in ia64 __mutex_fastpath_trylock The parenthesis around "likely" used in ia64 __mutex_fastpath_trylock is incorrect, and it leads to broken mutex_trylock. Here is the patch that fixed the bug. I removed the likely altogether because there is no branch and gcc does a reasonable job at predicating the return value. Signed-off-by: Ken Chen Signed-off-by: Tony Luck commit a9e2ae39170d01937725e1fff2e606baaa71346c tree 95fa7ddef8c4111a9d4871ed514582da0fdbcc7e parent 2cd9888590c52ac7592e3607d0a3174ccd57ef86 author Mark Fasheh Fri, 24 Mar 2006 14:20:17 -0800 committer Mark Fasheh Fri, 07 Apr 2006 18:03:09 -0700 ocfs2: Better I/O error handling in heartbeat Propagate errors received in o2hb_bio_end_io() back to the heartbeat thread so it can skip re-arming the timer. Signed-off-by: Mark Fasheh commit 2cd9888590c52ac7592e3607d0a3174ccd57ef86 tree 3f8ddf8bb0bb4cf1532707d613412cb98ffd9823 parent f43e6918c0e3906fd4483316f6a1a07bba615908 author Mark Fasheh Wed, 29 Mar 2006 16:49:13 -0800 committer Mark Fasheh Fri, 07 Apr 2006 17:39:43 -0700 ocfs2: test and set teardown flag early in user_dlm_destroy_lock() Signed-off-by: Mark Fasheh commit f43e6918c0e3906fd4483316f6a1a07bba615908 tree 5dd695890e40a7591fa2a769ee2871e4257a5170 parent cc6eb725955efb026007e1d7da8fe5383981afd2 author Mark Fasheh Wed, 29 Mar 2006 18:24:12 -0800 committer Mark Fasheh Fri, 07 Apr 2006 17:37:52 -0700 ocfs2: Handle the DLM_CANCELGRANT case in user_unlock_ast() Remove the code which attempted to catch it via dlmunlock() return status - this never happens there. Signed-off-by: Mark Fasheh commit cc6eb725955efb026007e1d7da8fe5383981afd2 tree e5ead5a192ac252f19010878778cbb71b2c55a28 parent 1f7bc828e30fe3e23ea0968b9595ad20e2785978 author Mark Fasheh Wed, 29 Mar 2006 10:34:21 -0800 committer Mark Fasheh Fri, 07 Apr 2006 17:36:16 -0700 ocfs2: catch an invalid ast case in dlmfs Signed-off-by: Mark Fasheh commit 1f7bc828e30fe3e23ea0968b9595ad20e2785978 tree e5ffadd27b8ae04741e05d2b05793f85e781506c parent ab0920ce7ebb6d60063c793f227ae198a492251b author Mark Fasheh Wed, 29 Mar 2006 10:33:35 -0800 committer Mark Fasheh Fri, 07 Apr 2006 17:27:43 -0700 ocfs2: remove an overly aggressive BUG() in dlmfs Don't BUG() user_dlm_unblock_lock() on the absence of the USER_LOCK_BLOCKED flag - this turns out to be a valid case. Make some of the related BUG() statements print more useful information. Signed-off-by: Mark Fasheh commit ab0920ce7ebb6d60063c793f227ae198a492251b tree 08519b232bbbda3dd69c74e9f9e49ac9db817c9d parent 6246b6128bbe34d0752f119cf7c5111c85fe481d author Mark Fasheh Thu, 16 Mar 2006 15:06:37 -0800 committer Mark Fasheh Fri, 07 Apr 2006 16:47:24 -0700 ocfs2: multi node truncate fix Fix ocfs2_truncate_file() so that it forces a truncate_inode_pages() on all interested nodes in all cases of a truncate(), not just allocation change. Signed-off-by: Mark Fasheh commit 95f3df6bcb89d370c57b7165f55c5a409d011c8e tree 9accc55603a6274a281fce6950fbef26f051a2c5 parent f1dc24d53e9e91cf795f05751eeb7e220c7c15e1 author Russell King Fri, 07 Apr 2006 13:17:15 +0100 committer Russell King Fri, 07 Apr 2006 13:23:57 +0100 [ARM] Fix SA110/SA1100 cache flushing We had two implementations for flushing the cache, which meant StrongARM caches weren't being correctly flushed. Fix this by always using the v4wb_flush_kern_cache_all method, rather than duplicating it. Signed-off-by: Russell King commit f1dc24d53e9e91cf795f05751eeb7e220c7c15e1 tree b002704bb3fa0fa8cf2056220060ef4062f23d05 parent 6e29ebad0f252b085a3bb0188637f315efda0a48 author Russell King Fri, 07 Apr 2006 11:04:54 +0100 committer Russell King Fri, 07 Apr 2006 13:23:48 +0100 [ARM] ebsa110: Fix incorrect serial port address Signed-off-by: Russell King commit 6e29ebad0f252b085a3bb0188637f315efda0a48 tree b56c220ae7911cd0b5c882ca5f3704ca871ac2d8 parent 74d02fb9543ec85b04319b5b50926c78e7f07f3e author Russell King Fri, 07 Apr 2006 10:16:55 +0100 committer Russell King Fri, 07 Apr 2006 13:23:37 +0100 [ARM] Fix ebsa110 debug macros Was including debug-8250.h rather than debug-8250.S Signed-off-by: Russell King commit 74d02fb9543ec85b04319b5b50926c78e7f07f3e tree ce98ba7ac0634f939e29ecf50d11382ff2ebec1a parent 7d12963757b9170f162f317b7461353c5fb574e8 author Russell King Tue, 04 Apr 2006 21:47:43 +0100 committer Russell King Fri, 07 Apr 2006 13:22:21 +0100 [ARM] Move FLUSH_BASE macros to asm/arch/memory.h FLUSH_BASE must be visible to arch/arm/mm/init.c in order for the memory region to be setup. Move these definitions from asm-arm/arch-*/hardware.h into asm-arm/arch-*/memory.h where mm stuff can see them. Signed-off-by: Russell King commit d9df92e22aca939857c5bc9ecb130ef22307ccc1 tree de428ec711fe241f3ad7ac1272ba8591d68d9fc2 parent 7d2d8fe0cb88914d26219db51341d780a032b198 author Sam Ravnborg Fri, 07 Apr 2006 08:36:49 +0200 committer Sam Ravnborg Fri, 07 Apr 2006 08:36:49 +0200 kbuild: properly pass options to hostcc when doing make O=.. This fix a longstanding bug where proper options was not passed to hostcc in case of a make O=.. build. This bug showed up in (not yet merged) klibc, and is not known to have any counterpart in-kernel. Fixed by moving the flags macro to Kbuild.include so it can be used by both Makefile.lib and Makefile.host. Signed-off-by: Sam Ravnborg commit 0681226661754a99de711cda2c2bd12ff9cd2c3b tree 60072ae9c9b792ff2abbb00313caa96bfef9aeab parent 03fbaca36a85a8c923e30abfb1a9a630bf1c5a1d author KAMEZAWA Hiroyuki Tue, 28 Mar 2006 14:50:09 -0800 committer Tony Luck Thu, 06 Apr 2006 15:03:49 -0700 [IA64] for_each_possible_cpu: ia64 for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu under arch/ia64/kernel/. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Tony Luck commit 03fbaca36a85a8c923e30abfb1a9a630bf1c5a1d tree 3b3947a7d3365f674b94901fea68ef92abc7c3bb parent b8cd2af862c3cbd428600e1c4f0d3f97c0da54cc author Bjorn Helgaas Tue, 28 Mar 2006 14:06:20 -0800 committer Tony Luck Thu, 06 Apr 2006 14:42:38 -0700 [IA64] update HP CSR space discovery via ACPI Get rid of the manual search of _CRS, in favor of acpi_get_vendor_resource() which is now provided by the ACPI CA. And fall back to searching for a consumer-only address space descriptor if no vendor-defined resource is found. Signed-off-by: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Tony Luck commit b8cd2af862c3cbd428600e1c4f0d3f97c0da54cc tree eb5f04a684b12437852ca0b46e98026dc0e170cf parent 27f4aa3db090ff5bc0e6c192aae6d99b21563b21 author Tony Luck Thu, 06 Apr 2006 14:20:16 -0700 committer Tony Luck Thu, 06 Apr 2006 14:20:16 -0700 [IA64] Wire up new syscalls {set,get}_robust_list Join the dots to enable Ingo's robut futex syscalls. Signed-off-by: Tony Luck commit 7d2d8fe0cb88914d26219db51341d780a032b198 tree 200b98483aabc4c27d167a10b9903077307b9009 parent aa360879ed38fbe88057cc43f720881ab9e6a63a author Andreas Gruenbacher Wed, 05 Apr 2006 23:33:50 +0200 committer Sam Ravnborg Thu, 06 Apr 2006 08:42:17 +0200 kbuild: modules_install for external modules must not remove existing modules When installing external modules with `make modules_install', the first thing that happens is a rm -rf of the target directory. This works only once, and breaks when installing more than one (set of) external module(s). With following fix we have the functionality: - for a in-kernel modules_install the $(MODLIB)/kernel directory will be deleted before module installation - for external modules the existing modules will be left as is assuming one may be building and installign several external modules Signed-off-by: Andreas Gruenbacher Signed-off-by: Sam Ravnborg commit aa360879ed38fbe88057cc43f720881ab9e6a63a tree 9607ad4018d12520f38bc3dcab132e8c3260966f parent ea88df9bf895720289331e41ed73cdcb04059900 author Sam Ravnborg Thu, 06 Apr 2006 08:25:31 +0200 committer Sam Ravnborg Thu, 06 Apr 2006 08:25:31 +0200 kbuild: fix make dir/ kbuild added an extra '/' after the directory - resulting in all files being rebuild in a subdirectory. Signed-off-by: Sam Ravnborg commit ea88df9bf895720289331e41ed73cdcb04059900 tree f524cceee9b527cd6e10cc7e3a5fa77be8d3f3ca parent 0947640f4388de50a39f762748b08e586a482527 author Alexey Dobriyan Wed, 21 Sep 2005 21:37:24 +0400 committer Sam Ravnborg Wed, 05 Apr 2006 13:10:19 +0200 ver_linux: don't print reiser4progs version if none found Sam: did the same for reiserprogs Signed-off-by: Alexey Dobriyan Signed-off-by: Sam Ravnborg commit 0947640f4388de50a39f762748b08e586a482527 tree afbabdfed5d1b2fe1f34af579ae014498ea4b070 parent bc2546a67975a7bddc72f8c48b0bb2081b56f853 author Atsushi Nemoto Tue, 28 Mar 2006 00:18:54 +0900 committer Sam Ravnborg Wed, 05 Apr 2006 12:59:36 +0200 kbuild: mips: fix sed regexp to generate asm-offset.h Changes to Makefile.kbuild ("kbuild: add -fverbose-asm to i386 Makefile") breaks asm-offset.h file on MIPS. Other archs possibly suffer this change too but I'm not sure. Here is a fix just for MIPS. Signed-off-by: Atsushi Nemoto Signed-off-by: Sam Ravnborg commit bc2546a67975a7bddc72f8c48b0bb2081b56f853 tree a973ef23c5488f7e2ff738b7f72b49d0432626f1 parent b46da0567d3baa6783106e7463801292cdc79ddd author Sam Ravnborg Wed, 05 Apr 2006 12:57:21 +0200 committer Sam Ravnborg Wed, 05 Apr 2006 12:57:21 +0200 kbuild: fix building single targets with make O=.. single-target This fixes single targets build so it now works relaiably in following cases: - build with mixed kernel source and output files (make single-target) - build with separate output directory (make O=.. single-target) - external module with mixed kernel source and output files (make M='pwd' single-target) - external module with separate kernel source and output files (make O=.. M='pwd' single-target) Signed-off-by: Sam Ravnborg commit d2e0655ede1d91c3a586455d03a4a2d57e659830 tree e507e7c6dee32cb7ea8ebe0fc2024f81cf0f9b0f parent ce1823f0323be9f38bbe0df229a5bba025404923 author Michael S. Tsirkin Tue, 04 Apr 2006 19:59:40 +0300 committer Roland Dreier Tue, 04 Apr 2006 14:46:48 -0700 IPoIB: Consolidate private neighbour data handling Consolidate IPoIB's private neighbour data handling into ipoib_neigh_alloc() and ipoib_neigh_free(). This will make it easier to keep track of the neighbour structures that IPoIB is handling, and is a nice cleanup of the code: add/remove: 2/1 grow/shrink: 1/8 up/down: 100/-178 (-78) function old new delta ipoib_neigh_alloc - 61 +61 ipoib_neigh_free - 36 +36 ipoib_mcast_join_finish 1288 1291 +3 path_rec_completion 575 573 -2 ipoib_mcast_join_task 664 660 -4 ipoib_neigh_destructor 101 92 -9 ipoib_neigh_setup_dev 14 3 -11 ipoib_neigh_setup 17 - -17 path_free 238 215 -23 ipoib_mcast_free 329 306 -23 ipoib_mcast_send 718 684 -34 neigh_add_path 705 650 -55 Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 27f4aa3db090ff5bc0e6c192aae6d99b21563b21 tree 4a1d0b73224a6e32d1c029356098143a586ababd parent d905b00b3bc9484d92dd6e9bd9fd8cf66580dc8a author Tony Luck Tue, 04 Apr 2006 14:11:49 -0700 committer Tony Luck Tue, 04 Apr 2006 14:11:49 -0700 [IA64] 'msg' may be used uninitialized in xpc_initiate_allocate() Found by gcc4.1 and reported by Dean Nelson. Signed-off-by: Tony Luck commit d905b00b3bc9484d92dd6e9bd9fd8cf66580dc8a tree 34a379a83dad72b7ab56a482167f81703a9b9979 parent 6246b6128bbe34d0752f119cf7c5111c85fe481d author Tony Luck Tue, 04 Apr 2006 14:08:11 -0700 committer Tony Luck Tue, 04 Apr 2006 14:08:11 -0700 [IA64] Wire up new syscall sync_file_range() Also reserve syscall numbers for {set,get}_robust_list Signed-off-by: Tony Luck commit 7d12963757b9170f162f317b7461353c5fb574e8 tree 592ce683f9dba37237270d9868b10bd15a068d9d parent 0da323505fc7dd6b01d35e6181cb3d45f992726a author Russell King Tue, 04 Apr 2006 16:25:47 +0100 committer Russell King Tue, 04 Apr 2006 16:25:47 +0100 [ARM] Remove unnecessary extra parens in include/asm-arm/memory.h Signed-off-by: Russell King commit 0da323505fc7dd6b01d35e6181cb3d45f992726a tree 83f37f1b88bcbf9559ae86ddfd303c1a4ba21d6c parent 6246b6128bbe34d0752f119cf7c5111c85fe481d author KAMEZAWA Hiroyuki Tue, 04 Apr 2006 16:06:00 +0100 committer Russell King Tue, 04 Apr 2006 16:06:00 +0100 [ARM] arm's arch_local_page_offset() fix against 2.6.17-rc1 This patch fixes arch_local_page_offset(pfn,nid) in arm. This new one (added by unify_pfn_to_page patches) is obviously buggy. This macro calculate page offset in a node. Note: about LOCAL_MAP_NR() comment in arm's sub-archs says... /* * Given a kaddr, LOCAL_MAP_NR finds the owning node of the memory * and returns the index corresponding to the appropriate page in the * node's mem_map. */ but LOCAL_MAP_NR() is designed to be able to take both paddr and kaddr. In this case, paddr is better. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Russell King commit b46da0567d3baa6783106e7463801292cdc79ddd tree 63d9d5b38c2f7e55e605bf2b1a6b22701474337c parent 1417ae0869472f4f3768779c51c3979faca20b2e author Sam Ravnborg Tue, 04 Apr 2006 16:56:10 +0200 committer Sam Ravnborg Tue, 04 Apr 2006 16:56:10 +0200 kbuild: use relative path to -I Using a relative path has the advantage that when the kernel source tree is moved the relevant .o files will not be rebuild just because the path to the kernel src has changed. This also got rid of a user of TOPDIR - which has been deprecated for a long time now. Signed-off-by: Sam Ravnborg commit 1417ae0869472f4f3768779c51c3979faca20b2e tree a19244a08e518577c6a094a8fb64270ce9e681d6 parent 8036dc6bdca0faa981be01377728678a6f6f3fde author Carl-Daniel Hailfinger Tue, 04 Apr 2006 01:02:30 +0200 committer Sam Ravnborg Tue, 04 Apr 2006 16:51:41 +0200 kbuild: fix unneeded rebuilds in drivers/net/chelsio after moving source tree This fixes some uneeded rebuilds under drivers/net/chelsio after moving the source tree. The makefiles used $(TOPDIR) for include paths, which is unnecessary. Changed to use relative paths. Compile tested, produces byte-identical code to the previous makefiles. Signed-off-by: Carl-Daniel Hailfinger Signed-off-by: Sam Ravnborg commit 8036dc6bdca0faa981be01377728678a6f6f3fde tree 5bb8b3b7cfdcb7028104d9302e2eda40c2477741 parent a7d7cb3cd6c97cbbe21d528c014e5f592006457d author Carl-Daniel Hailfinger Tue, 04 Apr 2006 00:35:36 +0200 committer Sam Ravnborg Tue, 04 Apr 2006 16:50:50 +0200 kbuild: fix unneeded rebuilds in drivers/media/video after moving source tree This fixes some uneeded rebuilds under drivers/media/video after moving the source tree. The makefiles used $(src) and $(srctree) for include paths, which is unnecessary. Changed to use relative paths. Compile tested, produces byte-identical code to the previous makefiles. Signed-off-by: Carl-Daniel Hailfinger Signed-off-by: Sam Ravnborg commit a7d7cb3cd6c97cbbe21d528c014e5f592006457d tree b362da041ba473225a7984d16f443de212c95800 parent 6246b6128bbe34d0752f119cf7c5111c85fe481d author Brian Gerst Sat, 25 Mar 2006 14:48:37 -0500 committer Sam Ravnborg Tue, 04 Apr 2006 15:28:21 +0200 kbuild: fix garbled text in modules.txt Signed-off-by: Brian Gerst Signed-off-by: Sam Ravnborg commit ce1823f0323be9f38bbe0df229a5bba025404923 tree f3c896b952cf01fb81054f65f2861be0e2d4f437 parent 227c939b00cf786b5e2e95fc904518206f478421 author Roland Dreier Mon, 03 Apr 2006 09:31:04 -0700 committer Roland Dreier Mon, 03 Apr 2006 09:31:04 -0700 IB/srp: Fix memory leak in options parsing Fix memory leak if parsing destination GID fails. Coverity bug 1042 Signed-off-by: Roland Dreier commit 227c939b00cf786b5e2e95fc904518206f478421 tree f62cd8a2f0663d3c9853eead57ba91dd9626a572 parent f5545d24b8aa9fccd8071203e83bc9f4b26e17a6 author Roland Dreier Sun, 02 Apr 2006 14:39:20 -0700 committer Roland Dreier Sun, 02 Apr 2006 14:39:20 -0700 IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y Change the mthca debugging trace output code so that it can enabled and disabled at runtime with the debug_level module parameter in sysfs. Also, don't allow CONFIG_INFINIBAND_MTHCA_DEBUG to be disabled unless CONFIG_EMBEDDED is selected. We want users (and especially distros) to have this turned on unless they really need to save space, because by the time we want debugging output, it's usually too late to rebuild a kernel. Signed-off-by: Roland Dreier commit f5545d24b8aa9fccd8071203e83bc9f4b26e17a6 tree c58bc4967eb3eff701acba0e9ea295fbc4c68c89 parent 37289efe3ee0c0a00b5d8302df9a2b007e65c187 author Roland Dreier Sun, 02 Apr 2006 14:39:19 -0700 committer Roland Dreier Sun, 02 Apr 2006 14:39:19 -0700 IPoIB: Always build debugging code unless CONFIG_EMBEDDED=y Don't allow CONFIG_INFINIBAND_IPOIB_DEBUG to be disabled unless CONFIG_EMBEDDED is selected. We want users (and especially distros) to have this turned on unless they really need to save space, because by the time we want debugging output, it's usually too late to rebuild a kernel. The debugging output can be controlled at runtime via the debug_level module parameter in sysfs. Signed-off-by: Roland Dreier commit 37289efe3ee0c0a00b5d8302df9a2b007e65c187 tree 92abe35ea148d32c735c7a675fdb9640fe9cfb7f parent f27f0a045b79de5729d064497e21a70871f1d6fe author Michael S. Tsirkin Thu, 30 Mar 2006 15:52:54 +0200 committer Roland Dreier Sun, 02 Apr 2006 14:39:19 -0700 IB/mad: fix oops in cancel_mads We have seen the following OOPs in cancel_mads, when restarting opensm multiple times: Call Trace: [] show_stack+0x9b/0xb0 [] show_registers+0x11c/0x190 [] die+0xed/0x160 [] do_page_fault+0x3f6/0x5d0 [] error_code+0x4f/0x60 [] cancel_mads+0x128/0x150 [ib_mad] [] unregister_mad_agent+0x11/0x130 [ib_mad] [] ib_unregister_mad_agent+0x12/0x20 [ib_mad] [] ib_umad_close+0xf3/0x130 [ib_umad] [] __fput+0x187/0x1c0 [] fput+0x19/0x20 [] filp_close+0x3a/0x60 [] put_files_struct+0x68/0xa0 [] do_signal+0x47/0x100 [] do_notify_resume+0x3d/0x40 [] work_notifysig+0x13/0x25 We traced this back to local_completions unlocking mad_agent_priv->lock while still keeping a pointer into local_list. A later call to list_del(&local->completion_list) would then corrupt the list. To fix this, remove the entry from local_list after looking it up but before releasing mad_agent_priv->lock, to prevent cancel_mads from finding and freeing it. Signed-off-by: Jack Morgenstein Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier