aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions
>Patrick Mochel1-18/+4 Make sure we delete devices from the driver list the iteration after we detach them (so we can get a valid next pointer) 2002-08-13[PATCH] C99 designated initializers for fs/ncpfsPetr Vandrovec3-5/+5 More C99 initializers fixes in ncpfs. By Art Haas <ahaas@neosoft.com> 2002-08-13USB: check to see if we have a disconnect function before trying to call it.Greg Kroah-Hartman1-1/+1 2002-08-13[PATCH] random fixesAndrew Morton9-13/+26 - I changed the sector_t thing in max_block to use davem's approach. I agree with Anton, but making it explicit doesn't hurt. - Remove a dead comment in copy_strings. Old stuff: - Remove the IO error warning in end_buffer_io_sync(). Failed READA attempts trigger it. - Emit a warning when an ext2 is mounting an ext3 filesystem. We have had quite a few problem reports related to this, mainly arising from initrd problems. And mount(8) tends to report the fstype from /etc/fstab rather than reporting what has really happened. Fixes some bogosity which I added to max_block(): - `size' doesn't need to be sector_t - `retval' should not be initialised to "~0UL" because that is 0x00000000ffffffff with 64-bit sector_t. - Allocate task_structs with GFP_KERNEL, as discussed. - Convert the EXPORT_SYMBOL for generic_file_direct_IO() to EXPORT_SYMBOL_GPL. That was only exported as a practicality for the raw driver. - Make the loop thread run balance_dirty_pages() after dirtying the backing file. So it will perform writeback of the backing file when dirty memory levels are high. Export balance_dirty_pages to GPL modules for this. This makes loop work a lot better - I suspect it broke when callers of balance_dirty_pages() started writing back only their own queue. There are many page allocation failures under heavy loop writeout. Coming from blk_queue_bounce()'s allocation from the page_pool mempool. So... - Disable page allocation warnings around the initial atomic allocation attempt in mempool_alloc() - the one where __GFP_WAIT and __GFP_IO were turned off. That one can easily fail. - Add some commentary in block_write_full_page() 2002-08-13[PATCH] scaled writeback throttling levelsAndrew Morton1-10/+55 get_page_state() is showing up on profiles on some big machines. It is a quite expensive function and it is being called too often. The patch replaces the hardwired RATELIMIT_PAGES with a calculated amount based on the amount of memory in the machine and the number of CPUs. 2002-08-13[PATCH] reduced locking in buffer.cAndrew Morton1-27/+48 Replace the buffer lru spinlock protection with local_irq_disable and a cross-CPU call to invalidate them. 2002-08-13[PATCH] fix ARCH_HAS_PREFETCHAndrew Morton1-3/+0 include/linux/prefetch.h does a strange thing: if the arch doesn't have the prefectch functions, this header defines no-op version of them and then defines ARCH_HAS_PREFETCH. So there's no way for mainline code to know if the architecture *really* has prefetch instructions. This information loss is unfortunate. Examples: for (i = 0; i < N; i++) prefetch(foo[i]); Problem is, if `prefetch' is a no-op, the compiler will still generate an empty busy-wait loop. Which it must do. We need to know the truth about ARCH_HAS_PREFETCH to correctly elide that loop. 2002-08-13[PATCH] Problem with CDC Ethernet driver (CDCEther.c)Oliver Neukum1-3/+7 - fixed deadlock 2002-08-13[PATCH] user-vm-unlock-2.5.31-A2Ingo Molnar3-7/+28 This implements CLONE_VM_RELEASE, which lets the child release the 'user VM' at mm_release() time. 2002-08-13[PATCH] clone-detached-2.5.31-B0Ingo Molnar4-20/+54 the attached patch implements the per-CPU thread-structure cache to do detached exit, if the parent does not want to be notified of child exit via a signal. 2002-08-13[PATCH] CLONE_SETTLS, CLONE_SETTID, 2.5.31-BKIngo Molnar2-0/+31 This adds two new clone() flags: CLONE_SETTLS => if present then the third clone() syscall parameter is the new TLS. CLONE_SETTID => if present then the child TID is written to the address specified by the fourth clone() parameter. the new parameters are handled in a safe way, clone() returns -EFAULT or -EINVAL if there's some problem with them. 2002-08-13[PATCH] embarrassing 2.5.31 small bug fix for blkdev_reread_part()Badari Pulavarty1-1/+1 Here is a trivial bug fix for blkdev_reread_part() in 2.5.31. Without this fix, "fdisk" hangs with following messages: Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. 2002-08-13USB: moved put_bus to its proper place (as the last thing we do shutting down.)Greg Kroah-Hartman1-1/+1 2002-08-13Update device model lockingPatrick Mochel4-145/+118 Change all iterators of devices to: - use list_for_each - check return of get_device_locked - don't break until we hold the lock if we get an error When a device's reference count hits 0, remove it from all lists, including bus and driver lists. Between the iterator algorithm and the guaranteed removal from the lists, there should never be a device in a list with a reference count of 0. So, whenever we're iterating over the lists, we'll always have a valid device. We don't decrement the refcount until the next iteration of the loop, so we're also guaranteed to get the correct next item in the list. 2002-08-12[PATCH] HCDs support new DMA APIs (part 2 of 2)David Brownell1-0/+33 - teaches the shared "hcd" code to set urb->*_dma whenever the device driver didn't, by creating singleshot mappings. 2002-08-12[PATCH] HCDs support new DMA APIs (part 1 of 2)David Brownell7-149/+31 - teaches the hardware-specific code to use urb->*_dma instead of creating mappings. (And tells ohci-sa1111 to init its buffer pools.) EHCI and UHCI also eliminated duplicated state; all the HCDs are now a smidgeon smaller. Sanity checked by enumerating, including through a hub, and using a USB Ethernet adapter, with each of the three host controllers. Worth noting: this removes pci_dma_sync_single() calls from UHCI. On x86 (and some others) that's a NOP, but for UHCI on other platforms (rare except maybe on IA64, as I understand) this anticipates the upcoming patch to remove interrupt automagic. (I'll likely submit that after a Linus release that catches up to your USB tree. :) 2002-08-12Fix and prevent bugs in device_register()Patrick Mochel1-9/+11 When adding to the global device list, we were adding devices just after their parent, while we wanted to add them just before. That way when we iterate over the list on suspend and shutdown, we'll hit all children before the parents. Make sure dev->driver_list and dev->bus_list are initialized when the device is registered Remove device from global and parent's list if registration failed. 2002-08-12[PATCH] Network Options and Network Devices togetherRandy Dunlap14-66/+39 This patch to 2.5.31 pushes "Networking options" and "Network device support" together for all architectures that have them. They shouldn't be split apart by Telephony, I2O, Fusion, etc. 2002-08-12[PATCH] DECLARE_PER_CPU/DEFINE_PER_CPU patchRusty Russell8-22/+44 This old __per_cpu_data define wasn't enough if an arch wants to use the gcc __thread prefix (thread local storage), which needs to go *before* the type in the definition. So we have to go for a DECLARE macro, and while we're there, separate DECLARE and DEFINE, as definitions of per-cpu data cannot live in modules. This also means that accidental direct references to per-cpu variables will be caught at compile time. 2002-08-12[PATCH] get_cpu_var patchRusty Russell10-32/+31 This makes introduces get_cpu_var()/put_cpu_var() which gets a per-cpu variable and disables preemption, and renames the (unsafe under preemption) "this_cpu()" macro to __get_cpu_var(). It also deletes the redundant definitions in linux/smp.h. 2002-08-12[PATCH] Export __per_cpu_offset so modules can use per-cpu data.Rusty Russell1-0/+4 As per Andrew Morton's request. 2002-08-12[PATCH] NUMA-Q relocate early ioremapMartin J. Bligh1-10/+10 This moves the early ioremap call to after cpu_online_map is initialized. Note everything is wrapped in clustered_apic_mode, so should be safe. 2002-08-12[PATCH] UML patch fixupJeff Dike1-4/+0 When you reverted the stringify changes I sent last time, you missed removing a comment, which is now grossly wrong. This patch finishes the job. 2002-08-12M68k fbdev fixesJames Simmons3-74/+70 2002-08-12[PATCH] cciss partitioning stuff, per-disk gendisksAlexander Viro4-119/+78 2002-08-12[PATCH] fix syscall prototypes in init/do_mounts.cChristoph Hellwig1-9/+9 Most syscall take a const char * argument in fact, also mark them extern. 2002-08-12[PATCH] A generic RTC driver [3/3]Tom Rini6-8/+380 This is part 3 of 3 of the genrtc patches. This is my own slight bit of work, as well as some work by Randolph Chung. This changes set_rtc_time(struct *rtc_time) to return an int instead of void. This was done so that the arch-specific code here could do additional checks on the time and return an error if needed. This then introduces include/asm-generic/rtc.h, include/asm-i386/rtc.h and include/asm-alpha/rtc.h. include/asm-generic/rtc.h contains the get_rtc_time and set_rtc_time logic that is in drivers/char/rtc.c and has been tested on SMP i386. This also modifies include/asm-ppc/rtc.h to return -ENODEV if no rtc hardware is present. Additionally, Dave Jones pointed out to me a place where we might not be safe when jiffies wraps, so this switches that to time_after(). From Randolph Chung, support for a 64bit kernel and a 32bit userland.