commit ef6bd6eb90ad72ee8ee7ba8b271f27102e9a90c1 tree 6e391d595c78b59396f6ae9e9fb322325ec9a9fe parent 2e55b57a6000ff05f6aadcddf204ecb42749a332 parent 6b9ea4213e3a9c9b8de29a001a2b8d8799cbc1c9 author Linus Torvalds Sat, 24 Sep 2005 13:50:35 -0700 committer Linus Torvalds Sat, 24 Sep 2005 13:50:35 -0700 Merge master.kernel.org:/home/rmk/linux-2.6-ucb commit 2e55b57a6000ff05f6aadcddf204ecb42749a332 tree 24ffdb922b0e20300dd13cb2eb4d7f68048ac1a3 parent f50c02831d833a27321388bc595a3c376ae941e4 parent f993724210744a9b07cf5496808828c4da6ab6df author Linus Torvalds Sat, 24 Sep 2005 13:49:37 -0700 committer Linus Torvalds Sat, 24 Sep 2005 13:49:37 -0700 Merge master.kernel.org:/home/rmk/linux-2.6-serial commit f50c02831d833a27321388bc595a3c376ae941e4 tree 8a9b29f9d2684a7dab6c20662b10e49f057c8bb6 parent ff13f98b97cb6c5a2d201dfa4db0a2fd0b4d9d50 parent d2f607484f8210cf19b1730dee26d426a5a770a5 author Linus Torvalds Sat, 24 Sep 2005 13:49:01 -0700 committer Linus Torvalds Sat, 24 Sep 2005 13:49:01 -0700 Merge master.kernel.org:/home/rmk/linux-2.6-arm commit ff13f98b97cb6c5a2d201dfa4db0a2fd0b4d9d50 tree bce3878acb3cafa95267bb1c95bb5031e7b52e79 parent 87e807b6c461bbd449496a4c3ab78ab164a4ba97 author Dmitry Torokhov Sat, 24 Sep 2005 02:02:29 -0500 committer Linus Torvalds Sat, 24 Sep 2005 10:44:25 -0700 [PATCH] Input: check switch bitmap when matching handlers The wwitch bitmap was added to input_device_id structure and we should check it when matching handlers and input devices. Signed-off-by: Dmitry Torokhov Signed-off-by: Linus Torvalds commit d2f607484f8210cf19b1730dee26d426a5a770a5 tree b05e0376b0843063e14342811dbedc8bf2f4177b parent 87e807b6c461bbd449496a4c3ab78ab164a4ba97 author Russell King Sat, 24 Sep 2005 10:42:06 +0100 committer Russell King Sat, 24 Sep 2005 10:42:06 +0100 [ARM] Fix compiler warnings for memcpy_toio/memcpy_fromio/memset_io Add 'volatile' to the __iomem pointers for these functions as per x86. Signed-off-by: Russell King commit 6b9ea4213e3a9c9b8de29a001a2b8d8799cbc1c9 tree c678c9ace865ad4d4ebd4a6cb7daceb9cb0556e2 parent 87e807b6c461bbd449496a4c3ab78ab164a4ba97 author Russell King Sat, 24 Sep 2005 10:24:37 +0100 committer Russell King Sat, 24 Sep 2005 10:24:37 +0100 [MFD] Fix "bious one-bit signed bitfield" errors ucb1x00-ts declared a couple of one-bit 'int' bitfields. Make them unsigned. Signed-off-by: Russell King commit f993724210744a9b07cf5496808828c4da6ab6df tree c9e5b09fafc392546d41c05d30119a6cb3367275 parent 87e807b6c461bbd449496a4c3ab78ab164a4ba97 author Russell King Sat, 24 Sep 2005 10:12:47 +0100 committer Russell King Sat, 24 Sep 2005 10:12:47 +0100 [SERIAL] Remove unused variable in clps711x.c Signed-off-by: Russell King commit 87e807b6c461bbd449496a4c3ab78ab164a4ba97 tree 6f5af52317ace30c1229e356a332093981763e39 parent 2ead1aa6f14ed542af0c9e2302a51ea02128f587 parent 536f8098026bde1368bbfcbcb9682a7637b73df2 author Linus Torvalds Fri, 23 Sep 2005 16:44:52 -0700 committer Linus Torvalds Fri, 23 Sep 2005 16:44:52 -0700 Merge branch 'upstream' from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev commit 2ead1aa6f14ed542af0c9e2302a51ea02128f587 tree dfaf465122239a8bb450913b2e95f4647d24892f parent 7f28f394bd68e58bf3938c67bbeca7825b4687b8 parent c8868611389aa28e0e5e0d63f468727781eac68c author Linus Torvalds Fri, 23 Sep 2005 16:44:01 -0700 committer Linus Torvalds Fri, 23 Sep 2005 16:44:01 -0700 Merge branch 'upstream-fixes' from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 commit c8868611389aa28e0e5e0d63f468727781eac68c tree da07d9bb09f99cdcb058bed5117dcac998e0b8ae parent 9389d79fbf9a0167ff2de87e8796c6bb803219bf author Stephen Hemminger Fri, 23 Sep 2005 09:08:30 -0700 committer Jeff Garzik Fri, 23 Sep 2005 19:07:12 -0400 [PATCH] skge: fix Yukon-Lite A0 workaround This is one of those workarounds sucked over from sk98lin driver. The skge driver needs to detect the Yukon-Lite A0 chip properly, and turn of Rx FIFO Flush. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 536f8098026bde1368bbfcbcb9682a7637b73df2 tree cf83d2e1afa503b6aeba103b55cd1da0af4e7a4c parent e86ee6682b649183c11013a98be02f25e9ae399d parent 3fd07d3bf0077dcc0f5a33d2eb1938ea050da8da author Jeff Garzik Fri, 23 Sep 2005 19:03:21 -0400 committer Jeff Garzik Fri, 23 Sep 2005 19:03:21 -0400 Merge /spare/repo/linux-2.6/ commit 7f28f394bd68e58bf3938c67bbeca7825b4687b8 tree b62e7b8e179ccce3244e3f3c75703082f1c2d91c parent dbdb90450059e17e8e005ebd3ce0a1fd6008a0c8 parent 73394322a4bf4108847ba3c2eee33a81b1b44450 author Linus Torvalds Fri, 23 Sep 2005 14:01:52 -0700 committer Linus Torvalds Fri, 23 Sep 2005 14:01:52 -0700 Merge master.kernel.org:/home/rmk/linux-2.6-arm commit 73394322a4bf4108847ba3c2eee33a81b1b44450 tree 8f87725077eb63534d5ec0ccad118ab71f954a0c parent e484585ec3ee66cd07a627d3a9e2364640a3807f author Russell King Fri, 23 Sep 2005 21:49:58 +0100 committer Russell King Fri, 23 Sep 2005 21:49:58 +0100 [ARM] Fix context switch with ARMv6 + TLS We accidentally corrupted the TLS value when clearing out the ARMv6 exclusive monitor. Avoid doing so. Signed-off-by: Russell King commit dbdb90450059e17e8e005ebd3ce0a1fd6008a0c8 tree 0dc0220667566698e5c602bcd408d4255c86037a parent 86513e726b494796175b6c4fdd705797f01b0ca2 author Andrew Morton Fri, 23 Sep 2005 13:24:10 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:35:37 -0700 [PATCH] revert oversized kmalloc check As davem points out, this wasn't such a great idea. There may be some code which does: size = 1024*1024; while (kmalloc(size, ...) == 0) size /= 2; which will now explode. Cc: "David S. Miller" Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 86513e726b494796175b6c4fdd705797f01b0ca2 tree aa5ee75b87732caa618665a650e33a771ed50458 parent e7c965084392e23a3494f0247c75795360a3fa0d author Harald Welte Fri, 23 Sep 2005 13:24:10 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:35:37 -0700 [PATCH] documentation: sparse no longer uses bk, but git Signed-off-by: Harald Welte Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e7c965084392e23a3494f0247c75795360a3fa0d tree 24fab39beb7cf8a5d8fd270e3add76fc3d2dce91 parent 67b108131df1230bad20a7279a8897de123d690b author Hironobu Ishii Fri, 23 Sep 2005 13:24:08 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:35:37 -0700 [PATCH] ipmi_msghandler: inconsistent spin_lock usage I found an inconsistent spin_lock usage in ipmi_smi_msg_received. Signed-off-by: Hironobu Ishii Cc: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 67b108131df1230bad20a7279a8897de123d690b tree d9551fb8d2d610840e5538760ac5ba61c8c32c7e parent 2601c2e278863cd48c01bce1377b4c9747893025 author Benjamin Herrenschmidt Fri, 23 Sep 2005 13:24:07 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:35:36 -0700 [PATCH] ppc64: Fix huge pages MMU mapping bug Current kernel has a couple of sneaky bugs in the ppc64 hugetlb code that cause huge pages to be potentially left stale in the hash table and TLBs (improperly invalidated), with all the nasty consequences that can have. One is that we forgot to set the "secondary" bit in the hash PTEs when hashing a huge page in the secondary bucket (fortunately very rare). The other one is on non-LPAR machines (like Apple G5s), flush_hash_range() which is used to flush a batch of PTEs simply did not work for huge pages. Historically, our huge page code didn't batch, but this was changed without fixing this routine. This patch fixes both. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2601c2e278863cd48c01bce1377b4c9747893025 tree 7d0de071e962b55c57f302106b6356761c08923e parent a3b5f0d43863402b03b3af9a7eaec0037a823374 author Andrew Morton Fri, 23 Sep 2005 13:24:06 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:35:36 -0700 [PATCH] atyfb c99 fix - fix this: drivers/video/aty/xlinit.c: In function `atyfb_xl_init': drivers/video/aty/xlinit.c:256: warning: ISO C90 forbids mixed declarations and code - repair some kooky coding style - Use ARRAY_SIZE() Cc: Tom 'spot' Callaway Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a3b5f0d43863402b03b3af9a7eaec0037a823374 tree 8b0593dfbd596f253347272d9e026ac09a56a827 parent 188a1eafa03aaa5e5fe6f53e637e704cd2c31c7c author Karsten Keil Fri, 23 Sep 2005 13:24:05 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:35:36 -0700 [PATCH] hisax: remove URB_ASYNC_UNLINK usb_unlink_urb is always async now, so URB_ASYNC_UNLINK was removed from core USB and we must do as well. Signed-off-by: Karsten Keil Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 188a1eafa03aaa5e5fe6f53e637e704cd2c31c7c tree 33d9480c792724c10e4e6fb681fc69c477cf1ff0 parent ede1327ea4ca8019ec6df24b3e837def091c26b8 author Linus Torvalds Fri, 23 Sep 2005 13:22:21 -0700 committer Linus Torvalds Fri, 23 Sep 2005 13:22:21 -0700 Make sure SIGKILL gets proper respect Bhavesh P. Davda noticed that SIGKILL wouldn't properly kill a process under just the right cicumstances: a stopped task that already had another signal queued would get the SIGKILL queued onto the shared queue, and there it would remain until SIGCONT. This simplifies the signal acceptance logic, and fixes the bug in the process. Losely based on an earlier patch by Bhavesh. Signed-off-by: Linus Torvalds commit ede1327ea4ca8019ec6df24b3e837def091c26b8 tree f34c9293ae84a0f52828a41807b10ddf74260f9a parent 12f44f46bc9c6dc79255e661b085797af395d8da author Steve French Tue, 30 Aug 2005 20:10:14 -0700 committer Linus Torvalds Fri, 23 Sep 2005 11:37:53 -0700 [PATCH] cifs: Add support for suspend cifsd had been preventing software suspend from completing. Signed-off-by: pavel@suse.de Signed-off-by: Steve French lightly modified Signed-off-by: Linus Torvalds commit 12f44f46bc9c6dc79255e661b085797af395d8da tree cec3ab7b0bfd7f90fba01b6fb6ecb896eed00079 parent bfab08c097df5f6a60dd07f0f8c78c54e725780b author Ivan Kokshaysky Thu, 22 Sep 2005 21:06:31 -0700 committer Linus Torvalds Fri, 23 Sep 2005 08:05:16 -0700 [PATCH] pci: fixup parent subordinate busnr I believe the change that broke things is introduction of pci_fixup_parent_subordinate_busnr(). The patch here does two things: - hunk #1 should fix the problems you've seen when you boot without additional "pci" kernel options; - hunk #2 supposedly fixes boot with "pci=assign-busses" option which otherwise hangs Acer TM81xx machines as reported. Please try this with and without "pci=assign-busses". If it boots, I'd like to see 'lspci -vvx' for both cases. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bfab08c097df5f6a60dd07f0f8c78c54e725780b tree a93536a2bbcb2331e47d72dd182bb4c4d27b6d8b parent eb0e0076878a4f9e8e6e7e524ded0d6f7d4a6130 parent 438282d85de2c8f8c5183fdf55140e51a0b18670 author Linus Torvalds Fri, 23 Sep 2005 07:40:53 -0700 committer Linus Torvalds Fri, 23 Sep 2005 07:40:53 -0700 Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/shaggy/jfs-2.6 commit 9389d79fbf9a0167ff2de87e8796c6bb803219bf tree 760e6d88a9cd18cd3f8e22ab7ce374aa124c36fd parent 3fd07d3bf0077dcc0f5a33d2eb1938ea050da8da author Paul Gortmaker Fri, 23 Sep 2005 05:18:45 -0400 committer Jeff Garzik Fri, 23 Sep 2005 05:18:45 -0400 [PATCH] 8390 Tx fix for non i386 machines While this is true, E8390_CMD is zero on i386, and thus there should be no effect for these machines. Machines like Mac, Amiga etc. which use Alan's clever register mapping may have a non-zero E8390_CMD and result in bogus "transmitter busy" type messages from this bug. Fixes BUG# 3991. commit eb0e0076878a4f9e8e6e7e524ded0d6f7d4a6130 tree 456e8ec8ac8fe9f646748456a575b25919dba230 parent 1dfbab59498d6f227c91988bab6c71af049a5333 author Sridhar Samudrala Thu, 22 Sep 2005 23:48:38 -0700 committer David S. Miller Thu, 22 Sep 2005 23:48:38 -0700 [SCTP]: Fix SCTP_SHUTDOWN notifications. Fix to allow SCTP_SHUTDOWN notifications to be received on 1-1 style SCTP SOCK_STREAM sockets. Add SCTP_SHUTDOWN notification to the receive queue before updating the state of the association. Signed-off-by: Sridhar Samudrala Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit 1dfbab59498d6f227c91988bab6c71af049a5333 tree 6b20409a232ebe8c37f16d06b3fbcde6bec8f328 parent a82b748930fce0dab22c64075c38c830ae116904 author Harald Welte Thu, 22 Sep 2005 23:46:57 -0700 committer David S. Miller Thu, 22 Sep 2005 23:46:57 -0700 [NETFILTER] Fix conntrack event cache deadlock/oops This patch fixes a number of bugs. It cannot be reasonably split up in multiple fixes, since all bugs interact with each other and affect the same function: Bug #1: The event cache code cannot be called while a lock is held. Therefore, the call to ip_conntrack_event_cache() within ip_ct_refresh_acct() needs to be moved outside of the locked section. This fixes a number of 2.6.14-rcX oops and deadlock reports. Bug #2: We used to call ct_add_counters() for unconfirmed connections without holding a lock. Since the add operations are not atomic, we could race with another CPU. Bug #3: ip_ct_refresh_acct() lost REFRESH events in some cases where refresh (and the corresponding event) are desired, but no accounting shall be performed. Both, evenst and accounting implicitly depended on the skb parameter bein non-null. We now re-introduce a non-accounting "ip_ct_refresh()" variant to explicitly state the desired behaviour. Signed-off-by: Harald Welte Signed-off-by: David S. Miller commit a82b748930fce0dab22c64075c38c830ae116904 tree c2f231123bea5861bc77e6d735b371b6dc1fa564 parent 67497205b12e3cb408259cc09b50c3a9d12cd935 author Harald Welte Thu, 22 Sep 2005 23:45:44 -0700 committer David S. Miller Thu, 22 Sep 2005 23:45:44 -0700 [NETFILTER] remove unneeded structure definition from conntrack helper Signed-off-by: Harald Welte Signed-off-by: David S. Miller commit 67497205b12e3cb408259cc09b50c3a9d12cd935 tree b06cc4b76736ca7df03717f30ff57cab8848ab2a parent 0ae5d253adcc467b1c52b512bbca9419eb438409 author Alexey Dobriyan Thu, 22 Sep 2005 23:45:24 -0700 committer David S. Miller Thu, 22 Sep 2005 23:45:24 -0700 [NETFILTER] Fix sparse endian warnings in pptp helper Signed-off-by: Alexey Dobriyan Signed-off-by: Harald Welte Signed-off-by: David S. Miller commit 0ae5d253adcc467b1c52b512bbca9419eb438409 tree 2a928ecc8efffa4872d8e0e7a6f468b43df8197f parent 2a7bc3c94cbca32d3d6e03e7d5a71662f591d28a author Harald Welte Thu, 22 Sep 2005 23:44:58 -0700 committer David S. Miller Thu, 22 Sep 2005 23:44:58 -0700 [NETFILTER] fix DEBUG statement in PPTP helper As noted by Alexey Dobriyan, the DEBUGP statement prints the wrong callID. Signed-off-by: Harald Welte Signed-off-by: David S. Miller commit 2a7bc3c94cbca32d3d6e03e7d5a71662f591d28a tree 9d6b23b66b6a5522e2333dc885137b41be636e5c parent 83ca28befc43e93849e79c564cda10e39d983e75 author Vlad Drukker Thu, 22 Sep 2005 23:35:34 -0700 committer David S. Miller Thu, 22 Sep 2005 23:35:34 -0700 [BRIDGE]: TSO fix in br_dev_queue_push_xmit Signed-off-by: Vlad Drukker Acked-by: Stephen Hemminger Signed-off-by: David S. Miller commit 83ca28befc43e93849e79c564cda10e39d983e75 tree b86c768738f929246e4a0f858f8f6df88c015da8 parent e484585ec3ee66cd07a627d3a9e2364640a3807f author Herbert Xu Thu, 22 Sep 2005 23:32:56 -0700 committer David S. Miller Thu, 22 Sep 2005 23:32:56 -0700 [TCP]: Adjust Reno SACK estimate in tcp_fragment Since the introduction of TSO pcount a year ago, it has been possible for tcp_fragment() to cause packets_out to decrease. Prior to that, tcp_retrans_try_collapse() was the only way for that to happen on the retransmission path. When this happens with Reno, it is possible for sasked_out to become invalid because it is only an estimate and not tied to any particular packet on the retransmission queue. Therefore we need to adjust sacked_out as well as left_out in the Reno case. The following patch does exactly that. This bug is pretty difficult to trigger in practice though since you need a SACKless peer with a retransmission that occurs just as the cached MTU value expires. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit e484585ec3ee66cd07a627d3a9e2364640a3807f tree 38d0cd1f7b1699b4a14ea77b77b9c0f5a87197cc parent 10d2c46f9408d404bffef89d5052953a3b1d9288 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:29 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] Add dm-snapshot tutorial in Documentation I've recently discovered the real functionality of device-mapper snapshots, and since they are not well known, I've decided to write some docs for them. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 10d2c46f9408d404bffef89d5052953a3b1d9288 tree 5eace052aa3b694d9e1e8a523bf66641e0c51966 parent f7b3a4359b25311fb5894c8809478a2df6bed480 author Nick Wilson Thu, 22 Sep 2005 21:44:28 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] NFS: fix client oops when debugging is on nfs_readpage_release() causes an oops while accessing a file with NFS debugging turned on (echo 32767 > /proc/sys/sunrpc/nfs_debug) and a kernel built with CONFIG_DEBUG_SLAB. This patch moves the debugging statement above nfs_release_request() to avoid accessing freed memory. Signed-off-by: Nick Wilson Cc: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f7b3a4359b25311fb5894c8809478a2df6bed480 tree ef2e2a707f1b5d5095c9e2e1e6d760d77ad2b31b parent 8bdac5d1ed892da54b6b2069e50a47b3aa39460f author Rob Landley Thu, 22 Sep 2005 21:44:27 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] Fix bd_claim() error code. Problem: In some circumstances, bd_claim() is returning the wrong error code. If we try to swapon an unused block device that isn't swap formatted, we get -EINVAL. But if that same block device is already mounted, we instead get -EBUSY, even though it still isn't a valid swap device. This issue came up on the busybox list trying to get the error message from "swapon -a" right. If a swap device is already enabled, we get -EBUSY, and we shouldn't report this as an error. But we can't distinguish the two -EBUSY conditions, which are very different errors. In the code, bd_claim() returns either 0 or -EBUSY, but in this case busy means "somebody other than sys_swapon has already claimed this", and _that_ means this block device can't be a valid swap device. So return -EINVAL there. Signed-off-by: Rob Landley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8bdac5d1ed892da54b6b2069e50a47b3aa39460f tree 7b141ffd02ccdea86eaad1a6ad0ebfe655f7937a parent f65d9bea8692d7343e4636763f291408f025834f author Glauber de Oliveira Costa Thu, 22 Sep 2005 21:44:26 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] ext3: EXT3_DEBUG build fixes Fix some warnings and a build error when EXT3_DEBUG is enabled. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f65d9bea8692d7343e4636763f291408f025834f tree 426b4f07df2c92abc5d6788bf145ebc4c42e19fc parent 288a60cf4d7cc35f84f46cd8ffd0b34f9d8e7346 author Clemens Buchacher Thu, 22 Sep 2005 21:44:24 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] oss: don't concatenate __FUNCTION__ with strings It's deprecated. Use "%s", __FUNCTION__ instead. Signed-off-by: Clemens Buchacher Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 288a60cf4d7cc35f84f46cd8ffd0b34f9d8e7346 tree 24691394b7e1aaa0b8e9a64f0e1723df3f3974bb parent fac97ae0b1a206e2952baf1f9eb46305d673adc6 author Chris Zankel Thu, 22 Sep 2005 21:44:23 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] xtensa: remove io_remap_page_range and minor clean-ups Remove io_remap_page_range() from all of Linux 2.6.x (as requested and suggested by Randy Dunlap) and minor clean-ups. Signed-off-by: Chris Zankel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fac97ae0b1a206e2952baf1f9eb46305d673adc6 tree d44e4d9d414c4fbef057e4991dbb60a4c31baa5d parent 79ae2cb856ed6a8c48f455d52d5ed5960c671e67 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:22 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] uml: replace printk with "stack-friendly" printf - to report console failure User get *a lot* confused when consoles don't work but we don't report anything. And, as reported in the comment, using printk to report "your console doesn't work" isn't likely to go that far. Fix the problem on the base of this: stack consumption by host printf(). Use kernel sprintf() and os_write_file, using a wild guess that one page will be enough for the message, to preallocate the buffer with kmalloc(). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 79ae2cb856ed6a8c48f455d52d5ed5960c671e67 tree b72431f31bb99e03d86c40cbfb17e766034ac2ef parent 46db4a42dd1190a311c2fb45106dfd0842c65a94 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:21 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] uml: use GFP_ATOMIC for allocations under spinlocks. setup_initial_poll is only called with sigio_lock() held, so use appropriate allocation. Also, parse_chan() can also be called when holding a spinlock (see line_open() -> parse_chan_pair()). I have sporadic problems (spinlock taken twice, with spinlock debugging on UP) which could be caused by a sequence like "take spinlock, alloc and go to sleep, take again the spinlock in the other thread". Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 46db4a42dd1190a311c2fb45106dfd0842c65a94 tree 2542832bf69acd1b55d0d93f67e01c34bf445b25 parent fea03cb40a15e3c6647c0927300202e062e6792a author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:20 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:37 -0700 [PATCH] uml: Fix GFP_ flags usage GFP_ATOMIC | GFP_KERNEL is meaningless and won't work. Actually it never worked, even in 2.4. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fea03cb40a15e3c6647c0927300202e062e6792a tree 2e7933807e29b7d62dd9104c4bc3e640c703ab83 parent 12ebcd73e40e09f0dfddf89e465cc0541e0ff8b1 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:20 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] uml: avoid fixing faults while atomic Following i386, we should maybe refuse trying to fault in pages when we're doing atomic operations, because to handle the fault we could need to take already taken spinlocks. Also, if we're doing an atomic operation (in the sense of in_atomic()) we're surely in kernel mode and we're surely going to handle adequately the failed fault, so it's safe to behave this way. Currently, on UML SMP is rarely used, and we don't support PREEMPT, so this is unlikely to create problems right now, but it might in the future. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 12ebcd73e40e09f0dfddf89e465cc0541e0ff8b1 tree 74e70293160716a23c37b97659893e8fa2278f8a parent dc36abf34e13aabbe06cdd060c434b3cdd80e7da author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:19 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] uml: run mconsole "sysrq" in process context Things are breaking horribly with sysrq called in interrupt context. I want to try to fix it, but probably this is simpler. To tell the truth, sysrq is normally run in interrupt context, so there shouldn't be any problem. There's also a warning from the fault handler because it's run in atomic context (I have a patch for that, only I deferred it). This is why I'm doing this. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dc36abf34e13aabbe06cdd060c434b3cdd80e7da tree 2ad214661db54b424154c90eee71cb7b2fb410aa parent 546fe1cbf91d4d62e3849517c31a2327c992e5c5 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:18 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] uml: fix condition in tlb flush Avoid setting w = 0 twice. Spotted this (trivial) thing which is needed for another patch. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 546fe1cbf91d4d62e3849517c31a2327c992e5c5 tree c2be2cd1eb19e04c49d22ec77119973fa8f0ea13 parent 69e1e688f5698287b45fbff22a01de91b20804cd author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:16 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] uml: fix hang in TT mode on fault The current code doesn't handle well general protection faults on the host - it thinks that cr2 is always the address of a page fault. While actually, on general protection faults, that address is not accessible, so we'd better assume we couldn't satisfy the fault. Currently instead we think we've fixed it, so we go back, retry the instruction and fault again endlessly. This leads to the kernel hanging when doing copy_from_user(dest, -1, ...) in TT mode, since reading *(-1) causes a GFP, and we don't support kernel preemption. Thanks to Luo Xin for testing UML with LTP and reporting the failures he got. Cc: Luo Xin Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 69e1e688f5698287b45fbff22a01de91b20804cd tree 2570b75a608a3deddc69afc8b989dbb66557efea parent a8bfb94c58238666df0d6856861d18f0f52fc752 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:15 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] uml: don't redundantly mark pte as newpage in pte_modify pte_modify marks a page as needing flush, which is redundant because the resulting PTE is still set with set_pte, which already handles that. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8bfb94c58238666df0d6856861d18f0f52fc752 tree ff22df262edafd55c9004a32a25dfb818c0841a9 parent 3a02d6c051cf3c214aab38e4330b4bcec5f6e3f8 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:14 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] strlcat: use for uml umid.c Simplify the code by using strlcat() instead of strncat() and manual appending. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3a02d6c051cf3c214aab38e4330b4bcec5f6e3f8 tree 6d99dd06a5228ab6ea9a72dd7dfbc43458861825 parent 8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3 author Paolo 'Blaisorblade' Giarrusso Thu, 22 Sep 2005 21:44:12 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] uml: don't remove umid files in conflict case Only remove the UML pidfile and management socket if we created them. Currently in case two UMLs are started with the same umid, the second will remove the first's ones. Probably we should also panic() at that point, not sure however. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8686bcd0a5f5e3f599ed9f1028ec9e449e7b87e3 tree d8622e5819108fb4d90ea3cc0bbd3b1cc04d3a3d parent eafb42707b21beb42bba4eae7b742f837ee9d2e0 author Pavel Machek Thu, 22 Sep 2005 21:44:11 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] swsusp: fix comments Fix comments in swsusp. Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eafb42707b21beb42bba4eae7b742f837ee9d2e0 tree a2b4f7042bb622ecbe8aaa003a96a6024d8bbc00 parent 0cdc82ee1ae36c1ae4631fc3a782faeb0b90df38 author Christoph Lameter Thu, 22 Sep 2005 21:44:10 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] __kmalloc: Generate BUG if size requested is too large. I had an issue on ia64 where I got a bug in kernel/workqueue because kzalloc returned a NULL pointer due to the task structure getting too big for the slab allocator. Usually these cases are caught by the kmalloc macro in include/linux/slab.h. Compilation will fail if a too big value is passed to kmalloc. However, kzalloc uses __kmalloc which has no check for that. This patch makes __kmalloc bug if a too large entity is requested. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0cdc82ee1ae36c1ae4631fc3a782faeb0b90df38 tree 38dbeb4253338f25392c074a5e289c74e0b7ee9c parent 98b4f5929ce5e616d0d0e13c71baf50083ab7397 author Benjamin Herrenschmidt Thu, 22 Sep 2005 21:44:09 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:36 -0700 [PATCH] mesh scsi: fix error handling The PowerMac mesh SCSI driver had some missing error handling which would trigger warnings due to lack of handling of return value from scsi_add_host. This fixes it. Signed-off-by: Benjamin Herrenschmidt Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 98b4f5929ce5e616d0d0e13c71baf50083ab7397 tree f7a903755d1f2744e1d8736a48d680adae6ffc41 parent e3fc4cc17ac4dbadab0ba0d5c8233d3b18170d4a author Chuck Ebbert <76306.1226@compuserve.com> Thu, 22 Sep 2005 21:44:08 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] atiixp_modem printk fixes Correctly identify atiixp_modem in its error messages. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Cc: Vojtech Pavlik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e3fc4cc17ac4dbadab0ba0d5c8233d3b18170d4a tree c69b93069f7ee9640ec2f643afcf27b7f580435b parent 0365ba7fb1fa94a41289d6a3d36b4d95960e56cc author Randy Dunlap Thu, 22 Sep 2005 21:44:07 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] corrections to top-level README Corrections to the recent top-level README changes. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0365ba7fb1fa94a41289d6a3d36b4d95960e56cc tree 1da4b5fb97266849d86a78010141e7345cc599aa parent 0f329075fb1dbd6845db03e9bb8252024fdbea1f author Benjamin Herrenschmidt Thu, 22 Sep 2005 21:44:06 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] ppc64: SMU driver update & i2c support The SMU is the "system controller" chip used by Apple recent G5 machines including the iMac G5. It drives things like fans, i2c busses, real time clock, etc... The current kernel contains a very crude driver that doesn't do much more than reading the real time clock synchronously. This is a completely rewritten driver that provides interrupt based command queuing, a userland interface, and an i2c/smbus driver for accessing the devices hanging off the SMU i2c busses like temperature sensors. This driver is a basic block for upcoming work on thermal control for those machines, among others. Signed-off-by: Benjamin Herrenschmidt Cc: Jean Delvare Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0f329075fb1dbd6845db03e9bb8252024fdbea1f tree c2bca92a93c7a1983ddd77811bec7e7409eb4147 parent f951da3757cf46444a6ea52e97b8aa9400fe761a author Anton Blanchard Thu, 22 Sep 2005 21:44:05 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] ppc64: Fix 64bit ptrace DABR support Fix my stupid bug in the 64bit version of PTRACE_SET_DEBUGREG. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f951da3757cf46444a6ea52e97b8aa9400fe761a tree 1bcbfc0c595ce7c08b7a6242a781e7c623b428f5 parent 586a90eb4c0b512df766e08a7718af7c6b9b2dcf author Anton Blanchard Thu, 22 Sep 2005 21:44:05 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] ppc64: Fix build with iommu debug enabled Fix build when iommu debug is enabled. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 586a90eb4c0b512df766e08a7718af7c6b9b2dcf tree 0472f79c20c605141abf4790faa4cbc4e41f8fd2 parent 275abf5b06676ca057cf3e15f0d027eafcb204a0 author Anton Blanchard Thu, 22 Sep 2005 21:44:04 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] ppc64: Fix LPAR regression The recent iommu fix broke booting on some POWER4 and POWER5 LPAR boxes. It looks like we have been calling the non LPAR iommu_dev_setup on LPAR machines for a while. The recent iommu fix caused that code path to fail. It looks like we just need to hook up the devices iommu_table to the parents one, so do that instead of calling iommu_dev_setup_pSeries and crossing the streams. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 275abf5b06676ca057cf3e15f0d027eafcb204a0 tree 2e922e35183eaae5111577f8c084b9f7f7c17460 parent ff69416e6323fe9d38c42a06ebdefeb58bbe9336 author OGAWA Hirofumi Thu, 22 Sep 2005 21:44:03 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] ext3: ext3_show_options fix EXT3_MOUNT_DATA_FLAGS is not a boolean. This fixes it. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ff69416e6323fe9d38c42a06ebdefeb58bbe9336 tree c97b81660f38ff7a06196dc47b92bd5f44c26305 parent 57487f4376e16558ccbe45a5b41d8cb5192309a4 author Christoph Lameter Thu, 22 Sep 2005 21:44:02 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] slab: fix handling of pages from foreign NUMA nodes The numa slab allocator may allocate pages from foreign nodes onto the lists for a particular node if a node runs out of memory. Inspecting the slab->nodeid field will not reflect that the page is now in use for the slabs of another node. This patch fixes that issue by adding a node field to free_block so that the caller can indicate which node currently uses a slab. Also removes the check for the current node from kmalloc_cache_node since the process may shift later to another node which may lead to an allocation on another node than intended. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 57487f4376e16558ccbe45a5b41d8cb5192309a4 tree 0f2712787db8a8eb7021ccac41deef40d6890f41 parent 4c87b74c72d42f7272aa4bf8f17c73bb53774eee author Rafael J. Wysocki Thu, 22 Sep 2005 21:44:01 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:35 -0700 [PATCH] swsusp: do not trigger BUG_ON() if there is not enough memory The following patch makes swsusp avoid triggering the BUG_ON() in swsusp_suspend() if there is not enough memory for suspend. Signed-off-by: Rafael J. Wysocki Cc: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4c87b74c72d42f7272aa4bf8f17c73bb53774eee tree 0547b7d7d9f0fc8b271fdf22a5d78617bc8e4bca parent 609725f87709724218047a1049913ed233f79d3c author Robert Love Thu, 22 Sep 2005 21:44:00 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] hdaps: small update. - Handle dmi_system_check() elegantly, now that my bugfix is upstream. - Add support for the X41 and R52. - Cleanup some comments do I do not have to keep updating them with each new whitelisted laptop. Signed-off-by: Robert Love Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 609725f87709724218047a1049913ed233f79d3c tree 7ccc4b12808b4de7d248ba7a722637f244155f26 parent 7243cc05bafdda4c4de77cba00cf87666bd237f7 author Keir Fraser Thu, 22 Sep 2005 21:43:59 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] Fix mmap() of /dev/hpet The address passed to io_remap_pfn_range() in hpet_mmap() does not need to be converted using __pa(): it is already a physical address. This bug was found and the patch suggested by Clay Harris. I introduced this particular bug when making io_remap_pfn_range changes a few months ago. In fact mmap()ing /dev/hpet has *never* previously worked: before my changes __pa() was being executed on an ioremap()ed virtual address, which is also invalid. Signed-off-by: Keir Fraser Cc: Robert Picco Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7243cc05bafdda4c4de77cba00cf87666bd237f7 tree a893a19e774de07face851ace998830ea1487612 parent 4b3c86a7452df8608c32a1c1f19c0cc0723c145f author Ivan Kokshaysky Thu, 22 Sep 2005 21:43:58 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] slab: alpha inlining fix It is essential that index_of() be inlined. But alpha undoes the gcc inlining hackery and index_of() ends up out-of-line. So fiddle with things to make that function inline again. Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4b3c86a7452df8608c32a1c1f19c0cc0723c145f tree c752756f7a569d2ae49f5725cd9a794550ad8059 parent 720b9429e8f41f7c4ee9df293403650905042035 author Ivan Kokshaysky Thu, 22 Sep 2005 21:43:57 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] alpha: fix kernel panic during SysRq-b acquire_console_sem() does BUG() in interrupt context now, as in the case of SysRq-b. Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 720b9429e8f41f7c4ee9df293403650905042035 tree b9ad4fecd9cfeec716fd0a7746c6adaf12616ac5 parent 244bc050d5c9431682b7d834aff92e663fe88bb2 author Randy Dunlap Thu, 22 Sep 2005 21:43:56 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] SOFTWARE_SUSPEND needs HOTPLUG_CPU on SMP Signed-off-by: Randy Dunlap Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 244bc050d5c9431682b7d834aff92e663fe88bb2 tree de338fb876f51ba3d4a476b1b69694b3f7b36e5a parent 66c81f0059b57e18aad43a5b0d330102c237cd72 author Benjamin Herrenschmidt Thu, 22 Sep 2005 21:43:55 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] ppc32: fix build with oprofile Current -git tree doesn't build when enabling oprofile on a non-bookE CPU (like on a PowerMac for example). While there is no performance counter support for these CPUs implemented yet, it's still nice to be able to use the timer based sampling, and that got broken. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66c81f0059b57e18aad43a5b0d330102c237cd72 tree 4e9d21331d25960c9984159b94ee6f3dfd31a53b parent e1e70a262d5cb5a02d2fc171e0178197849482d4 author Grant Coady Thu, 22 Sep 2005 21:43:54 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] DEBUG redefined in drivers/mtd/devices/docecc.c Fix namespace clash: drivers/mtd/devices/docecc.c:43:1: warning: "DEBUG" redefined In file included from drivers/mtd/devices/docecc.c:40: include/linux/mtd/mtd.h:219:1: warning: this is the location of the previous definition Signed-off-by: Grant Coady Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1e70a262d5cb5a02d2fc171e0178197849482d4 tree 571e4e06fa1504d4198675a60de73268b7733419 parent f71626a461e7d4af099ca71830ea530e96c22e11 author Bernd Petrovitsch Thu, 22 Sep 2005 21:43:53 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:34 -0700 [PATCH] Rename vprintk define in bttpvp.h Rename the (apparently) bttv intern #define vprintk to verbprintk to resolve a name clash. Reason: vprintk() is defined in include/linux/kernel.h similar to printk but with a va_list argument. (akpm: I changed it to bttv_printk) Cc: Mauro Carvalho Chehab Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f71626a461e7d4af099ca71830ea530e96c22e11 tree 69cc1ef26c39887a938618d8e8a6f788ae8b4488 parent a1f9d8d23fef301ba0c0b4983e0aa947168e1c37 author Latchesar Ionkov Thu, 22 Sep 2005 21:43:53 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] v9fs: don't free root dentry & inode if error occurs in v9fs_get_sb If error occurs while in v9fs_get_sb after it calles sget, the dentry object of the root and its inode may be freed twice -- once while handling the error in v9fs_get_sb, and second time when v9fs_get_sb calles deactivate_super (which in turn calls v9fs_kill_super) The patch removes the unnecessary code that frees the root dentry and its inode. Signed-off-by: Latchesar Ionkov Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a1f9d8d23fef301ba0c0b4983e0aa947168e1c37 tree c8927b500a1b93aed027776b88bc6a1e8664c5fa parent a8e63bff521f0387fb4f4e486dede0e78dca8f41 author Latchesar Ionkov Thu, 22 Sep 2005 21:43:52 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] v9fs: replace strlen on newly allocated by __getname buffers to PATH_MAX v9fs_vfs_readlink allocates space for the link using __getname and errorneously uses strlen on the newly allocated buffer to check if the buffer passed by the user is bigger than the one returned by __getname. The patch replaces the strlen usage to PATH_MAX, which is the actual size of the buffers returned by __getname. Signed-off-by: Latchesar Ionkov Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8e63bff521f0387fb4f4e486dede0e78dca8f41 tree 8267e3f5e8a5eb3d6fe92659def6f5bee1190b03 parent 5b067676234715051cbde87083c36c8ea83f77b8 author Latchesar Ionkov Thu, 22 Sep 2005 21:43:51 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] v9fs: make copy of the transport prototype instead of using it directly When a new session is created it uses a template object of the specified transport type to instantiate its own copy. The code for the making a copy of the template object was lost, and the object itself is attached to the v9fs session. This leads to many sessions using the same transport instead of having their own copy. The patch puts back the code that makes a copy of the template object. Signed-off-by: Latchesar Ionkov Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b067676234715051cbde87083c36c8ea83f77b8 tree e6552ebec3b3cc18fad03d7e60feef80a0abe19e parent d06a8fb130085c9f61e4c1a40445163087ecf89f author Latchesar Ionkov Thu, 22 Sep 2005 21:43:50 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] v9fs: allocate the Rwalk qid array from the right conv buffer When v9fs_deserealize_fcall deserializes a Rwalk message, it incorrectly allocates space for the qid array in the source instead of the destination buffer. Signed-off-by: Latchesar Ionkov Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d06a8fb130085c9f61e4c1a40445163087ecf89f tree c98595f83201adcd791ef9d3509aa1f157f3dfa2 parent 89559a6119e9779c732fdc7aef5e175bf090dd69 author Latchesar Ionkov Thu, 22 Sep 2005 21:43:48 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] v9fs: make conv functions to check for conv buffer overflow buf_check_size function checks if the conv buffer has enough space for the performed operation, but it doesn't return the result back to the calling function, only logs an error in the log. The report-back-error functionality was lost when buf_check_size was converted from macro to inline function. The return in the macro used to exit from the functions that include it, after the conversion it just exits from the inline function itself. The patch makes buf_check_size to return flag and all functions that use it check if they should perform the operation, or exit. Signed-off-by: Latchesar Ionkov Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 89559a6119e9779c732fdc7aef5e175bf090dd69 tree c3c93f05718dce852e5910e4315fdcf84b5ffad4 parent 88d10bbaaec38856f913313b6c0858d9e9b7a066 author Prasanna S Panchamukhi Thu, 22 Sep 2005 21:43:47 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] Update maintainers list with the kprobes maintainers This patch updates the maintainers list with kprobes maintainers. Signed-of-by: Prasanna S Panchamukhi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 88d10bbaaec38856f913313b6c0858d9e9b7a066 tree 0d38947da1e0d72d00ae35e64b25f7d1c31d1556 parent e4c94330e3395ae87451bded2840a25d04f27902 author Eric W. Biederman Thu, 22 Sep 2005 21:43:46 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] suspend: cleanup calling of power off methods. In the lead up to 2.6.13 I fixed a large number of reboot problems by making the calling conventions consistent. Despite checking and double checking my work it appears I missed an obvious one. The S4 suspend code for PM_DISK_PLATFORM was also calling device_shutdown without setting system_state, and was not calling the appropriate reboot_notifier. This patch fixes the bug by replacing the call of device_suspend with kernel_poweroff_prepare. Various forms of this failure have been fixed and tracked for a while. Thanks for tracking this down go to: Alexey Starikovskiy, Meelis Roos , Nigel Cunningham , Pierre Ossman History of this bug is at: http://bugme.osdl.org/show_bug.cgi?id=4320 Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e4c94330e3395ae87451bded2840a25d04f27902 tree 860c6a1070492cb2fa8cc5847a366b1841f8c6a5 parent 0678e5feaab8b359b18858e8532bb6017edb112b author Eric W. Biederman Thu, 22 Sep 2005 21:43:45 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] reboot: comment and factor the main reboot functions In the lead up to 2.6.13 I fixed a large number of reboot problems by making the calling conventions consistent. Despite checking and double checking my work it appears I missed an obvious one. This first patch simply refactors the reboot routines so all of the preparation for various kinds of reboots are in their own functions. Making it very hard to get the various kinds of reboot out of sync. Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0678e5feaab8b359b18858e8532bb6017edb112b tree 41b09ba42b40f75afebd2408d5e101ef214000b5 parent e53897e2fb48526a62116ef8e72d7441d5ee8752 author Andrew Morton Thu, 22 Sep 2005 21:43:44 -0700 committer Linus Torvalds Thu, 22 Sep 2005 22:17:33 -0700 [PATCH] proc_task_root_link c99 fix fs/proc/base.c: In function `proc_task_root_link': fs/proc/base.c:364: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e53897e2fb48526a62116ef8e72d7441d5ee8752 tree ecbcf922d84829386fbf72244357bb2b38b36f7e parent 3fd07d3bf0077dcc0f5a33d2eb1938ea050da8da parent 4881e2cd25d2d9cf9fca263caff3a0ce732d7d6b author Linus Torvalds Thu, 22 Sep 2005 16:23:04 -0700 committer Linus Torvalds Thu, 22 Sep 2005 16:23:04 -0700 Merge branch 'release' of master.kernel.org:/pub/scm/linux/kernel/git/aegl/linux-2.6 commit 4881e2cd25d2d9cf9fca263caff3a0ce732d7d6b tree 6d93cddd18ed37395d4522799f2d31a862669d10 parent 20bb86852a6b7d9ca8c48ff921ff3904038959cf author Hidetoshi Seto Tue, 20 Sep 2005 16:34:41 +0900 committer Tony Luck Thu, 22 Sep 2005 13:27:59 -0700 [IA64] MCA recovery verify pfn_valid Verify the pfn is valid before calling pfn_to_page(), and cut isolation message if nothing was done. Signed-off-by: Hidetoshi Seto Acked-by: Russ Anderson Signed-off-by: Tony Luck commit 20bb86852a6b7d9ca8c48ff921ff3904038959cf tree 7db40dee86256b322a1036a6187db2e189e0bd0a parent 83a78d9ba792660418d692fd6737871aefdbff36 author Keith Owens Thu, 22 Sep 2005 18:49:15 +1000 committer Tony Luck Thu, 22 Sep 2005 13:24:19 -0700 [IA64] Wire in the MCA/INIT handler stacks Wire the MCA/INIT handler stacks into DTR[2] and track them in IA64_KR(CURRENT_STACK). This gives the MCA/INIT handler stacks the same TLB status as normal kernel stacks. Reload the old CURRENT_STACK data on return from OS to SAL. Signed-off-by: Keith Owens Signed-off-by: Tony Luck commit 83a78d9ba792660418d692fd6737871aefdbff36 tree bdacedc3e5bdf6a638975d8e7a52f81e1e23abc9 parent 0fc084eaffe0a9a82a0c94da9ee9f7060ade8b04 author Peter Chubb Mon, 19 Sep 2005 09:36:12 +1000 committer Tony Luck Thu, 22 Sep 2005 10:42:39 -0700 [IA64] Fix simscsi for new SCSI midlayer The sd driver now uses scsi_execute_req() for almost everything. scsi_execute_req() converts requests into scatterlists. Fix the HP SCSI disk simulator to understand scatterlists for more commands. Without this patch the current kernel will not boot on the simulator (the disks are always detected as having no sectors, and so cannot be mounted). Signed-off-by: Peter Chubb Signed-off-by: Tony Luck commit 3fd07d3bf0077dcc0f5a33d2eb1938ea050da8da tree 7d6b7175975e342b7749c06d2f41867783836f73 parent 0fc084eaffe0a9a82a0c94da9ee9f7060ade8b04 author Kumar Gala Wed, 21 Sep 2005 23:54:58 -0500 committer Linus Torvalds Thu, 22 Sep 2005 09:41:35 -0700 [PATCH] ppc32: Fix configuration of PCI IO space on MPC85xx platform For platforms that don't have PCI IO at 0 the outbound window registers were not being properly configured. Signed-off-by: Andrew Klossner Signed-off-by: Kumar K. Gala Signed-off-by: Linus Torvalds commit 0fc084eaffe0a9a82a0c94da9ee9f7060ade8b04 tree c1a9694603bbd4bf1ca280e4062298bcabdf6287 parent c6c88834b2c6635df9d17695feb50c835bc8efc6 author Alan Stern Thu, 22 Sep 2005 00:49:51 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:26 -0700 [PATCH] USB: Update Documentation/usb/URB.txt This patch (as564) updates Documentation/usb/URB.txt, bringing it roughly up to the current level. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit c6c88834b2c6635df9d17695feb50c835bc8efc6 tree 2de03fe67fa25cd0be119bc32ed24ede01a77aef parent 3a8c1e2910daaff7590173e9d4ca07153e8a3517 author Pete Zaitcev Thu, 22 Sep 2005 00:49:45 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:26 -0700 [PATCH] ub: Comment out unconditional stall clear This code appears to be more trouble than it's worth, considering that no normal users reload drivers. So, we comment it for now. It is not removed outright for the benefit of hackers (that is, myself). Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 3a8c1e2910daaff7590173e9d4ca07153e8a3517 tree fb4306e9c3638c23b688e691c3002d0df6b2c755 parent b27c73dcab61826e5f1228d69d56f469b0abfc05 author David Hollis Thu, 22 Sep 2005 00:49:39 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:26 -0700 [PATCH] USB: Add Novatel CDMA Wireless PC card IDs to airprime USB: Add device id's for Novatel Wireless CDMA wireless PC card. The Novatel CDMA card behaves the same as the AirPrime by providing a USB serial port. Signed-off-by: David Hollis Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit b27c73dcab61826e5f1228d69d56f469b0abfc05 tree da3ef027dcbd3896556cbb1269116b2e1328002f parent a85a46f2c38def5150251816890393803fdae7d0 author Matthias Urlichs Thu, 22 Sep 2005 00:49:33 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:26 -0700 [PATCH] usb/serial/option.c: Increase input buffer size The card sometimes sends >2000 bytes in one single chunk. Ouch. Signed-Off-By: Matthias Urlichs Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit a85a46f2c38def5150251816890393803fdae7d0 tree 98cfbc561911ee869d29a30b40847fae15bd65f1 parent 4b2e790a4d73d729d936cc42f3b08af34f8ea5c6 author Kevin Vigor Thu, 22 Sep 2005 00:49:24 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:26 -0700 [PATCH] USB: fix pegasus driver Addresses some small bugs in the pegasus ethernet-over-USB driver. Specifically, malformed long packets from the adapter could cause a kernel panic; the interrupt interval calculation was inappropriate for high-speed devices; the return code from read_mii_word was tested incorrectly; and failure to unlink outstanding URBs before freeing them could lead to kernel panics when unloading the driver. Signed-off-by: Kevin Vigor Cc: Petko Manolov Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 4b2e790a4d73d729d936cc42f3b08af34f8ea5c6 tree d052c4c7d260b0eeb3e83376f7f4eb952e1cfd60 parent 2ba08e825e5a666f540bff15e9977725675e8de6 author David Brownell Thu, 22 Sep 2005 00:49:07 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] USB: sl811-hcd minor fixes Three minor sl811-hcd fixes: - Elminate memory leak on one (rare) disable/shutdown path. - For periodic transfers that don't need to be scheduled, update urb->start_frame to represent the transfer phase correctly. - Report the (single) port as removable, by default. Since no drivers yet use start_frame or that part of the hub descriptor, only that leak is likely to ever matter. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds drivers/usb/host/sl811-hcd.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit 2ba08e825e5a666f540bff15e9977725675e8de6 tree 2ba1c9233c507683881565a9991ba5e0aed55fc3 parent 72a755fce0243d4168a6153813a1b533b05a7d72 author Richard Purdie Thu, 22 Sep 2005 00:48:58 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] USB: fix pxa2xx_udc compile warnings This patch fixes several types in the PXA25x udc driver and hence fixes several compiler warnings. Signed-off-by: Richard Purdie Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 72a755fce0243d4168a6153813a1b533b05a7d72 tree 9a43f379879f0cf8cdf95f7f11edb9ae4ca39654 parent b6137383bda844a433d65e027502df7b20ba45c2 author Peter Favrholdt Thu, 22 Sep 2005 00:48:49 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] USB: ftdi_sio: allow baud rate to be changed without raising RTS and DTR I'm using a 2 port USB RS232 dongle to connect to a serial-IR cradle for a bar code reader). Detecting the baudrate of the serial-IR involves keeping DTR low while changing baudrate. This works using normal 16550A serial ports as well as the FTDI driver version 1.4.0 (Linux 2.6.8) but stopped working with the change to "ensure RTS and DTR are raised when changing baudrate" introduced in version 1.4.1 (Linux 2.6.9). The attached patch fixes this, so RTS and DTR is only raised when changing baudrate iff the previous baudrate was B0. Signed-off-by: Peter Favrholdt Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit b6137383bda844a433d65e027502df7b20ba45c2 tree a76e831344beca1960e6437de973ab2e6e8ef47c parent 64bd84538ac7f8ba3080eda4d92c66a8441cc6cc author Matthias Urlichs Thu, 22 Sep 2005 00:48:40 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] USB: more device IDs for Option card driver Added support for HUAWEI E600 and Audiovox AirCard User reports say that these devices work without driver modification. Signed-off-by: Matthias Urlichs Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 64bd84538ac7f8ba3080eda4d92c66a8441cc6cc tree 5afbf6858d5f44b962f3ea1cb78ab1ccfaf65d65 parent 02fe75a9ad797b4f8ccf1ee8e49833b77cc30c6a author Pete Zaitcev Thu, 22 Sep 2005 00:48:29 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] ub: fix burning cds This patch fixes a few problems with ub and cleans up a couple of things: - Bump UB_MAX_REQ_SG, this allows to burn CDs - Drop initialization of urb.transfer_flags, now that URB_UNLINK_ASYNC is gone - Add forgotten processing of stalls at GetMaxLUN - Remove a few more P3-tagged printks whose time has come - Correct comment about ZIP-100 Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds drivers/block/ub.c | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) commit 02fe75a9ad797b4f8ccf1ee8e49833b77cc30c6a tree 030827c54f248461b7384021a1cbd22bec0e53cf parent 3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b author Linda Xie Thu, 22 Sep 2005 00:48:24 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] PCI Hotplug: Fix buffer overrun in rpadlpar_sysfs.c Signed-off-by: Linda Xie Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b tree bc328ba9645a9d19c3b132f71e74ef3f7ed76f7a parent 656da9da3745abcbbbdca598745d04c6de2c8843 author Amos Waterland Thu, 22 Sep 2005 00:48:19 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:25 -0700 [PATCH] fix drivers/pci/probe.c warning This function expects an unsigned 32-bit type as its third argument: static u32 pci_size(u32 base, u32 maxbase, u32 mask) However, given these definitions: #define PCI_BASE_ADDRESS_MEM_MASK (~0x0fUL) #define PCI_ROM_ADDRESS_MASK (~0x7ffUL) these two calls in drivers/pci/probe.c are problematic for architectures for which a UL is not equivalent to a u32: sz = pci_size(l, sz, PCI_BASE_ADDRESS_MEM_MASK); sz = pci_size(l, sz, PCI_ROM_ADDRESS_MASK); Hence the below compile warning when building for ARCH=ppc64: drivers/pci/probe.c: In function `pci_read_bases': /.../probe.c:168: warning: large integer implicitly truncated to unsigned type /.../probe.c:218: warning: large integer implicitly truncated to unsigned type Here is a simple fix. Signed-off-by: Amos Waterland Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 656da9da3745abcbbbdca598745d04c6de2c8843 tree f18072653649eb5bae6823a2d5ec22d62e60462b parent 1029d6b58adc3225911c56af26895871dd2ea8cf author Pekka Enberg Thu, 22 Sep 2005 00:48:11 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:24 -0700 [PATCH] PCI: convert kcalloc to kzalloc This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 1029d6b58adc3225911c56af26895871dd2ea8cf tree 88168e6762dbb15e3198ee9a874b856a748275e1 parent dba28010b27ab56d2c4cec5f361e0947295addfd author Bjorn Helgaas Thu, 22 Sep 2005 00:48:02 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:24 -0700 [PATCH] PCI: remove unused "scratch" Unused variable. Signed-off-by: Bjorn Helgaas Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit dba28010b27ab56d2c4cec5f361e0947295addfd tree 2cf6a6acdaf2012ec5526c8bfd3af10f56c7e317 parent 3e51377dc412df9d4933c4fd1a147b5b560abe10 author Greg Kroah-Hartman Thu, 22 Sep 2005 00:47:46 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:24 -0700 [PATCH] I2C: remove me from the MAINTAINERS file for i2c Remove my name from the I2C maintainer, Jean is more than capable of handling it all now. Signed-off-by: Greg Kroah-Hartman Signed-off-by: Jean Delvare Signed-off-by: Linus Torvalds commit 3e51377dc412df9d4933c4fd1a147b5b560abe10 tree 2a73926a882a883f82b1066d9e72fd0962d58237 parent d305ef5d2a4e77bfa66160513f4a7494126a506b author Bill Nottingham Thu, 22 Sep 2005 00:47:36 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:24 -0700 [PATCH] fix class symlinks in sysfs The class symlinks in sysfs don't properly handle changing device names. To demonstrate, rename your network device from eth0 to eth1. Your pci (or usb, or whatever) device will still have a 'net:eth0' link, except now it points to /sys/class/net/eth1. The attached patch makes sure the class symlink name changes when the class device name changes. It isn't 100% correct, it should be using sysfs_rename_link. Unfortunately, sysfs_rename_link doesn't exist. Signed-off-by: Bill Nottingham Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit d305ef5d2a4e77bfa66160513f4a7494126a506b tree f70f435571fb6c4d520fea0f3c769a2a6df73f84 parent 4c898c7f2f286b204fefc5dddb568f755d195d0c author Daniel Ritz Thu, 22 Sep 2005 00:47:24 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:24 -0700 [PATCH] driver core: add helper device_is_registered() add the helper and use it instead of open coding the klist_node_attached() check (which is a layering violation IMHO) idea by Alan Stern. Signed-off-by: Daniel Ritz Cc: Alan Stern Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit 4c898c7f2f286b204fefc5dddb568f755d195d0c tree 026fead9aef220a5fd994e2eaa269ed598651d39 parent 0b50f81d5a63428f131ff20596f4e3d473e5b94f author Daniel Ritz Thu, 22 Sep 2005 00:47:11 -0700 committer Linus Torvalds Thu, 22 Sep 2005 07:58:24 -0700 [PATCH] Driver Core: fis bus rescan devices race bus_rescan_devices_helper() does not hold the dev->sem when it checks for !dev->driver(). device_attach() holds the sem, but calls again device_bind_driver() even when dev->driver is set. What happens is that a first device_attach() call (module insertion time) is on the way binding the device to a driver. Another thread calls bus_rescan_devices(). Now when bus_rescan_devices_helper() checks for dev->driver it is still NULL 'cos the the prior device_attach() is not yet finished. But as soon as the first one releases the dev->sem the second device_attach() tries to rebind the already bound device again. device_bind_driver() does this blindly which leads to a corrupt driver->klist_devices list (the device links itself, the head points to the device). Later a call to device_release_driver() sets dev->driver to NULL and breaks the link it has to itself on knode_driver. Rmmoding the driver later calls driver_detach() which leads to an endless loop 'cos the list head in klist_devices still points to the device. And since dev->driver is NULL it's stuck with the same device forever. Boom. And rmmod hangs. Very easy to reproduce with new-style pcmcia and a 16bit card. Just loop modprobe ;cardctl eject; rmmod . Easiest fix is to check if the device is already bound to a driver in device_bind_driver(). This avoids the double binding. Signed-off-by: Daniel Ritz Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds commit e86ee6682b649183c11013a98be02f25e9ae399d tree d51c0d04e5a777ae6805a1193d2ab252ecc97263 parent 17b14451fd2b187ddd6303726755a3af0a926b6c author Andy Currid Mon, 19 Sep 2005 06:17:52 -0700 committer Jeff Garzik Wed, 21 Sep 2005 22:52:19 -0400 [PATCH] Add NVIDIA device ID in sata_nv Signed-off-by: Andy Currid Signed-off-by: Jeff Garzik commit 0b50f81d5a63428f131ff20596f4e3d473e5b94f tree afb7d2f8382bb7798e90d88d6a690e63b5dfeb92 parent 383181ac7e59542ff47e2b81f7e4c40aba39b30b author Tommy Christensen Wed, 21 Sep 2005 12:13:57 -0700 committer Jeff Garzik Wed, 21 Sep 2005 22:49:07 -0400 [PATCH] r8169: call proper VLAN receive function vlan_hwaccel_rx should be used when in interrupt context. Fixes bug http://bugzilla.kernel.org/show_bug.cgi?id=5284 Signed-off-by: Tommy S. Christensen Cc: Francois Romieu Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik commit 383181ac7e59542ff47e2b81f7e4c40aba39b30b tree a738880a7da8c987aa0c0b09af4966bbdfb951dd parent c3f8be961808313a502c67d59e2b7f930477faf3 author Stephen Hemminger Mon, 19 Sep 2005 15:37:16 -0700 committer Jeff Garzik Wed, 21 Sep 2005 22:32:50 -0400 [PATCH] skge: check length from PHY Cleanup receive buffer allocation and management, Add more error handling checks from PHY and bump version. Signed-off-by: Jeff Garzik commit c3f8be961808313a502c67d59e2b7f930477faf3 tree 67893c2d9b1aa45740317c53b164d90fe49e239f parent 552709d5aee9145f325bf07348fb299e84b2e5b3 author Stephen Hemminger Mon, 19 Sep 2005 15:37:34 -0700 committer Jeff Garzik Wed, 21 Sep 2005 22:32:50 -0400 [PATCH] skge: expand ethtool debug register dump Expand the returned data for ethtool debug access to include all of the mapped PCI area; except for the small set of registers that are for diagnostic RAM access. Access to those registers will hang the system. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik commit 552709d5aee9145f325bf07348fb299e84b2e5b3 tree e2087d962b5f2b6b74ea58c842a28d242a422edd parent efb0372bbaf5b829ff8c39db372779928af542a7 author nsxfreddy@gmail.com Wed, 21 Sep 2005 14:18:04 -0500 committer Jeff Garzik Wed, 21 Sep 2005 22:23:13 -0400 [PATCH] bonding: Fix link monitor capability check (was skge: set mac address oops with bonding) Fix bond_enslave link monitoring warning to check use_carrier status and ethtool_ops in addition to do_ioctl. This version checks ethtool_ops as well as do_ioctl, and also uses the per-bond params.use_carrier instead of the global use_carrier. Signed-off-by: Jason R. Martin Signed-off-by: Jeff Garzik commit efb0372bbaf5b829ff8c39db372779928af542a7 tree bd45777341bb85727ee4c301bb8e44d73c2554ac parent a46c9047642d70f5619e4a14129d74dd1f6ea74f author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:40:49 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:30 -0700 [PATCH] uml: fix compile warning after consolidation patch The header declaring this function wasn't included, so the function declaration was totally bogus wrt. the proto - even if this wasn't going to fail at all. It was so bad that the compile warning I got was "control reaches end of non-void function", i.e. missing return. Actually, this has been there for ages, the consolidation patch just added the warning which was needed to clean it up. Nice. Really. Cc: Allan Graves Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit a46c9047642d70f5619e4a14129d74dd1f6ea74f tree 1d0850d57ad6c3d109c700c071e7cd468306a1e8 parent ae756df8ddd00a30bb3bdf6774b514c096dda4a4 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:40:29 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:30 -0700 [PATCH] uml: comment about cast build fix Explain why the casting we do to silence this warning is indeed safe. It is because the field we're casting from, though being 64-bit wide, was filled with a pointer in first place by ourselves. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit ae756df8ddd00a30bb3bdf6774b514c096dda4a4 tree ba7bade58318a6fe1ff645e4edb349e0bfef5394 parent 41c79dc3825545d9aa2d5e5b1a99f8faabf51455 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:40:10 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:30 -0700 [PATCH] uml: readd removed unistd.h inclusion Readd this header (deleted in 60d339f6fe0831060600c62418b71a62ad26c281). A warning is spit out here about undeclared getpgrp(). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit 41c79dc3825545d9aa2d5e5b1a99f8faabf51455 tree 52e160a072f238eac8506ed95cfd21ab0c7eb75b parent fd7481047882eaa0a692a545d5f8419612ece1b0 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:39:47 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:30 -0700 [PATCH] uml: fix bogus HOST_ELF_CLASS symbol name Even if with a bit of misunderstanding, Al fixed this in commit 95608261dae863bc43292e6fbd946a3abd3aa49f. Well, the symbol was intended to come from userspace (it exists there on normal host), but since some hosts may miss that, using the kernel one is just as fine. However, rename it to be named consistently with the rest. Actually, he missed converting ELFCLASS32 to coming from kernel headers. For consistence, add ELFCLASS64 too. Cc: Al Viro Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit fd7481047882eaa0a692a545d5f8419612ece1b0 tree af6c5283673881234f9f7615472b0d417ee6ca8f parent 8e5cb35a60c8792ffc3ba89ea66ebdd3c2f01cb1 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:39:32 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:30 -0700 [PATCH] uml: Fix conflict between libc and ipv6 gcc is now complaining during link on some hosts - fix it as for other things. Reported by Antoine Martin . Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit 8e5cb35a60c8792ffc3ba89ea66ebdd3c2f01cb1 tree 85d8b8f9926a765e96024bd8f0d08bf0e6de08e0 parent 36decba90b184a25b7f77fb7df1612125cc41ac5 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:39:14 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:30 -0700 [PATCH] uml: fix uname output on 32-bit binary on 64-bit host Translate uname output taken from the host if needed. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit 36decba90b184a25b7f77fb7df1612125cc41ac5 tree adaf26bbb1306a0d3b52c983b9fa9e5b57b780a5 parent 76629ac154aacfec8883954c3ff9871905d2fb8e author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:38:57 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:29 -0700 [PATCH] uml: fix modify_ldt - missing break in switch I am a lamer :-(. Luckily, Luo Xin performed LTP testing and found this failure. Btw, the fact that the patch in which I introduced this was merged shows that: a) I'm really trusted by people b) sometimes they're wrong about point a). c) lack of time for reviewers. CC: Luo Xin Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit 76629ac154aacfec8883954c3ff9871905d2fb8e tree 76cf6da4fe5493e463ccccd2b80b65608c9a4db9 parent 676067cfeaa16f6f338e067e83ce4733b41c0b24 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:38:33 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:29 -0700 [PATCH] uml: remove verify_area_{tt,skas} When removing verify_area, verify_area_{tt,skas} were forgotten. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit 676067cfeaa16f6f338e067e83ce4733b41c0b24 tree 4468541d1b970fc240c115b69d894443d3ed564c parent c51179fb0c77ad91df5825f8f7eb670da97e137e author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:38:09 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:29 -0700 [PATCH] Remove unused var from asm/futex.h As recently done by Russell King for ARM, commit 4732efbeb997189d9f9b04708dc26bf8613ed721 introduces a generic asm/futex.h copied along most arches, which includes a "-ENOSYS support" to be changed if needed. However, it includes an unused var (taken from the "real" version) which GCC warns about. Remove it from all arches having that file version (i.e. same GIT id). $ git-diff-tree -r HEAD and $ git-ls-tree -r HEAD include/|grep 9feff4ce1424bc390608326240be369eb13aa648 may be more interesting than looking at the patch itself, to make sure I've just copied the arm header to all other archs having the original dummy version of this file. Cc: Jakub Jelinek Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit c51179fb0c77ad91df5825f8f7eb670da97e137e tree e1f4b8abef1caf0be32a6d777074fd84a80ef165 parent f62378fcfc9c13a57b0b69dbd43336a4df8155a5 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 18:37:14 +0200 committer Linus Torvalds Wed, 21 Sep 2005 16:16:29 -0700 [PATCH] uml: adapt asm/futex.h to our arch Follow up to 4732efbeb997189d9f9b04708dc26bf8613ed721 - uml must just reuse as-is the backing architecture support. There is a micro-fixup is needed for the included file, which won't affect i386 behaviour at all. I've not tested compilation on x86_64, only on x86, but the code is almost the same except the culprit test, so everything should be ok on x86_64 too. Cc: Jakub Jelinek Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Linus Torvalds commit f62378fcfc9c13a57b0b69dbd43336a4df8155a5 tree b2682850f0d15079e0618ee09a23ba7ee71df55b parent a418500b42c5c54f3f9d68036950c701740a2765 parent 6a1ced59b3ac5d1088f597fd0613a724cdf19e2c author Linus Torvalds Wed, 21 Sep 2005 14:30:37 -0700 committer Linus Torvalds Wed, 21 Sep 2005 14:30:37 -0700 Merge master.kernel.org:/home/rmk/linux-2.6-arm commit 6a1ced59b3ac5d1088f597fd0613a724cdf19e2c tree 8165b4ab26e448b2bd1a54a460a007521f1d5661 parent a9f7baf4d695dbe3028d40ca374c1d11499eaee6 author Catalin Marinas Wed, 21 Sep 2005 22:14:05 +0100 committer Russell King Wed, 21 Sep 2005 22:14:05 +0100 [ARM] 2932/1: Avoid the "noreturn" warning in arch/arm/kernel/traps.c Patch from Catalin Marinas This patch prevents the "noreturn function does return" warning in the __bug() function in arch/arm/kernel/traps.c Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit a418500b42c5c54f3f9d68036950c701740a2765 tree 17541c0ab858c3251a4e0ef802a9ac74f425943e parent 62a36c43c898d45efcfe3376ea1da6a9a182e1ad parent f2065e4242e5078d53c521b973c5cd4eae91eca2 author Linus Torvalds Wed, 21 Sep 2005 13:21:35 -0700 committer Linus Torvalds Wed, 21 Sep 2005 13:21:35 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband commit f2065e4242e5078d53c521b973c5cd4eae91eca2 tree 08cd44403ac326f41715e918f781d077367cb70b parent 972d512a17c1bb7c4b784a9da2ca75745fcc6989 author Hal Rosenstock Wed, 21 Sep 2005 12:33:09 -0700 committer Roland Dreier Wed, 21 Sep 2005 12:33:09 -0700 [IB] Fix RMPP receive length calculation Based on simplification idea from Sean Hefty Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier commit 972d512a17c1bb7c4b784a9da2ca75745fcc6989 tree 91eb1a1a0c1affe19e23b15069b6a5fd86d3ca72 parent 2fe9f798ba3cf7c939e638b78f46975e79039978 author Sean Hefty Wed, 21 Sep 2005 12:31:26 -0700 committer Roland Dreier Wed, 21 Sep 2005 12:31:26 -0700 [IB] Add MAD data field size definitions Clean up code by using enums instead of hard-coded magic numbers. Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier commit 62a36c43c898d45efcfe3376ea1da6a9a182e1ad tree 3d2e39625a2ca620ef71433cf100ff51a225438b parent 89d7cbf73e1a85241eb42339f6cb7a429fec178c author Stephane Kardas Wed, 21 Sep 2005 09:55:45 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:12:18 -0700 [PATCH] fat: fix adate During a forensic analysis on the fat file system, I found than the result for the last access date on this file system was different between the stat command and the istat command (package tct-utils). The istat command display a true date (the right windows date) but the stat primitive (so stat, find, ls command) displays a wrong date. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 89d7cbf73e1a85241eb42339f6cb7a429fec178c tree e74da41540922732f5d1d4f236c890c019545262 parent 7980cbbb30bf044e6f40912a3f6456204ddfc27e author Randy Dunlap Wed, 21 Sep 2005 09:55:44 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:12:18 -0700 [PATCH] update URL for HPET spec. Correct URL for HPET spec. Signed-off-by: Randy Dunlap Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7980cbbb30bf044e6f40912a3f6456204ddfc27e tree 8bd1ccb91431f1c81ab5980a5cc8474f1d490136 parent 4b1ac9ab15c1fc1e0b73d887a0c0cafe92991f97 author Eric Dumazet Wed, 21 Sep 2005 09:55:43 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:12:18 -0700 [PATCH] Adds sys_set_mempolicy() in include/linux/syscalls.h Signed-off-by: Eric Dumazet Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4b1ac9ab15c1fc1e0b73d887a0c0cafe92991f97 tree 60d469d5c1ebc67da4f14380804bd1b721ac840a parent 8f91648dcb0685d58aa046b25c69ce0d5f284f8c author Stephen Hemminger Wed, 21 Sep 2005 09:55:41 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:55 -0700 [PATCH] skge: add maintainer Add MAINTAINER record for Andrew ;-) Signed-off-by: Stephen Hemminger Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8f91648dcb0685d58aa046b25c69ce0d5f284f8c tree 728475d2e8a2a4c92bf251657daa7287e5bb36e2 parent 7e2cff42cfac27c25202648c5c89f9171e5bc085 author Christoph Hellwig Wed, 21 Sep 2005 09:55:40 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:55 -0700 [PATCH] fixup Documentation/DocBook/kernel-hacking.tmpl __FUNCTION__ is the prefered kernel idiom, __func__ is not supported by gcc 2.95 (we actually map __FUNCTION__ to __func__ for more recent compilers, but it should never be used directly) Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7e2cff42cfac27c25202648c5c89f9171e5bc085 tree 5579fa13b1fc8081201f05d687e6dc795d9d648f parent 7e871b6c8f1f4fda41e51ef86147facecac3be9f author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 09:55:39 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:55 -0700 [PATCH] mm: add a note about partially hardcoded VM_* flags Hugh made me note this line for permission checking in mprotect(): if ((newflags & ~(newflags >> 4)) & 0xf) { after figuring out what's that about, I decided it's nasty enough. Btw Hugh itself didn't like the 0xf. We can safely change it to VM_READ|VM_WRITE|VM_EXEC because we never change VM_SHARED, so no need to check that. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7e871b6c8f1f4fda41e51ef86147facecac3be9f tree d03c9af90786ea7fa8f5e77ce1e71437ab7de4df parent f875a1a6650edce859bd21051a22e1c27ac7ea63 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 09:55:38 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:55 -0700 [PATCH] mm: update stale comment for removal of page->list Update comment for the 2.6.6-rc1 conversion from page->list and address_space->{clean,dirty,locked}_pages to radix tree tagging and ->lru. I've mostly avoided to mention page lists (at least I've shortened the comment). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f875a1a6650edce859bd21051a22e1c27ac7ea63 tree 7244466f1ed3caf93a8a9fd955b4f365ce39299e parent f10df6860498c7f52db4f00ff00a1ba334bcfea0 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 09:55:37 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:55 -0700 [PATCH] README update from the stone age We have no options which the user can set in the Makefile. Only the EXTRAVERSION, which is also useful in place of the "backup modules" suggestion. We don't have configuration options in the top Makefile. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f10df6860498c7f52db4f00ff00a1ba334bcfea0 tree aa1a75645a002e869886aaae9d09d332a69f8bba parent 8b20f6da20d874a58becc7a08b130c4382ea7325 author Paolo 'Blaisorblade' Giarrusso Wed, 21 Sep 2005 09:55:37 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:55 -0700 [PATCH] fix locking comment in unmap_region() That comment is plain wrong (we even take the pagetable lock inside unmap_region()). Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8b20f6da20d874a58becc7a08b130c4382ea7325 tree 351214ad8719c6d46291d21b212996db46aef0dd parent 40da47e1159b89f2df5c718d2d5e269ced72b541 author Deepak Saxena Wed, 21 Sep 2005 09:55:35 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] Fix I2O config-osm init to return proper error We currently unregister the config-osm driver if initialization of the legacy ioctl() handlers failed but still return success. We should be returning -EBUSY in this case. Signed-off-by: Deepak Saxena Cc: Markus Lidel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 40da47e1159b89f2df5c718d2d5e269ced72b541 tree 9051017d52f9354670cd5a18b8804c4249328305 parent bbcc6bee9e5bf45ec35e87a4e0755dff09fe25d4 author Benjamin Herrenschmidt Wed, 21 Sep 2005 09:55:34 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] ppc64: Build zImage.vmode for G5 zImage.vmode was recently added. It's a version of zImage in which the ELF note section used by open firmware indicates that it requires a virtual mode instance of OF instead of real mode. This allows it to work with Apple OF, and thus is directly bootable (or netbootable) from OF command line. (Unfortunately, pSeries OF sort-of requires real mode and Apple OF sort-of requires virtual mode, and both tend to be unhappy if no notes section specifies the mode at all). However, we forgot to add zImage.vmode to the default G5 build. This fixes it. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bbcc6bee9e5bf45ec35e87a4e0755dff09fe25d4 tree 1408c9d960ffca08e8f053cec060cf52ab0f352d parent 1bc2a3bb86688ffca691ba2ad30a2d5dcba774cf author Christoph Hellwig Wed, 21 Sep 2005 09:55:33 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] remove blkdev_scsi_issue_flush_fn again This function was removed a while ago, but crept in again via a recent scsi merge. Signed-off-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1bc2a3bb86688ffca691ba2ad30a2d5dcba774cf tree 09e8f19669e0494cd3464b0d5babebf259778c30 parent d6dbf42ee36d4f9ffc2a93877c19937c81974124 author Anton Blanchard Wed, 21 Sep 2005 09:55:33 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] ppc64: Fix issue with non zero boot cpu The new version of the flattened device tree passes the boot cpuid in the header instead of via a linux,boot-cpu property. We need to update the in kernel OF parsing code to do this, otherwise machines with a non zero boot cpuid fail to come up. Signed-off-by: Anton Blanchard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d6dbf42ee36d4f9ffc2a93877c19937c81974124 tree f7896850214230318c504b58f81cdbab5401ca96 parent 3c2822ccb1f8cc96fc006aa82e68e1944290014a author Mike Miller Wed, 21 Sep 2005 09:55:32 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] cciss: busy_initializing bug fix This patch fixes the problem Bjorn reported. The busy_initializing flag should have cleared before going into the for loop. Signed-off-by: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3c2822ccb1f8cc96fc006aa82e68e1944290014a tree 3834b0004ef12b96f699529ca8008a0644531fa3 parent 31f6d9d628739c097964b8dbae939ea997da94a3 author Olof Johansson Wed, 21 Sep 2005 09:55:31 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] PPC64: Fix boot for some pre-POWER4 systems Some RS64 systems (such as F80) have non-python host bridges with EADS. However, they have two EADS with 4 buses each under them, so the old logic that assumed no more than 7 busses per PHB failed miserably. Big thanks to Olaf Hering for helping me test this, he's got one of the few machines that broke from the previous logic. Also, to be a bit smarter at detecting the need for a PHB-level IOMMU table by checking for the presence of an ISA bus. Only PHBs with ISA bridges should need the PHB-level table. Signed-off-by: Olof Johansson Cc: Anton Blanchard Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 31f6d9d628739c097964b8dbae939ea997da94a3 tree a559531440fbf6685e68ebce5f5a26695ae7d5d9 parent 66dcca062847bcd261ebb3ac96d51101f31a8630 author Andrew Morton Wed, 21 Sep 2005 09:55:30 -0700 committer Linus Torvalds Wed, 21 Sep 2005 10:11:54 -0700 [PATCH] Add printk_clock() ia64's sched_clock() accesses per-cpu data which isn't set up at boot time. Hence ia64 cannot use printk timestamping, because printk() will crash in sched_clock(). So make printk() use printk_clock(), defaulting to sched_clock(), overrideable by the architecture via attribute(weak). Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66dcca062847bcd261ebb3ac96d51101f31a8630 tree 12f23a499ae0af8107d0c4a3afcff75e6697fa3b parent d79e743e9fcf03f521300a970eb1ab69641910ba author Sripathi Kodi Mon, 19 Sep 2005 18:26:12 -0500 committer Linus Torvalds Wed, 21 Sep 2005 09:15:34 -0700 [PATCH] Fix invisible threads problem When the main thread of a thread group has done pthread_exit() and died, the other threads are still happily running, but will not be visible under /proc because their leader is no longer accessible. This fixes the access control so that we can see the sub-threads again. Signed-off-by: Sripathi Kodi Acked-by: Al Viro Signed-off-by: Linus Torvalds commit d79e743e9fcf03f521300a970eb1ab69641910ba tree 9672cd40a47d1791d906c0c5d3990f7274a20ff9 parent 2fe9f798ba3cf7c939e638b78f46975e79039978 author Paul Mackerras Wed, 21 Sep 2005 14:14:22 +1000 committer Linus Torvalds Wed, 21 Sep 2005 09:15:34 -0700 [PATCH] ppc64: Fix PCI flags when using OF device tree My code to set up the PCI tree from the Open Firmware device tree was setting IORESOURCE_* flags on the resources for the devices, but not the PCI_BASE_ADDRESS_* flags. This meant that some drivers misbehaved, and /proc/pci showed the wrong types for the resources. This fixes it. Signed-off-by: Paul Mackerras Signed-off-by: Linus Torvalds commit 2fe9f798ba3cf7c939e638b78f46975e79039978 tree f65153c806f68bd6e965d65d7c7e4104b27fff90 parent 76abf3e71c5a4d315ec95e23e5aedd15fbfcd6df parent a131430c200f6bda313bf5d0a8e238c41afdfe0a author Linus Torvalds Wed, 21 Sep 2005 07:53:38 -0700 committer Linus Torvalds Wed, 21 Sep 2005 07:53:38 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 commit 76abf3e71c5a4d315ec95e23e5aedd15fbfcd6df tree 396d39575c2e1bb43f0e5794969814cdb2387909 parent d90d4392b395083a7d295b7cdf0edfd849d4c2a3 parent 7957aed72b104f7528da484f292442c6f3a131a1 author Linus Torvalds Wed, 21 Sep 2005 07:53:05 -0700 committer Linus Torvalds Wed, 21 Sep 2005 07:53:05 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 commit a131430c200f6bda313bf5d0a8e238c41afdfe0a tree c156cf5e4b65af0ad7bd2f5828e7697884a3c358 parent 1a3e64aa480101d11d8cac94ca57fd8bbe2536b7 author Christopher Zimmermann Wed, 21 Sep 2005 00:41:22 -0700 committer David S. Miller Wed, 21 Sep 2005 00:41:22 -0700 [SPARC] cs4231: Fix SBUS support in this driver. From: Christopher Zimmermann This patch enables SBus support for the cs4231 sound driver. It is tested on an Ultra2. Capture and playback both work. I experienced lags and crashes using certain threaded players like ogg123 and mp3blaster, while the former is lagging far more. This behavior may be specific to SMP systems. It is reproducable using the dummy sound card driver. Sox works flawlessly. Setting up the calculation of ptr in snd_cs4231_playback_pointer was a bit strange. I got it to work by not incrementing the [pc]_periods_sent counter when starting DMA the first time in cs4231_dma_trigger. Therefore this dummy thing. [ I did some minor cleanups -DaveM ] Signed-off-by: David S. Miller commit 1a3e64aa480101d11d8cac94ca57fd8bbe2536b7 tree 371ca21e83c83ccabe48484f9f62078232d4660a parent 729b4f7de68191478b20fab19a6d0c6b8c4380c9 author Tom 'spot' Callaway Wed, 21 Sep 2005 00:29:16 -0700 committer David S. Miller Wed, 21 Sep 2005 00:29:16 -0700 [ATYFB]: Fix build with CONFIG_FB_ATY_GENERIC_LCD disabled. Signed-off-by: Tom 'spot' Callaway Signed-off-by: David S. Miller commit 7957aed72b104f7528da484f292442c6f3a131a1 tree be24b967df59eefbdf3eacc5d8891f14225dd44b parent 78c6671a88313fd3c4364dc46e8c8186612616b8 author Stephen Hemminger Wed, 21 Sep 2005 00:19:46 -0700 committer David S. Miller Wed, 21 Sep 2005 00:19:46 -0700 [TCP]: Set default congestion control correctly for incoming connections. Patch from Joel Sing to fix the default congestion control algorithm for incoming connections. If a new congestion control handler is added (via module), it should become the default for new connections. Instead, the incoming connections use reno. The cause is incorrect initialisation causes the tcp_init_congestion_control() function to return after the initial if test fails. Signed-off-by: Stephen Hemminger Acked-by: Ian McDonald Signed-off-by: David S. Miller commit 78c6671a88313fd3c4364dc46e8c8186612616b8 tree 55ad469a2f178eb7a0172daf06798a356aa314f9 parent 0fb375fb9b93b7d822debc6a734052337ccfdb1f author Stephen Hemminger Wed, 21 Sep 2005 00:15:39 -0700 committer David S. Miller Wed, 21 Sep 2005 00:15:39 -0700 [FIB_TRIE]: message cleanup Cleanup the printk's in fib_trie: * Convert a couple of places in the dump code to BUG_ON * Put log level's on each message The version message really needed the message since it leaks out on the pretty Fedora bootup. Signed-off-by: Stephen Hemminger Acked-by: Robert Olsson , Signed-off-by: David S. Miller commit 0fb375fb9b93b7d822debc6a734052337ccfdb1f tree 0aec28fa88b0b83e2101e1eee4c7c66ae10b5301 parent 6d67e34de5a378de2f461137944c5d931283d557 author Eric W. Biederman Wed, 21 Sep 2005 00:11:37 -0700 committer David S. Miller Wed, 21 Sep 2005 00:11:37 -0700 [AF_PACKET]: Allow for > 8 byte hardware addresses. The convention is that longer addresses will simply extend the hardeware address byte arrays at the end of sockaddr_ll and packet_mreq. In making this change a small information leak was also closed. The code only initializes the hardware address bytes that are used, but all of struct sockaddr_ll was copied to userspace. Now we just copy sockaddr_ll to the last byte of the hardware address used. For error checking larger structures than our internal maximums continue to be allowed but an error is signaled if we can not fit the hardware address into our internal structure. Signed-off-by: Eric W. Biederman Signed-off-by: David S. Miller commit d90d4392b395083a7d295b7cdf0edfd849d4c2a3 tree ca223472e3a125fdc83d0d316d144529f0f18195 parent 6d67e34de5a378de2f461137944c5d931283d557 parent 71eea47d853bb0ce0c6befe11b3e08111263170f author Linus Torvalds Tue, 20 Sep 2005 17:38:51 -0700 committer Linus Torvalds Tue, 20 Sep 2005 17:38:51 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband commit 6d67e34de5a378de2f461137944c5d931283d557 tree ef559dbcbb3c2336f13f2b1d8d5995abca137000 parent 7a482425f45e695a2e2821b32a887865f016fbf9 author Antonino A. Daplas Wed, 21 Sep 2005 07:32:49 +0800 committer Linus Torvalds Tue, 20 Sep 2005 17:36:38 -0700 [PATCH] fbdev: Fix reversed back and front porches In fbdev perspective, the frontporch is the lower/right margin and the backporch is the upper/left margin. Correct. Signed-off-by: Antonino Daplas Signed-off-by: Linus Torvalds commit 7a482425f45e695a2e2821b32a887865f016fbf9 tree d368ef974461fd071bf0d6c48f96b3cdff6b58f2 parent c90eef84b8f5c7416cb99ab6907896f2dd392b4d author Antonino A. Daplas Wed, 21 Sep 2005 07:30:21 +0800 committer Linus Torvalds Tue, 20 Sep 2005 17:36:38 -0700 [PATCH] nvidiafb: Fix absence of cursor in nvidiafb A recent change in nvidiafb caused nvidiafb_cursor to always return -ENXIO instead of using the soft_cursor. This will happen if the parameter "hwcur" is not set, which happens to be the default. Signed-off-by: Antonino Daplas Signed-off-by: Linus Torvalds commit a9f7baf4d695dbe3028d40ca374c1d11499eaee6 tree 9696d31ce6d599f2b65979f0e5c09048cc791ab7 parent 840ff6a4f6174d7fe19c206b5f36ff64123a2f45 author Russell King Tue, 20 Sep 2005 21:01:13 +0100 committer Russell King Tue, 20 Sep 2005 21:01:13 +0100 [ARM] Fix pcf8583 to build Seems that the Acorn RTC driver missed an update. Fix it. Signed-off-by: Russell King commit 438282d85de2c8f8c5183fdf55140e51a0b18670 tree ee90f834ebbf60d45b11d48c4a3fac82a1b62752 parent 6cb1269b9607649b5edf1c4e7818e0cf34a9db71 author Dave Kleikamp Tue, 20 Sep 2005 14:58:11 -0500 committer Dave Kleikamp Tue, 20 Sep 2005 14:58:11 -0500 JFS: don't dereference tlck->ip from txUpdateMap The inode pointer may no longer be valid Signed-off-by: Dave Kleikamp commit 729b4f7de68191478b20fab19a6d0c6b8c4380c9 tree c3515037d7797643a6f83e2331ab9d2cd1dd1f64 parent 6a9b490d5fd7f23c5bcd75f970e01633ad3136e3 author David S. Miller Tue, 20 Sep 2005 12:18:38 -0700 committer David S. Miller Tue, 20 Sep 2005 12:18:38 -0700 [SPARC64]: Verify vmalloc TLB misses more strictly. Arrange the modules, OBP, and vmalloc areas such that a range verification can be done quite minimally. Signed-off-by: David S. Miller commit 71eea47d853bb0ce0c6befe11b3e08111263170f tree ff675d57b8d3dc6688a2016b41b0d41b54611231 parent 8d2cae0651502028bf64844508ab18528bbd65c2 author Michael S. Tsirkin Tue, 20 Sep 2005 10:54:48 -0700 committer Roland Dreier Tue, 20 Sep 2005 10:54:48 -0700 [PATCH] IB/mthca: Fix device removal memory leak Clean up QP table array on device removal. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit 8d2cae0651502028bf64844508ab18528bbd65c2 tree 6e166a94e5f581c683d2b29e792665082b21afd5 parent eff4c654b1a4a5e5493fbdc3affa6dd48765c085 author Roland Dreier Tue, 20 Sep 2005 10:52:04 -0700 committer Roland Dreier Tue, 20 Sep 2005 10:52:04 -0700 [PATCH] IPoIB: Don't flush workqueue from within workqueue ipoib_mcast_restart_task() is always called from within the single-threaded IPoIB workqueue, so flushing the workqueue from within the function can lead to a recursion overflow. But since we're running in a single-threaded workqueue, we're already synchronized against other items in the workqueue, so just get rid of the flush in ipoib_mcast_restart_task(). Signed-off-by: Roland Dreier commit 840ff6a4f6174d7fe19c206b5f36ff64123a2f45 tree 1b66816135fad5a97d5ea0862b95341278f4227f parent 5fe10ab19046d84f3fd243436cbd5fa01019e809 author Russell King Tue, 20 Sep 2005 17:52:13 +0100 committer Russell King Tue, 20 Sep 2005 17:52:13 +0100 [ARM] Prevent deadlock in page fault handler As per x86, we may deadlock while trying to get the mmap semaphore. Implement the same fix, which allows (eg) recursive faults to cause an oops instead of deadlocking. Signed-off-by: Russell King commit 5fe10ab19046d84f3fd243436cbd5fa01019e809 tree 3b79a956940cf021801f9c8ae757d77b996c4355 parent 9d0fd1eb8a3c19f3ede5418540b3c9f64fac4b86 author Ben Dooks Tue, 20 Sep 2005 17:24:33 +0100 committer Russell King Tue, 20 Sep 2005 17:24:33 +0100 [ARM] 2928/1: S3C2410 - make machine init code static Patch from Ben Dooks This code is not being exported, declare it static Signed-off-by: Ben Dooks Signed-off-by: Russell King commit c90eef84b8f5c7416cb99ab6907896f2dd392b4d tree 556a077afb13e93461601666ba9cb5dd83c4e554 parent 9600c11ba3602be161cd376f1460f3de561fc299 parent eed8b2dee7cff46dd4bf5b82dc53465d229162ba author Linus Torvalds Tue, 20 Sep 2005 08:54:33 -0700 committer Linus Torvalds Tue, 20 Sep 2005 08:54:33 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/aia21/ntfs-2.6 commit 9600c11ba3602be161cd376f1460f3de561fc299 tree d071c2427a8f7ad601aec6d8ae76b0f61410becf parent 676d55ae30ea3b688f0386f70553489f25f24d55 parent 13e1e1f08c1c098c7574c1fa72bd8c67792dc89b author Linus Torvalds Tue, 20 Sep 2005 08:50:49 -0700 committer Linus Torvalds Tue, 20 Sep 2005 08:50:49 -0700 Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6 commit 9d0fd1eb8a3c19f3ede5418540b3c9f64fac4b86 tree 2d25f3e3428c7d0310a596805448143db10e2c3b parent 02b7dd1244aab9267ae4078e1ad6a2fdaabeb6ed author Ben Dooks Tue, 20 Sep 2005 16:45:20 +0100 committer Russell King Tue, 20 Sep 2005 16:45:20 +0100 [ARM] 2927/1: .arch.info - postfix section with .init for `make buildcheck` Patch from Ben Dooks The `make buildcheck` is erroneously reporting that the .arch.info list is referencing items in the .init section as it is not itself postfixed with .init Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 02b7dd1244aab9267ae4078e1ad6a2fdaabeb6ed tree 27e3ee0cb242a58aca567537af5bc9c971904390 parent bfe6815e0465035d013b2b676444376fe2b3716e author Ben Dooks Tue, 20 Sep 2005 16:35:03 +0100 committer Russell King Tue, 20 Sep 2005 16:35:03 +0100 [ARM] 2926/1: .proc.info - postfix section with .init for `make buildcheck` Patch from Ben Dooks The `make buildcheck` is erroneously reporting that the .proc.info list is referencing items in the .init section as it is not itself postfixed with .init Signed-off-by: Ben Dooks Signed-off-by: Russell King commit bfe6815e0465035d013b2b676444376fe2b3716e tree 98666f80d1e828a1822009dabfc85d032358f322 parent 58dd48a6575d3ba86ba659eb8c6fc23246783fba author Ben Dooks Tue, 20 Sep 2005 16:25:12 +0100 committer Russell King Tue, 20 Sep 2005 16:25:12 +0100 [ARM] 2925/3: earlyparam - postfix section with .init for `make buildcheck` Patch from Ben Dooks The `make buildcheck` is erroneously reporting that the earlyparam list is referencing items in the .init section as it is not itself postfixed with .init Also, as per rmk's suggestion, rename the __early_param to .early_param to bring it into line with everything else Signed-off-by: Ben Dooks Signed-off-by: Russell King commit 58dd48a6575d3ba86ba659eb8c6fc23246783fba tree 81ea9d313a6df18fe1decbc6c9edc77d408bd8f1 parent 9506057fca54464f3291b62156e6cd907c4cbc95 author Vincent Sanders Tue, 20 Sep 2005 16:21:42 +0100 committer Russell King Tue, 20 Sep 2005 16:21:42 +0100 [ARM] 2922/1: compile fix for shark Patch from Vincent Sanders Shark platform fails to build with gcc 4 because of a bad lvalue assignement Signed-off-by: Vincent Sanders Signed-off-by: Russell King commit 9506057fca54464f3291b62156e6cd907c4cbc95 tree efbc13a3a992be184c50db9bba4e3f4e80600b21 parent 676d55ae30ea3b688f0386f70553489f25f24d55 author Ben Dooks Tue, 20 Sep 2005 16:20:49 +0100 committer Russell King Tue, 20 Sep 2005 16:20:49 +0100 [ARM] 2924/3: taglist - postfix section with .init for `make buildcheck` Patch from Ben Dooks The `make buildcheck` is erroneously reporting that the taglist is referencing items in the .init section as it is not itself postfixed with .init Signed-off-by: Ben Dooks Signed-off-by: Russell King commit eed8b2dee7cff46dd4bf5b82dc53465d229162ba tree 1508bedde4dda971c56dc30c7edf1e36bfbefc9e parent 676d55ae30ea3b688f0386f70553489f25f24d55 author Anton Altaparmakov Tue, 20 Sep 2005 14:19:30 +0100 committer Anton Altaparmakov Tue, 20 Sep 2005 14:19:30 +0100 NTFS: More runlist handling fixes from Richard Russon and myself. Signed-off-by: Anton Altaparmakov commit 6a9b490d5fd7f23c5bcd75f970e01633ad3136e3 tree dd3ad10d43a5dd765705f32ff1fca6fc1bab88fd parent e0487992ce1dd7ae7da9c6aabdb19570bb95432b author David S. Miller Mon, 19 Sep 2005 20:11:57 -0700 committer David S. Miller Mon, 19 Sep 2005 20:11:57 -0700 [SPARC64]: Move DCACHE_ALIASING_POSSIBLE define to asm/page.h This showed that arch/sparc64/kernel/ptrace.c was not getting the define properly, and thus the code protected by this ifdef was never actually compiled before. So fix that too. Signed-off-by: David S. Miller commit e0487992ce1dd7ae7da9c6aabdb19570bb95432b tree a2d748df1ae99d8f9e6c8e6055e9ef9a3153d1cf parent ff171d8f66a7fe1a000e610e9de11224749f9a22 author Ed L. Cashin Mon, 19 Sep 2005 19:57:36 -0700 committer David S. Miller Mon, 19 Sep 2005 19:57:36 -0700 [BYTEORDER]: Document alignment and byteorder macros This patch comments the fact that although passing le64_to_cpup et al. is within the intended use of the byteorder macros, using get_unaligned is the recommended way to go. Signed-off-by: Ed L. Cashin Signed-off-by: David S. Miller commit ff171d8f66a7fe1a000e610e9de11224749f9a22 tree 5cd542d07cb547d80bbf71fbd0e26df25d0895ea parent 875bd5ab01bc0b760fd4e97838931cd2e7456cbd author David S. Miller Mon, 19 Sep 2005 19:56:06 -0700 committer David S. Miller Mon, 19 Sep 2005 19:56:06 -0700 [SPARC64]: Handle little-endian unaligned loads/stores correctly. Because we use byte loads/stores to cons up the value in and out of registers, we can't expect the ASI endianness setting to take care of this for us. So do it by hand. This case is triggered by drivers/block/aoe/aoecmd.c in the ataid_complete() function where it goes: /* word 100: number lba48 sectors */ ssize = le64_to_cpup((__le64 *) &id[100<<1]); This &id[100<<1] address is 4 byte, rather than 8 byte aligned, thus triggering the unaligned exception. Signed-off-by: David S. Miller commit eff4c654b1a4a5e5493fbdc3affa6dd48765c085 tree 1ddbbdaa978b310f5ac11b9778ac8e5f775d0783 parent 6577ae51cf52f5fb0e4a85e673dd7bf2d0074e3e author Hal Rosenstock Mon, 19 Sep 2005 13:51:01 -0700 committer Roland Dreier Mon, 19 Sep 2005 13:51:01 -0700 [PATCH] IB: Fix data length for RMPP SA sends We need to subtract off the header length from our payload length when sending multi-packet SA messages. Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier commit 13e1e1f08c1c098c7574c1fa72bd8c67792dc89b tree aa07ca5b3ac4d21cf76b5f9aa8059334756f4c7f parent aef4a983090fa590481a86d9690dc3fa6bb121fa author Andreas Herrmann Mon, 19 Sep 2005 16:56:17 +0200 committer James Bottomley Mon, 19 Sep 2005 13:04:15 -0500 [SCSI] zfcp: add additional fc_host attributes this patch adds some fc host attributes and removes its equivalents from the zfcp_adapter structure and zfcp specific sysfs subtree. Furthermore it removes superfluous calls to fc_remort_port_delete when an adapter is set offline because rports will be removed by fc_remove_host anyway. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit aef4a983090fa590481a86d9690dc3fa6bb121fa tree 12b78b227102dc2f41dda227fe83f34a8838e015 parent 8a36e4532ea10471f0a8605207d071361d7be2c3 author Maxim Shchetynin Tue, 13 Sep 2005 21:51:16 +0200 committer James Bottomley Mon, 19 Sep 2005 13:03:45 -0500 [SCSI] zfcp: provide support for NPIV N_Port ID Virtualization (NPIV) allows a single FCP port to appear as multiple, distinct ports providing separate port identification. NPIV is supported by FC HBAs on System z9. zfcp was adapted to support this new feature. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 8a36e4532ea10471f0a8605207d071361d7be2c3 tree f34e5928de7d73b9aaf385f3fb0847a6c52c297b parent 810f1e3ea5cc0a812816af97020a27c73441f8e9 author Maxim Shchetynin Tue, 13 Sep 2005 21:50:38 +0200 committer James Bottomley Mon, 19 Sep 2005 13:03:00 -0500 [SCSI] zfcp: enhancement of zfcp debug features Debug features (DBFs) els_dbf, cmd_dbf and abt_dbf were removed and san_dbf, hba_dbf and scsi_dbf were introduced. The erp_dbf did not change. The new traces improve debugging of problems with zfcp, scsi-stack, multipath and hardware in the SAN. san_dbf traces things like ELS and CT commands, hba_dbf saves HBA specific information of requests, and scsi_dbf saves FCP and SCSI specific information of requests. Common to all new DBFs is that they provide a so called structured view. This significantly improves readability of the traces. Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 810f1e3ea5cc0a812816af97020a27c73441f8e9 tree 7f98b35f5dcf950d3835adde0a4854be141887ab parent 77eb1699c76177af2f3d65c8ae7934cf304e0254 author Andreas Herrmann Tue, 13 Sep 2005 21:49:52 +0200 committer James Bottomley Mon, 19 Sep 2005 13:02:21 -0500 [SCSI] zfcp: shorten eh_bus_reset and eh_host_reset handlers Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 77eb1699c76177af2f3d65c8ae7934cf304e0254 tree ac3f780aa91d63be314feee54f306d48d996b09c parent 059c97d0434834d291eff94669ca2dd3eaac9d28 author Andreas Herrmann Tue, 13 Sep 2005 21:48:33 +0200 committer James Bottomley Mon, 19 Sep 2005 13:01:53 -0500 [SCSI] zfcp: remove function zfcp_fsf_req_wait_and_cleanup Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 059c97d0434834d291eff94669ca2dd3eaac9d28 tree 70719559f65366c74eb82ee8c7c7a01a0d80aca9 parent 3734d24b2e8d85796de70c13705cfb7cbb1d77df author Andreas Herrmann Tue, 13 Sep 2005 21:47:52 +0200 committer James Bottomley Mon, 19 Sep 2005 13:01:23 -0500 [SCSI] zfcp: remove union zfcp_req_data, use unit refcount for FCP commands o union zfcp_req_data removed o increment unit refcount when processing FCP commands (This fixes a theoretical race: When all scsi commands of a unit are aborted and the scsi_device is removed then the unit could be removed before all fsf_requests of that unit are completely processed.) Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit 3734d24b2e8d85796de70c13705cfb7cbb1d77df tree c89ddff8f636bea1a33bc88873e40dc7d562be46 parent e0fc15bef0e8c6b5abad6e10cfe3d42e278ae8e8 author Andreas Herrmann Tue, 13 Sep 2005 21:47:11 +0200 committer James Bottomley Mon, 19 Sep 2005 13:00:50 -0500 [SCSI] zfcp: fix race conditions when accessing erp_action lists o always use locking when changing erp_action lists, o avoid escalation to ERP_ACTION_REOPEN_PORT_FORCED if erp_action is still in use for ERP_ACTION_REOPEN_PORT Signed-off-by: Andreas Herrmann Signed-off-by: James Bottomley commit e0fc15bef0e8c6b5abad6e10cfe3d42e278ae8e8 tree f7a96e8b93a0de251b25c2b6543c115eba3abc8c parent 466544d8898fc87ed6e2e62ac14af7c50ab7a1a4 author Moore, Eric Dean Thu, 15 Sep 2005 13:17:14 -0600 committer James Bottomley Mon, 19 Sep 2005 12:48:22 -0500 [SCSI] fusion SAS support (mptsas driver) minor fix On Thursday, September 15, 2005 6:22 AM, Christoph Hellwig wrote: > Looks good to me, except for the spurious scsi_print_command prototype > in mptscsih.h. The attached patch addresses that concern. Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 466544d8898fc87ed6e2e62ac14af7c50ab7a1a4 tree a23688bc1424a2af986482bac159768d625b5deb parent 0c33b27deb93178f10778b3d2669af1674793cef author Moore, Eric Dean Wed, 14 Sep 2005 18:09:10 -0600 committer James Bottomley Mon, 19 Sep 2005 12:45:38 -0500 [SCSI] fusion SAS support (mptsas driver) updates Summary of Changes: * splitting mpt_interrupt per Christophs suggestion about a month ago * rename ScsiCfgData to SpiCfgData structure, then move all the raid related info into new structure called RaidCfgData. This is done because SAS supports RAID, as well as SPI, so the raid stuff should be seperate. * incorrect timeout calculation for cntdn inside WaitForDoorbellAck and WaitForDoortbellInt * add support for interpreting SAS Log Info * Increase Event Log Size from 0xA to 0x32 * Fix bug in mptsas/mptfc/mptspi - when controller has Initiator Mode Disabled, and only running in TargetMode, the mptctl would panic when loading. The fix is to return 0, instead of -ENODEV, in SCSI LLD respective probe routines * Fix bug in mptlan.c - driver will panic if there is host reset, due to dev being set to zero in mpt_lan_ioc_reset * Fix's for SPI - Echo Buffer * Several fix's in mptscsih_io_done - FCP Response info, RESIDUAL_MISMATCH, Data Underrun, etc. * Cleanup Error Handling - EH handlers, mptscsih_flush_cmds, and zeroing out ScsiLookup from mptscsih_qcmd * Cleanup asyn event handling from mptscsih -> mptscsih_event_process. Also added support for SAS Persistent Table Full, an asyn event Signed-off-by: Eric Moore Signed-off-by: James Bottomley commit 0c33b27deb93178f10778b3d2669af1674793cef tree a16c7ce2f10947c696041febe89e13a98ba32b48 parent 82ffb67164064752a56669511545316075b41e1d author Christoph Hellwig Fri, 09 Sep 2005 16:27:19 +0200 committer James Bottomley Mon, 19 Sep 2005 12:42:57 -0500 [SCSI] fusion SAS support (mptsas driver) Adds the actual mptsas driver, based upon the LSI driver with new work for SAS transport class integration from Eric Moore and me. This obviously depends on the SAS transport class. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley commit 82ffb67164064752a56669511545316075b41e1d tree 7b5c92f76e25ddf66419668412db147cde35a410 parent 3ed7a4704beb66a155acd67b78b7e9a5674d55fb author Christoph Hellwig Fri, 09 Sep 2005 16:25:54 +0200 committer James Bottomley Mon, 19 Sep 2005 12:42:31 -0500 [SCSI] fusion core changes for SAS support - various bits for SAS support from the LSI driver. - use the device private data for the fusion target private data. this should be using the midlayer target data framework, but we can't move over to that until fusion has been switched to the generic DV code - use target ID and channel from the fusion target private data, because those in scsi_device will be different for mptsas Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley commit 6577ae51cf52f5fb0e4a85e673dd7bf2d0074e3e tree 3c3be701f7954d52f850c116903deb2698bb8038 parent 3853194c2e174cee4da093c67bd54cbf9a38559a author Roland Dreier Mon, 19 Sep 2005 09:17:56 -0700 committer Roland Dreier Mon, 19 Sep 2005 09:17:56 -0700 [PATCH] IB/mthca: Don't try to set srq->last for userspace SRQs Userspace SRQs don't have a buffer allocated for them in the kernel, so it doesn't make sense to set srq->last during initialization. In fact, this can crash trying to follow a nonexistent buffer pointer. Signed-off-by: Roland Dreier commit 3ed7a4704beb66a155acd67b78b7e9a5674d55fb tree 0a0ad71a64888fb2ab69e2b0acb99005dbc3af04 parent 939647ee308e0ad924e776657704c7bedd498664 author James Bottomley Mon, 19 Sep 2005 09:50:04 -0500 committer James Bottomley Mon, 19 Sep 2005 09:50:04 -0500 [SCSI] Fix thread termination for the SCSI error handle From: Alan Stern This patch (as561) fixes the error handler's thread-exit code. The kthread_stop call won't wake the thread from a down_interruptible, so the patch gets rid of the semaphore and simply does set_current_state(TASK_INTERRUPTIBLE); Signed-off-by: Alan Stern Modified to simplify the termination loop and correct the sleep condition. Signed-off-by: James Bottomley commit 939647ee308e0ad924e776657704c7bedd498664 tree cfff68b8f65a53e186fd1e7443aa370885ac1ed9 parent a64358db1253b35d508a411e80a3ad23b859ec88 author James Bottomley Sun, 18 Sep 2005 15:05:20 -0500 committer James Bottomley Mon, 19 Sep 2005 09:24:52 -0500 [SCSI] fix oops on usb storage device disconnect We fix the oops by enforcing the host state model. There have also been two extra states added: SHOST_CANCEL_RECOVERY and SHOST_DEL_RECOVERY so we can take the model through host removal while the recovery thread is active. Signed-off-by: James Bottomley commit 3853194c2e174cee4da093c67bd54cbf9a38559a tree 3939280d0bf49b4b24068215f30aefdc38aaf0bc parent c915033fc62d7186d243d89f88782d6be33fd8f6 author Roland Dreier Sun, 18 Sep 2005 14:00:17 -0700 committer Roland Dreier Sun, 18 Sep 2005 22:02:38 -0700 [PATCH] IB/mthca: Fix posting work requests to shared receive queues The error handling paths in mthca_tavor_post_srq_recv() and mthca_arbel_post_srq_recv() are quite bogus, the result of a screwed up merge. Fix them so they work as intended. Pointed out by Michael S. Tsirkin Signed-off-by: Roland Dreier commit c915033fc62d7186d243d89f88782d6be33fd8f6 tree e509ef63ef6dba42f31807b5c9f6c20b48be3a9a parent ce5b65cc9626feac0d4ffb96f798407e50c45575 author Roland Dreier Sun, 18 Sep 2005 13:52:06 -0700 committer Roland Dreier Sun, 18 Sep 2005 22:02:38 -0700 [PATCH] IB/mthca: Initialize eq->nent before we use it In mthca_create_eq(), we call get_eqe() before setting eq->nent. This is wrong, because get_eqe() uses eq->nent. Fix this, and clean up the code a little while we're at it. (We got lucky with the current code, because eq->nent was cleared to 0, which get_eqe() made happen to do the right thing) Pointed out by Michael S. Tsirkin Signed-off-by: Roland Dreier commit ce5b65cc9626feac0d4ffb96f798407e50c45575 tree 42803ff0ecbc1f0d47adb628d88378232d03b1d6 parent d6cff021e24515255b296d399ec517a68bf2ed08 author Hal Rosenstock Sun, 18 Sep 2005 13:47:53 -0700 committer Roland Dreier Sun, 18 Sep 2005 22:02:38 -0700 [PATCH] IPoIB: Fix SA client retransmission strategy We got a little mixed up with what the backoff member holds in the IPoIB multicast group structure: sometimes it was used as a number of seconds, and sometimes it was used as a number of jiffies. Fix the code so that backoff is always in seconds. Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier commit d6cff021e24515255b296d399ec517a68bf2ed08 tree f3d21aca027cb7065522629c00f65fc3a8fb1d96 parent bb4a7f0da75ce9f3e933880428d39b2aa1f16961 author Roland Dreier Tue, 13 Sep 2005 10:41:03 -0700 committer Roland Dreier Sun, 18 Sep 2005 22:02:37 -0700 [PATCH] IB/mthca: fix posting of first work request Fix posting first WQE for mem-free HCAs: we need to link to previous WQE even in that case. While we're at it, simplify code for Tavor-mode HCAs. We don't really need the conditional test there either; we can similarly always link to the previous WQE. Based on Michael S. Tsirkin's analogous fix for userspace libmthca. Signed-off-by: Roland Dreier commit bb4a7f0da75ce9f3e933880428d39b2aa1f16961 tree 9034e0db70f28c93317ad8794437523e3c3c9c52 parent 51574e0398a2d93cbf7f26e36b673cd919062268 author Roland Dreier Mon, 12 Sep 2005 14:08:51 -0700 committer Roland Dreier Sun, 18 Sep 2005 22:02:37 -0700 [PATCH] IB/mthca: assign ACK timeout field correctly The hardware reads the ACK timeout field from the most significant 5 bits of struct mthca_qp_path's ackto field, not the least significant bits. This fix has the driver put the timeout in the right place. Without this, we get a timeout that is 2^8 times too small. Signed-off-by: Roland Dreier commit 51574e0398a2d93cbf7f26e36b673cd919062268 tree c8cb3e2331b71227109433ce3256c0a655506d69 parent 6c0741fbdee5bd0f8ed13ac287c4ab18e8ba7d83 author Michael S. Tsirkin Mon, 12 Sep 2005 09:52:28 -0700 committer Roland Dreier Sun, 18 Sep 2005 22:02:37 -0700 [PATCH] IPoIB: fix module removal race Since ipoib uses queue_delayed_work to run flush task on port state events, it must flush scheduled work after unregistering the event handler. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier commit a64358db1253b35d508a411e80a3ad23b859ec88 tree e222f3f17d6962a84d966620485d19f67d7fafa7 parent b95be99d52ce4f9db9ff0bd5f10e9e2066da6d2e author Alan Stern Tue, 26 Jul 2005 10:27:10 -0400 committer James Bottomley Sun, 18 Sep 2005 15:22:06 -0500 [SCSI] SCSI scanning and removal fixes This patch (as545) fixes the list traversals in __scsi_remove_target and scsi_forget_host. In each case the existing code list_for_each_entry_safe in an _unsafe_ manner, because the list was not protected from outside modification while the iteration was running. The new scsi_forget_host routine takes the moderately controversial step of iterating over devices for removal rather than iterating over targets. This makes more sense to me because the current scheme treats targets as second-class citizens, created and removed on demand, rather than as objects corresponding to actual hardware. (Also I couldn't figure out any safe way to iterate over the target list, since it's not so easy to tell when a target has already been removed.) Signed-off-by: Alan Stern Signed-off-by: James Bottomley commit b95be99d52ce4f9db9ff0bd5f10e9e2066da6d2e tree 6b01de07c638fd596cc254ca6a095aa4f5ef9ba2 parent 1832a5862f2e1b4e5835611ee14bc30a8ed3cad5 author Alan Stern Thu, 15 Sep 2005 13:52:51 -0400 committer James Bottomley Sat, 17 Sep 2005 15:24:53 -0500 [SCSI] fix oops in scsi_release_buffers() I found one other thing that needs to be fixed. The call to scsi_release_buffers in scsi_unprep_request causes an oops, because the sgtable has already been freed in scsi_io_completion. The following patch is needed. Signed-off-by: Alan Stern Signed-off-by: James Bottomley commit 1832a5862f2e1b4e5835611ee14bc30a8ed3cad5 tree f56d509fbe68e5f76c26da4ff74a965fe68ff46e parent 541950027f8b7c96a639bc16e48930c590f1b98a author Andreas Herrmann Fri, 16 Sep 2005 11:01:14 +0200 committer James Bottomley Fri, 16 Sep 2005 11:25:50 -0400 [SCSI] change port speed definitions for scsi_transport_fc obviously FC Port Speeds in scsi_transport_fc.h are defined according to FC-HBA: #define FC_PORTSPEED_1GBIT 1 #define FC_PORTSPEED_2GBIT 2 #define FC_PORTSPEED_10GBIT 4 #define FC_PORTSPEED_4GBIT 8 Problem is, whoever invented FC-HBA did not care about FC-FS or FC-GS-x. Following FC-FS/FC-GS-x defintions of port speeds would look like: 1 GBit: 0x0001 2 GBit: 0x0002 4 GBit: 0x0004 10GBit: 0x0008 (and new in FC-LS: 8 Gbit: 0x0010 16GBit: 0x0020) I really appreciate if scsi_transport_fc.h would define port speeds according to FC-GS-x/FC-FS. Thus mapping of port speed capabilities to values defined in scsi_transport_fc.h can be avoided in the LLDD. Attached is a patch to change the definitions. Signed-off-by: James Bottomley commit 17b14451fd2b187ddd6303726755a3af0a926b6c tree b0f3572bcb47eef8a4988b44795ddcab95da3118 parent 7a83e90b32a2b2500e0be6a5317ab411b39222c9 author Alan Cox Thu, 15 Sep 2005 15:44:00 +0100 committer Jeff Garzik Fri, 16 Sep 2005 02:39:01 -0400 [PATCH] PATCH: remove function for non-PCI as requested Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 7a83e90b32a2b2500e0be6a5317ab411b39222c9 tree 446dd64df7fe21425fce695b8c343d69d10a63fb parent d8ac10639b6a1ed900efbee38c18baaca31e64dc author Alan Cox Thu, 15 Sep 2005 15:24:59 +0100 committer Jeff Garzik Fri, 16 Sep 2005 02:37:47 -0400 [PATCH] PATCH: silly in piix driver Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 6cb1269b9607649b5edf1c4e7818e0cf34a9db71 tree d76dd36252cb5b6d7fa9afa8ec6dc4c03d30834c parent f3591fff043f5df937120962668c8adfcd3f5b29 author Dave Kleikamp Thu, 15 Sep 2005 23:25:41 -0500 committer Dave Kleikamp Thu, 15 Sep 2005 23:25:41 -0500 JFS: Fix sparse warnings, including endian error The fix in inode.c is a real bug. It could result in undeleted, yet unconnected files on big-endian hardware. The others are trivial. Signed-off-by: Dave Kleikamp commit 541950027f8b7c96a639bc16e48930c590f1b98a tree 69d367dab3f738c888bf16646ed85cde69e3bf2a parent b5683557331b129658ab435391df527ef72d63dc author Alan Stern Thu, 15 Sep 2005 21:52:51 -0400 committer James Bottomley Thu, 15 Sep 2005 22:03:54 -0400 [SCSI] fix use after potential free in scsi_remove_device Signed-off-by: Alan Stern Signed-off-by: James Bottomley commit b5683557331b129658ab435391df527ef72d63dc tree 121d9502ed38b7b01c17532e2a28806a1108f457 parent 59897dad98d63ac15e1e36fcc3a107c892b1826c author James Bottomley Thu, 15 Sep 2005 08:59:36 -0500 committer James Bottomley Thu, 15 Sep 2005 08:59:36 -0500 [SCSI] atp870u: fix memory addressing bug From: Alan Cox The virt_to_bus() wasn't correctly taken out of this driver. It needs to be able to track both physical and virtual addresses for its prd table. Update the driver to do this with separate tracking entries. Signed-off-by: Alan Cox Signed-off-by: James Bottomley commit 59897dad98d63ac15e1e36fcc3a107c892b1826c tree 42e65c1e3e99ab12ab484b0311c4487ae7a76148 parent d39a942c3f4061d2218dcadf79ce10010dbcdb3c author James Bottomley Wed, 14 Sep 2005 12:57:42 -0400 committer James Bottomley Wed, 14 Sep 2005 16:59:03 -0400 [SCSI] fix sym scsi boot hang On Wed, 2005-09-14 at 18:06 +1000, Anton Blanchard wrote: > And in particular it looks like the scsi_unprep_request in > scsi_queue_insert is causing it. The following patch fixes the boot > problems on the vscsi machine: OK, my fault. Your fix is almost correct .. I was going to do this eventually, honest, because there's no need to unprep and reprep a command that comes in through scsi_queue_insert(). However, I decided to leave it in to exercise the scsi_unprep_request() path just to make sure it was working. What's happening, I think, is that we also use this path for retries. Since we kill and reget the command each time, the retries decrement is never seen, so we're retrying forever. Signed-off-by: James Bottomley commit d39a942c3f4061d2218dcadf79ce10010dbcdb3c tree d9a963b86932d8e7715f6d4a932c3f89b667a2fb parent 186d330e682210100c671355580a8592e4a21692 author Randy.Dunlap Tue, 13 Sep 2005 21:43:56 -0700 committer James Bottomley Wed, 14 Sep 2005 16:58:26 -0400 [SCSI] scsi: 2 drivers need MODULE_LICENSE() Modules need a license to prevent kernel tainting. Signed-off-by: Randy Dunlap Signed-off-by: James Bottomley commit 186d330e682210100c671355580a8592e4a21692 tree 63c9956263463c950c2965a5e871508d41aa9de3 parent a89f29f6ea8dba0b7c4ae5d1d0b43de6cb500ea6 author Timothy Thelin Tue, 13 Sep 2005 19:56:28 -0700 committer James Bottomley Wed, 14 Sep 2005 16:54:12 -0400 [SCSI] scsi: sd, sr, st, and scsi_lib all fail to copy cmd_len to new cmd This fixes an issue in scsi command initialization from a request where sd, sr, st, and scsi_lib all fail to copy the request's cmd_len to the scsi command's cmd_len field. Signed-off-by: Timothy Thelin Signed-off-by: James Bottomley commit a89f29f6ea8dba0b7c4ae5d1d0b43de6cb500ea6 tree 66e7c34459c41b4ade0d202258184fb2df84e907 parent 154fb614df83086ceb18a2c19908154e78d4dc98 author James Bottomley Tue, 30 Aug 2005 11:48:07 -0500 committer James Bottomley Tue, 13 Sep 2005 14:24:48 -0500 [SCSI] aic7xxx: move to dma_get_required_mask() and correct 39 bit assumptions This patch moves aic7xxx over to the dma_get_required_mask() API and dumps its open coded memory check. It also appears from this bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=167049 That 39 bit addressing doesn't work on older cards. I surmise that the AHC_LARGE_SCBS flag is the one that marks cards capable of using 39 bit addressing, so I also folded that check into the code. Signed-off-by: James Bottomley commit 154fb614df83086ceb18a2c19908154e78d4dc98 tree 4db0b4124cc635d4eadc245ea4716d13ec5d293b parent 1c5363153dc7ae694404e7732b4ce36eecc94ca7 author Dave C Boutcher Tue, 13 Sep 2005 10:09:02 -0500 committer James Bottomley Tue, 13 Sep 2005 10:15:10 -0500 [SCSI] ibmvscsi compatibility fix Linda Xie ever so gently pointed out that she had a patch to preserve compatibility with older SLES targets, and I told her we didn't need to push it to mainline. This patch explicitly checks the version of the IBMVSCSI target and ensures that large scatterlists are not sent to older targets. Signed-off-by: Linda Xie Signed-off-by: Dave Boutcher Signed-off-by: James Bottomley commit 1c5363153dc7ae694404e7732b4ce36eecc94ca7 tree 91476e383f04f25f5883b04517adfd92f6b66231 parent 2f4ba45a75d6383b4a1201169a808ffea416ffa0 author James Bottomley Mon, 12 Sep 2005 09:15:14 -0500 committer James Bottomley Tue, 13 Sep 2005 09:52:19 -0500 [SCSI] blacklist REPORT LUNS usage on transtec arrays They report being SCSI-3 but seem to give back rubbish to a REPORT_LUNS command. Force them to be sequentially scanned. Signed-off-by: James Bottomley