]> git.neil.brown.name Git - history.git/log
history.git
23 years ago[PATCH] M68k update (part 32)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:23:29 +0000 (06:23 -0700)]
[PATCH] M68k update (part 32)

Mac/m68k Nubus updates
  - Use nubus_{read,write}[bwl]()
  - Fix /proc/bus/nubus
  - Fix type and linkage of nubus_init()
  - Use nubus_{read,write}[bwl]()
  - Kill some address assignment warnings
  - Include <asm/nubus.h>
  - nubus_init() is an initcall, hence static

23 years ago[PATCH] M68k update (part 31)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:23:23 +0000 (06:23 -0700)]
[PATCH] M68k update (part 31)

Add definition for PROT_SEM on m68k

23 years ago[PATCH] M68k update (part 30)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:23:17 +0000 (06:23 -0700)]
[PATCH] M68k update (part 30)

M68k core mm updates
  - Update fault handling
  - Remove superfluous flush_tlb_page()
  - Remove obsolete comment
  - empty_zero_page becomes a void *
  - Type and cast clean ups
  - Remove duplicated test for voff == 0
  - Move check_pgt_cache() to pgtable.h
  - Pte and pmd updates
  - Add additional parameter to {clear,copy}_user_page()
  - pfn updates
  - BUG() updates
  - Move check_pgt_cache() from motorola_pgalloc.h
  - Misc updates
  - Add __page_address() and page_to_phys()

23 years ago[PATCH] M68k update (part 29)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:23:12 +0000 (06:23 -0700)]
[PATCH] M68k update (part 29)

Add Mac/m68k support to valkyriefb

23 years ago[PATCH] M68k update (part 28)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:23:06 +0000 (06:23 -0700)]
[PATCH] M68k update (part 28)

Mac/m68k doesn't use the PowerMac NVRAM driver

23 years ago[PATCH] M68k update (part 27)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:23:00 +0000 (06:23 -0700)]
[PATCH] M68k update (part 27)

Mac m68k Ethernet driver updates (from 2.4.x)
 - mace68k_probe() got renamed to mace_probe()
 - Add missing MODULE_LICENSE()
 - Add missing register definition for SONIC_DCR2

23 years ago[PATCH] M68k update (part 26)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:55 +0000 (06:22 -0700)]
[PATCH] M68k update (part 26)

Misc Mac/m68k updates
 - Make sure we have one instance of mac_hw_present
 - Kill warning
 - Rename struct SCC to struct mac_SCC to avoid type conflict

23 years ago[PATCH] M68k update (part 25)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:50 +0000 (06:22 -0700)]
[PATCH] M68k update (part 25)

Update ISA space code on m68k (from 2.4.x)
 - Add support for multiple types of ISA busses in one kernel image (e.g. an
   image for both Q40 and Amiga with PCMCIA)
 - Allow port operations on m68k if CONFIG_ISA is defined

23 years ago[PATCH] M68k update (part 24)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:44 +0000 (06:22 -0700)]
[PATCH] M68k update (part 24)

M68k I/O core updates
 - Use memory mapped I/O access routines for non-ISA/PCI/PCMCIA m68k devices
 - Don't use writel() and friends on m68k memory mapped I/O
 - Fix typo in definition of writew()
 - Add missing definitions for {in,out}_le{16,32}()

23 years ago[PATCH] M68k update (part 23)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:39 +0000 (06:22 -0700)]
[PATCH] M68k update (part 23)

The old form of designated initializers are obsolete: we need to replace them
with the ISO C forms before 2.6.  Gcc has always supported both forms anyway.

(from Rusty Russell <rusty@rustcorp.com.au>, with some mods by me)

23 years ago[PATCH] M68k update (part 22)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:34 +0000 (06:22 -0700)]
[PATCH] M68k update (part 22)

M68k USER_HZ updates

23 years ago[PATCH] M68k update (part 21)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:29 +0000 (06:22 -0700)]
[PATCH] M68k update (part 21)

HP300 LANCE driver updates
  - Update DIO probe code
  - Use out_8() instead of writeb() for non-PCI memory mapped I/O
  - Kill warnings

23 years ago[PATCH] M68k update (part 20)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:24 +0000 (06:22 -0700)]
[PATCH] M68k update (part 20)

Merge remaining bits of core HP300 support

23 years ago[PATCH] M68k update (part 19)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:19 +0000 (06:22 -0700)]
[PATCH] M68k update (part 19)

Fix Mac build if no fonts are selected

23 years ago[PATCH] M68k update (part 18)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:14 +0000 (06:22 -0700)]
[PATCH] M68k update (part 18)

Add Sun-3x floppy support (from 2.4.x)

23 years ago[PATCH] M68k update (part 17)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:09 +0000 (06:22 -0700)]
[PATCH] M68k update (part 17)

The Mac6x11 font depends on CONFIG_FBCON_MAC, not on CONFIG_MAC

23 years ago[PATCH] M68k update (part 16)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:22:04 +0000 (06:22 -0700)]
[PATCH] M68k update (part 16)

The penguin logo resides in normal RAM, not in frame buffer memory, so we must
not use fb_readb()

23 years ago[PATCH] M68k update (part 15)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:59 +0000 (06:21 -0700)]
[PATCH] M68k update (part 15)

M68k DMA address type update: Add definition for dma64_addr_t on m68k

23 years ago[PATCH] M68k update (part 14)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:54 +0000 (06:21 -0700)]
[PATCH] M68k update (part 14)

HP300 DIO bus updates

23 years ago[PATCH] M68k update (part 13)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:49 +0000 (06:21 -0700)]
[PATCH] M68k update (part 13)

 - Atari joystick device number updates
 - Atari ACSI hard disk driver device updates
 - Atari floppy driver device updates
 - MVME147 serial driver dev_t update

23 years ago[PATCH] M68k update (part 12)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:43 +0000 (06:21 -0700)]
[PATCH] M68k update (part 12)

Linux/m68k configuration updates
  - Unify serial console questions
  - Move serial driver config questions together
  - The Atari mouse driver depends on the Atari keyboard driver, hence on
    CONFIG_VT
  - Don't hardcode CONFIG_VT=n on VME, you may want it for a multi-machine
    kernel
  - The IRQ_* definitions are not used on Amiga, but we need them if we
    build a multi-machine kernel, too

23 years ago[PATCH] M68k update (part 11)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:36 +0000 (06:21 -0700)]
[PATCH] M68k update (part 11)

Fix miscellaneous compilation warnings and errors

23 years ago[PATCH] M68k update (part 10)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:28 +0000 (06:21 -0700)]
[PATCH] M68k update (part 10)

Enable Q40 keyboard and serial, and Apollo keyboard

23 years ago[PATCH] M68k update (part 9)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:17 +0000 (06:21 -0700)]
[PATCH] M68k update (part 9)

M68k cache handling updates
  - Add missing definition of L1_CACHE_SHIFT
  - Define L1_CACHE_BYTES in terms of L1_CACHE_SHIFT
  - Add missing include
  - Fix address types and casts

23 years ago[PATCH] M68k update (part 8)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:11 +0000 (06:21 -0700)]
[PATCH] M68k update (part 8)

M68k bitops updates
  - use bitmap_member() for bitops data declaration
  - Make the m68k bitops really operate on unsigned long
  - Add fls()

23 years ago[PATCH] M68k update (part 7)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:21:05 +0000 (06:21 -0700)]
[PATCH] M68k update (part 7)

Atari frame buffer device updates
  - Move static function definition before usage
  - Fix breakage caused by recent fbdev changes
  - Make some setup parameter parsing separate routines (strsep() must be able
    to modify the passed pointers)
  - On Atari the ATI Mach64 registers are memory mapped, but it's not on
    the PCI bus, so we cannot use writel() and friends.
  - Kill warnings by protecting unused data with the appropriate #ifdef
  - On Atari the ATI Mach64 registers are memory mapped, but it's not on the
    PCI bus, so we cannot use writel() and friends.
  - Fix assignment of addresses for Atari

23 years ago[PATCH] M68k update (part 6)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:20:59 +0000 (06:20 -0700)]
[PATCH] M68k update (part 6)

Fix breakage introduced by seq_printf() changes

23 years ago[PATCH] M68k update (part 5)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:20:52 +0000 (06:20 -0700)]
[PATCH] M68k update (part 5)

Fix Apollo frame buffer device breakage after the recent fbdev changes

23 years ago[PATCH] M68k update (part 4)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:20:46 +0000 (06:20 -0700)]
[PATCH] M68k update (part 4)

Port Apollo mouse driver to the `new' busmouse API

23 years ago[PATCH] M68k update (part 3)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:20:41 +0000 (06:20 -0700)]
[PATCH] M68k update (part 3)

 Amiga native graphics updates
  - Fix typo
  - Make monitor capability parsing a separate routine (strsep() must be able
    to modify the passed pointer)

 The Cirrus Logic frame buffer device needs access to the memory mapped VGA I/O space on Amiga

 Add video mode initialization code to the CyberVision64/3D driver

 Add S3 ViRGE register definitions for the CyberVision64/3D driver

23 years ago[PATCH] M68k update (part 2)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:20:36 +0000 (06:20 -0700)]
[PATCH] M68k update (part 2)

Mac/m68k ADB updates (from 2.4.x)
 - Add support for m68k Macs
 - Add missing call to VIA CUDA initialization routine
 - Update Mac II VIA support
 - Make local functions static and add their prototypes
 - Add missing defines for Mac/m68k PMUs

23 years ago[PATCH] M68k update (part 1)
Geert Uytterhoeven [Tue, 23 Jul 2002 13:20:30 +0000 (06:20 -0700)]
[PATCH] M68k update (part 1)

Update MVME i82596 Ethernet driver (from 2.4.x)
  - Add support for BVME6000
  - Add KERN_* prefixes to printk() calls
  - Wait for config change requests

23 years agoKernel version 2.5.27 v2.5.27
Linus Torvalds [Sat, 20 Jul 2002 05:06:00 +0000 (22:06 -0700)]
Kernel version 2.5.27

23 years agoRemove "tristate" for CONFIG_SECURITY_CAPABILITIES, make
Linus Torvalds [Sat, 20 Jul 2002 05:05:11 +0000 (22:05 -0700)]
Remove "tristate" for CONFIG_SECURITY_CAPABILITIES, make
it unconditional for now.

23 years agoMerge bk://lsm.bkbits.net/linus-2.5
Linus Torvalds [Sat, 20 Jul 2002 02:13:24 +0000 (19:13 -0700)]
Merge bk://lsm.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoLSM: for now, always set CONFIG_SECURITY_CAPABILITIES to y
Greg Kroah-Hartman [Fri, 19 Jul 2002 15:55:26 +0000 (08:55 -0700)]
LSM: for now, always set CONFIG_SECURITY_CAPABILITIES to y

This can be overridden by editing the .config file if you really want it.

23 years agoMerge bk://lsm.bkbits.net/linus-2.5
Linus Torvalds [Fri, 19 Jul 2002 13:09:21 +0000 (06:09 -0700)]
Merge bk://lsm.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoLSM: Enable the security framework. This includes basic task control hooks.
Greg Kroah-Hartman [Fri, 19 Jul 2002 09:01:00 +0000 (02:01 -0700)]
LSM:  Enable the security framework.  This includes basic task control hooks.

23 years agoLSM: Add all of the new security/* files for basic task control
Greg Kroah-Hartman [Fri, 19 Jul 2002 08:55:59 +0000 (01:55 -0700)]
LSM: Add all of the new security/* files for basic task control

This includes the security_* functions, and the default and capability
modules.

23 years agoLSM: change BUS_ISA to CTL_BUS_ISA to prevent namespace collision with the input...
Greg Kroah-Hartman [Fri, 19 Jul 2002 08:07:35 +0000 (01:07 -0700)]
LSM: change BUS_ISA to CTL_BUS_ISA to prevent namespace collision with the input subsystem.

This is needed due to the next header file changes.

23 years ago[PATCH] Add 4G-1 file support to FAT32
Hirofumi Ogawa [Fri, 19 Jul 2002 04:55:29 +0000 (21:55 -0700)]
[PATCH] Add 4G-1 file support to FAT32

This patch changes cont_prepare_write(), in order to support a 4G-1
file for FAT32.

 int cont_prepare_write(struct page *page, unsigned offset,
- unsigned to, get_block_t *get_block, unsigned long *bytes)
+ unsigned to, get_block_t *get_block, loff_t *bytes)

And it fixes broken adfs/affs/fat/hfs/hpfs/qnx4 by this
cont_prepare_write() change.

23 years agoMerge http://linuxusb.bkbits.net/linus-2.5
Linus Torvalds [Fri, 19 Jul 2002 04:21:28 +0000 (21:21 -0700)]
Merge http://linuxusb.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] readahead optimisations
Andrew Morton [Fri, 19 Jul 2002 04:11:11 +0000 (21:11 -0700)]
[PATCH] readahead optimisations

Been looking at a workload which involves several processes which seek
around and read from a large file.  There are a few problems:
generic_file_lseek is bouncing i_sem around like mad, and readahead is
doing lots of pointless pagecache probing.

This patch addresses readahead.

Presumably the change will be larger on machines which have higher
bandwidth memory than my test box, of which there are many.

This patch teaches readahead to detect the situation where no IO is
actually being performed as a result of its actions.  Now, we don't
want to sacrifice IO efficiency to save a bit of CPU, so the code is
very cautious.  But eventually, after some tens of consecutive
readahead attempts were found to perform no I/O at all, readahead will
turn itself off.

readahead will be turned on again when either generic_file_read() or
filemap_nopage() get a pagecache miss.  The function
handle_ra_thrashing() has been renamed to handle_ra_miss() to reflect
its widened role.

A performance bug in page_cache_readround() was fixed - if
ra->next_size is zero, that function needs to leave it well alone,
because next_size==0 is a magic value meaning that the file has just
been opened and that readahead needs to get aggressive.  This change
makes a `make dep' run at the same speed as in the 2.4 kernel.  It used
to take 4x as long...

`make dep' is an interesting test because it uses mmap to read the files.

23 years ago[PATCH] writeback scalability improvements
Andrew Morton [Fri, 19 Jul 2002 04:10:57 +0000 (21:10 -0700)]
[PATCH] writeback scalability improvements

The kernel has a number of problems wrt heavy write traffic to multiple
spindles.  What keeps on happening is that all processes which are
responsible for writeback get blocked on one of the queues and all the
others fall idle.

This happens in the balance_dirty_pages() path (balance_dirty() in 2.4)
and in the page reclaim code, when a dirty page is found on the LRU.

The latter is particularly bad because it causes "innocent" processes
to be suspended for long periods due to the activity of heavy writers.

The general idea is: the primary resource for writeback should be the
process which is dirtying memory.  The secondary resource is the
pdflush pool (although this is mainly for providing async writeback in
the presence of light-moderate loads).  Add the final
oh-gee-we-screwed-up resource for writeback is a caller to
shrink_cache().

This patch addresses the balance_dirty_pages() path.  This code was
initially modelled on the 2.4 writeback scheme: throttled processes
writeback all data regardless of its queue.  Instead, the patch changes
it so that the balance_dirty_pages() caller only writes back pages
which are dirty against the queue which that caller just dirtied.

So the effect is a better allocation of writeback resources across the
queues and increased parallelism.

The per-queue writeback is implemented by using
mapping->backing_dev_info as a search key during the walk across the
superblocks and inodes.

The patch also fixes an initialisation problem in
block_dev.c:do_open(): it was setting up the blockdev's
mapping->backing_dev_info too early, before the queue has been
identified.

Generally, this patch doesn't help much, because of the stalls in the
page allocator.  I have a patch which mostly fixes that up, and taken
together the kernel is achieving almost platter speed against six
spindles, but only when the system has a small amount of memory.  More
work is needed there.

23 years ago[PATCH] remove add_to_page_cache_unique()
Andrew Morton [Fri, 19 Jul 2002 04:10:43 +0000 (21:10 -0700)]
[PATCH] remove add_to_page_cache_unique()

A tasty patch from Hugh Dickens.  radix_tree_insert() fails if something
was already present at the target index, so that error can be
propagated back through add_to_page_cache().  Hence
add_to_page_cache_unique() is obsolete.

Hugh's patch removes add_to_page_cache_unique() and cleans up a bunch of
stuff.

23 years ago[PATCH] direct_io mopup
Andrew Morton [Fri, 19 Jul 2002 04:10:30 +0000 (21:10 -0700)]
[PATCH] direct_io mopup

Some cleanup from the surprise direct-to-bio for O_DIRECT merge.

- Remove bits and pieces from the kiobuf implementation

- Replace the waitqueue in struct dio with just a task_struct pointer
  and use wake_up_process.  (Ben).

- Only take mmap_sem around the individual calls to get_user_pages().
   (It pins the vmas, yes?)

- Remove some debug code.

- Fix JFS.

23 years ago[PATCH] alloc_pages cleanup
Andrew Morton [Fri, 19 Jul 2002 04:10:15 +0000 (21:10 -0700)]
[PATCH] alloc_pages cleanup

Cleanup patch from Martin Bligh: convert some loops which want to be
`for' loops into that, and add some commentary.

23 years ago[PATCH] inline generic_writepages()
Andrew Morton [Fri, 19 Jul 2002 04:09:59 +0000 (21:09 -0700)]
[PATCH] inline generic_writepages()

generic_writepages() is just a wrapper around mpage_writepages(), so
inline it.

23 years ago[PATCH] restore CHECK_EMERGENCY_SYNC. Again.
Andrew Morton [Fri, 19 Jul 2002 04:09:44 +0000 (21:09 -0700)]
[PATCH] restore CHECK_EMERGENCY_SYNC.  Again.

Put the CHECK_EMERGENCY_SYNC back into the kupdate function.  I seem to
keep removing it.

23 years ago[PATCH] O_DIRECT open check
Andrew Morton [Fri, 19 Jul 2002 04:09:30 +0000 (21:09 -0700)]
[PATCH] O_DIRECT open check

Updated forward-port of Aodrea's O_DIRECT open() checks.  If the user
asked for O_DIRECT and the inode has no mapping or no a_ops then fail
the open up-front.

23 years ago[PATCH] VM instrumentation
Andrew Morton [Fri, 19 Jul 2002 04:09:17 +0000 (21:09 -0700)]
[PATCH] VM instrumentation

A patch from Rik which adds some operational statitics to the VM.

In /proc/meminfo:

PageTables: Amount of memory used for process pagetables
PteChainTot: Amount of memory allocated for pte_chain objects
PteChainUsed: Amount of memory currently in use for pte chains.

In /proc/stat:

pageallocs: Number of pages allocated in the page allocator
pagefrees: Number of pages returned to the page allocator

(These can be used to measure the allocation rate)

pageactiv: Number of pages activated (moved to the active list)
pagedeact: Number of pages deactivated (moved to the inactive list)
pagefault: Total pagefaults
majorfault: Major pagefaults
pagescan: Number of pages which shrink_cache looked at
pagesteal: Number of pages which shrink_cache freed
pageoutrun: Number of calls to try_to_free_pages()
allocstall: Number of calls to balance_classzone()

Rik will be writing a userspace app which interprets these things.

The /proc/meminfo stats are efficient, but the /proc/stat accumulators
will cause undesirable cacheline bouncing.  We need to break the disk
statistics out of struct kernel_stat and make everything else in there
per-cpu.  If that doesn't happen in time for 2.6 then we disable
KERNEL_STAT_INC().

23 years ago[PATCH] avoid allocating pte_chains for unshared pages
Andrew Morton [Fri, 19 Jul 2002 04:09:02 +0000 (21:09 -0700)]
[PATCH] avoid allocating pte_chains for unshared pages

Patch from David McCracken.  It is an optimisation to the rmap
pte_chains.

In the common case where a page is mapped by only a single pte, we
don't need to allocate a pte_chain structure.  Just make the page's
pte_chain pointer point straight at that pte and flag this with
PG_direct.

23 years ago[PATCH] leave truncate's orphaned pages on the LRU
Andrew Morton [Fri, 19 Jul 2002 04:08:49 +0000 (21:08 -0700)]
[PATCH] leave truncate's orphaned pages on the LRU

Fix to the page reclaim code from Rik.

Anonymous pages which have buffers arise when
truncate_complete_page()'s call to ->releasepage() failed.  Those pages
may still be mapped into process address spaces.

We should not remove them from the LRU, because that makes them
unswappable and they hang around until process exit.

23 years ago[PATCH] minimal rmap
Andrew Morton [Fri, 19 Jul 2002 04:08:35 +0000 (21:08 -0700)]
[PATCH] minimal rmap

This is the "minimal rmap" patch, writen by Rik, ported to 2.5 by Craig
Kulsea.

Basically,

before: When the page reclaim code decides that is has scanned too many
unreclaimable pages on the LRU it does a scan of process virtual
address spaces for pages to add to swapcache.  ptes pointing at the
page are unmapped as the scan proceeds.  When all ptes referring to a
page have been unmapped and it has been written to swap the page is
reclaimable.

after: When an anonymous page is encountered on the tail of the LRU we
use the rmap to see if it hasn't been referenced lately.  If so then
add it to swapcache.  When the page is again encountered on the LRU, if
it is still unreferenced then try to unmap all ptes which refer to it
in one hit, and if it is clean (ie: on swap) then free it.

The rest of the VM - list management, the classzone concept, etc
remains unchanged.

There are a number of things which the per-page pte chain could be
used for.  Bill Irwin has identified the following.

(1)  page replacement no longer goes around randomly unmapping things

(2)  referenced bits are more accurate because there aren't several ms
        or even seconds between find the multiple pte's mapping a page

(3)  reduces page replacement from O(total virtually mapped) to O(physical)

(4)  enables defragmentation of physical memory

(5)  enables cooperative offlining of memory for friendly guest instance
        behavior in UML and/or LPAR settings

(6)  demonstrable benefit in performance of swapping which is common in
        end-user interactive workstation workloads (I don't like the word
        "desktop"). c.f. Craig Kulesa's post wrt. swapping performance

(7)  evidence from 2.4-based rmap trees indicates approximate parity
        with mainline in kernel compiles with appropriate locking bits

(8)  partitioning of physical memory can reduce the complexity of page
        replacement searches by scanning only the "interesting" zones
        implemented and merged in 2.4-based rmap

(9)  partitioning of physical memory can increase the parallelism of page
        replacement searches by independently processing different zones
        implemented, but not merged in 2.4-based rmap

(10) the reverse mappings may be used for efficiently keeping pte cache
        attributes coherent

(11) they may be used for virtual cache invalidation (with changes)

(12) the reverse mappings enable proper RSS limit enforcement
        implemented and merged in 2.4-based rmap

The code adds a pointer to struct page, consumes additional storage for
the pte chains and adds computational expense to the page reclaim code
(I measured it at 3% additional load during streaming I/O).  The
benefits which we get back for all this are, I must say, theoretical
and unproven.  If it has real advantages (or, indeed, disadvantages)
then why has nobody demonstrated them?

There are a number of things remaining to be done:

1: Demonstrate the above advantages.

2: Make it work with pte-highmem  (Bill Irwin is signed up for this)

3: Don't add pte_chains to non-shared pages optimisation (Dave McCracken's
   patch does this)

4: Move the pte_chains into highmem too (Bill, I guess)

5: per-cpu pte_chain freelists (Rik?)

6: maybe GC the pte_chain backing pages. (Seems unavoidable.  Rik?)

7: multithread the page reclaim code.  (I have patches).

8: clustered add-to-swap.  Not sure if I buy this.  anon pages are
   often well-ordered-by-virtual-address on the LRU, so it "just
   works" for benchmarky loads.  But there may be some other loads...

9: Fix bad IO latency in page reclaim (I have lame patches)

10: Develop tuning tools, use them.

11: The nightly updatedb run is still evicting everything.

23 years agoMerge bk://lsm.bkbits.net/linus-2.5
Linus Torvalds [Fri, 19 Jul 2002 03:53:24 +0000 (20:53 -0700)]
Merge bk://lsm.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge http://linuxusb.bkbits.net/agpgart-2.5
Linus Torvalds [Fri, 19 Jul 2002 03:50:44 +0000 (20:50 -0700)]
Merge http://linuxusb.bkbits.net/agpgart-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] USB: usbserial.c fixup
Stuart MacDonald [Fri, 19 Jul 2002 03:46:43 +0000 (20:46 -0700)]
[PATCH] USB: usbserial.c fixup

create_serial, get_free_serial and usb_serial_probe all do pretty much
the same thing. I'd like to reorg this into create_serial does all the
alloc and most of the setup, and get_free_serial just fills in the
MAGIC.

There's currently a memory leak: if create_serial is called at probe
time or calc_ports time, and then get_free_serial returns NULL because
the table has no entries left, that usb_serial struct is leaked.

get_free_serial doesn't check properly for free slots. The middle loop
doesn't terminate when the end of the table is reached, although the
assignment loop later does. The effect is that stuff past the end of
the table is allowed to decide if there's free space or not, and
occasionally it'll say "yes" and then the assignment loop will only
allocate slots up to the end of the table, preventing memory
scribbling.

I haven't fixed any of this just yet because I'm not sure what the
intended behaviour is. Should get_free_serial allocate as many slots
as possible, or just be all or nothing? Similarly, I don't see a
problem with calling create_serial early in usb_serial_probe, and
removing the alloc code from get_free_serial; this would fix the leak.

Ah heck, here's a patch. This is what I think things should look like.
get_free_serial is all or none, the leak is fixed and create_serial
does all the allocation.

23 years ago[PATCH] drivers/usb/* designated initializer rework
Rusty Russell [Fri, 19 Jul 2002 02:44:18 +0000 (19:44 -0700)]
[PATCH] drivers/usb/* designated initializer rework

Name: Designated initializers for drivers/usb
Author: Rusty Russell
Status: Trivial

D: The old form of designated initializers are obsolete: we need to
D: replace them with the ISO C forms before 2.6.  Gcc has always supported
D: both forms anyway.

23 years ago[PATCH] IDE 100
Martin Dalecki [Fri, 19 Jul 2002 02:34:06 +0000 (19:34 -0700)]
[PATCH] IDE 100

  Trivia time:

  - C99 conforming initializations by Rusty.

  - ide__sti() -> local_irq_enable() and its friends.

23 years ago[PATCH] 2.5.26 IDE 99
Martin Dalecki [Fri, 19 Jul 2002 02:26:04 +0000 (19:26 -0700)]
[PATCH] 2.5.26 IDE 99

Most noticable in the patch:

1. we handle IRQ sharing now better then ever

2. survives quite a lot of testing by few people. Forexample
cat /dev/hdb > /dev/null, where /dev/hdb contains a CD-ROM
with a big cratch on the surface making sure it's broken :-).
it's BTW. amanzing how wide the cratch had to be until errors
ocurred.

3. Doesn't play with rq_rdev and friends

Fri Jul 12 05:04:32 CEST 2002 ide-clean-99

- Push nIEN disabling down at the place where we are finished with a particular
   request.

- First round of command line parser cleanups by Gerald Champagne.

- Unfold the drive eviction functions in do_request(). This allowed us to
   realize that we don't have to re-get the major/minor numbers of the device we
   are action on from the raw device field of the currently running request. One
   significant place less in kernel where major/minor data gets manipulated.

- Move the big IDE_BUSY loop out of do_request to do_ide_request().  This makes
   us realize that we don't have to clear the IDE_BUSY bit just before
   reentering do_request to look for more requests still pending on the queue
   and set it immediately again.

   This is fixing a tinny race on the code path from IRQ or timer function,
   where we had a tinny window between the clearing of the IDE_BUSY bit and
   reentering the request queue for completely unrelated requests to come in to
   our way.

- Don't return any value in do_reset1(). It's always ATA_OP_CONTINUES. Split it
   up in to two functions one for disks (well in fact channels) and one for
   ATAPI devices. It turns out that they can be moved to the places where they
   are used to clarify the code flow. The only function remaining is
   do_reset_channel() now.

- Duplicate code from ide_do_drive_code explicitely in ide_raw_taskfile().
   Simplify ide_raw_taskfile() thereafter. Realize that ide_do_drive_cmd()
   is now only used by ATAPI devices. Move it therefore to atapi.c.

- Do busy polling for ATAPI reset operations. This is much safer then the
   previous timer games played there. It simply doesn't make sense to give the
   bus up during such a subtile operation. We don't have to disable IRQs here as
   well, since we are already under the protection of the do_request mechanisms.
   (Well hopefully...)

- Remove no longer used reset_poll() function. poll_timeout and friends are now
   used only in pdc4030 code. Those function where not called from IRQ context
   but they where set as handlers and not as expiry functions.

- Return ATA_OP_CONTINUES instead of ATA_OP_FINISHED in ata_error(), to signal
   that we are willing to retry the operation until the maximal number of retry
   attempts is exceeded. Returning ATA_OP_FINISHED without prior end_request()
   hangs the system.

- Apply trivia from DJ patch set.

- Apply small configuration fix to ide-pci.c from Muli Ben-Yehuda.

- Feed add_blkdev_randomness with information we already have in struct
   ata_channel *ch->major, instead of using the major(macro) on the request in
   question.

- Make ide_raw_taskfile use the same request submission mechanism as
   tcq_invalidate_queue(). Something similar would be ideal for ioctl() code as
   well.

- Implement actual device reset. Realize that the recalibration procedure is
   doomed by the standard. Don't try to recover by recalibrating devices
   therefore -just our retry mechanism should work in those cases. And suddenly
   the error handling code is IRQ safe.

- Reinvent the ATA reset operation, since it is apparently needed. We still
   have to do the whole transfer timing reconfiguration there.

- Move drive_is_ready(), which is in reality an attempt to check for IRQ
   requesters without clearing the IRQ line, over to the place where it belongs:
   device.c, which is the direct device access abstraction place.  Rename it to
   ata_status_irq() to prevent global name space pollution.

- Updates to the pdc202xxx host chip controller setup code by Bart³omiej
   ¯o³nierkiewicz:

   Forward port 2.4 patch by Hank Yang from Promise:

- Add PDC20271 support
- Disable LBA48 support on PDC20262
- Fix ATAPI UDMA port value
- Add new quirk drive
- Adjust timings for all drives when using ATA133
- Update pdc202xx_reset() waiting time

- Mark TCQ as dangerous and add some bits about it to the help.

- Add some missing exports.

- Some small ide-scsi.c host allocation fixes by sullivan.

23 years ago[PATCH] MD - Get rid of dev in rdev and use bdev exclusively.
Neil Brown [Fri, 19 Jul 2002 02:12:13 +0000 (19:12 -0700)]
[PATCH] MD - Get rid of dev in rdev and use bdev exclusively.

Get rid of dev in rdev and use bdev exclusively.

There is an awkwardness here in that userspace sometimes
passed down a dev_t (e.g. hot_add_disk) and sometime
a major and a minor (e.g. add_new_disk).  Should we convert
both to kdev_t as the uniform standard....
That is what was being done but it seemed very clumsy and
things were gets converted back and forth a lot.

As bdget used a dev_t, I felt safe in staying with dev_t once I
had one rather than converting to kdev_t and back.

23 years ago[PATCH] MD - Change partition_name calls to bdev_partition_name were possible.
Neil Brown [Fri, 19 Jul 2002 02:12:00 +0000 (19:12 -0700)]
[PATCH] MD - Change partition_name calls to bdev_partition_name were possible.

Change partition_name calls to bdev_partition_name were possible.

All part of decreasing reliance on device numbers... atleast in
appearance.

23 years ago[PATCH] MD - Remove the sb from the mddev
Neil Brown [Fri, 19 Jul 2002 02:11:45 +0000 (19:11 -0700)]
[PATCH] MD - Remove the sb from the mddev

Remove the sb from the mddev

Now that al the important information is in mddev, we don't need
to have an sb off the mddev.  We only keep the per-device ones.

Previously we determined if "set_array_info" had been run byb checking
mddev->sb.  Now we check mddev->raid_disks on the assumption that
any valid array MUST have a non-zero number of devices.

23 years ago[PATCH] MD - Remove dependance on superblock
Neil Brown [Fri, 19 Jul 2002 02:11:27 +0000 (19:11 -0700)]
[PATCH] MD - Remove dependance on superblock

Remove dependance on superblock

All the remaining field of interest in the superblock
get duplicated in the mddev struture and this is treated as
authoritative.  The superblock gets completely generated at
write time, and all useful information extracted at read time.

This means that we can slot in different superblock formats
without affecting the bulk of the code.

23 years ago[PATCH] MD - Move persistent from superblock to mddev
Neil Brown [Fri, 19 Jul 2002 02:11:14 +0000 (19:11 -0700)]
[PATCH] MD - Move persistent from superblock to mddev

Move persistent from superblock to mddev

Tidyup calc_dev_sboffset and calc_dev_size on the way

23 years ago[PATCH] MD - Remove number and raid_disk from personality arrays
Neil Brown [Fri, 19 Jul 2002 02:11:00 +0000 (19:11 -0700)]
[PATCH] MD - Remove number and raid_disk from personality arrays

Remove number and raid_disk from personality arrays

These are redundant.  number not needed any more
raid_disk never was as that is the index.

23 years ago[PATCH] MD - nr_disks is gone from multipath/raid1
Neil Brown [Fri, 19 Jul 2002 02:10:44 +0000 (19:10 -0700)]
[PATCH] MD - nr_disks is gone from multipath/raid1

nr_disks is gone from multipath/raid1

Never used.

23 years ago[PATCH] MD - Remove old_dev field.
Neil Brown [Fri, 19 Jul 2002 02:10:30 +0000 (19:10 -0700)]
[PATCH] MD - Remove old_dev field.

Remove old_dev field.

We used to monitor the pervious device number of a
component device for superblock maintenance.  This is
not needed any more.

23 years ago[PATCH] MD - Don't maintain disc status in superblock.
Neil Brown [Fri, 19 Jul 2002 02:10:16 +0000 (19:10 -0700)]
[PATCH] MD - Don't maintain disc status in superblock.

Don't maintain disc status in superblock.

The state is now in rdev so we don't maintain it
in superblock any more.
We also nolonger test content of superblock for
disk status
mddev->spare is now an rdev and not a superblock fragment.

23 years ago[PATCH] MD - when writing superblock, generate from mddev/rdev info.
Neil Brown [Fri, 19 Jul 2002 02:10:02 +0000 (19:10 -0700)]
[PATCH] MD - when writing superblock, generate from mddev/rdev info.

when writing superblock, generate from mddev/rdev info.

Rather than relying on the superblock info being kept up-to-date,
we regenerate the superblock from mddev/rdev info before
each write.

23 years ago[PATCH] MD - Add "degraded" field to md device
Neil Brown [Fri, 19 Jul 2002 02:09:48 +0000 (19:09 -0700)]
[PATCH] MD - Add "degraded" field to md device

Add "degraded" field to md device

This is used to determine if a spare should be added
without relying on the superblock.

23 years ago[PATCH] MD - Add in_sync flag to each rdev
Neil Brown [Fri, 19 Jul 2002 02:09:33 +0000 (19:09 -0700)]
[PATCH] MD - Add in_sync flag to each rdev

Add in_sync flag to each rdev

This currently mirrors the MD_DISK_SYNC superblock flag,
but soon it will be authoritative and the superblock will
only be consulted at start time.

23 years ago[PATCH] MD - Add raid_disk field to rdev
Neil Brown [Fri, 19 Jul 2002 02:09:21 +0000 (19:09 -0700)]
[PATCH] MD - Add raid_disk field to rdev

Add raid_disk field to rdev

Also change find_rdev_nr to find based on position
in array (raid_disk) not position in superblock (number).

23 years ago[PATCH] MD - Improve handling of spares in md
Neil Brown [Fri, 19 Jul 2002 02:09:07 +0000 (19:09 -0700)]
[PATCH] MD - Improve handling of spares in md

Improve handling of spares in md

- hot_remove_disk is given the raid_disk rather than descriptor number
  so that it can find the device in internal array directly, no search.
- spare_inactive now uses mddev->spare->raid_disk instead of
  mddev->spare->number so it can find the device directly without searching
- spare_write does not need number.  It can use mddev->spare->raid_disk as above.
- spare_active does not need &mddev->spare.  It finds the descriptor directly
  and fixes it without this pointer

23 years ago[PATCH] MD - Remove concept of 'spare' drive for multipath.
Neil Brown [Fri, 19 Jul 2002 02:08:56 +0000 (19:08 -0700)]
[PATCH] MD - Remove concept of 'spare' drive for multipath.

Remove concept of 'spare' drive for multipath.

Multipath now treats all working devices as
active and does io to to first working one.

23 years ago[PATCH] MD - Set desc_nr more sanely.
Neil Brown [Fri, 19 Jul 2002 02:08:42 +0000 (19:08 -0700)]
[PATCH] MD - Set desc_nr more sanely.

Set desc_nr more sanely.

Currently rdev->desc_nr is set in sync_sbs which is typcially
called just before writing out the superblocks, which is an
odd place to set it.
It is also called when a new disk is added (which is sane) and
when an old disc is imported ... which is quesitonable.

With this patch it is set when a new disk is added, and when
the superblocks are being analysed, which makes lots of sense.

MULTIPATH is particularly an issue here.  The old code tried
to figure the desc_nr for an rdev by matching device numbers in
the superblock.  This doesn't make a lot of sense as
device numbers can change.  Now MULTIPATH components
get sequential desc_nrs.

23 years ago[PATCH] MD - Move md_update_sb calls
Neil Brown [Fri, 19 Jul 2002 02:08:28 +0000 (19:08 -0700)]
[PATCH] MD - Move md_update_sb calls

Move md_update_sb calls

When a change which requires a superblock update happens
at interrupt time, we currently set a flag (sb_dirty) and
wakeup to per-array thread (raid1/raid5d/multipathd) to
do the actual update.

This patch centralises this.  The sb_update is now done
by the mdrecoveryd thread.  As this is always woken up after
the error handler is called, we don't need the call to wakeup
the local thread any more.

With this, we don't need "md_update_sb" to lock the array
any more and only use __md_update_sb which is local to md.c
So we rename __md_update_sb back to md_update_sb and stop
exporting it.

23 years ago[PATCH] MD - Pass the correct bdev to md_error
Neil Brown [Fri, 19 Jul 2002 02:08:13 +0000 (19:08 -0700)]
[PATCH] MD - Pass the correct bdev to md_error

Pass the correct bdev to md_error

After a call to generic_make_request, bio->bi_bdev can have changed
(e.g. by a re-mapped like raid0).  So we cannot trust it for reporting
the source of an error.  This patch takes care to find the correct
bdev.

23 years ago[PATCH] MD - Rdev list cleanups.
Neil Brown [Fri, 19 Jul 2002 02:07:59 +0000 (19:07 -0700)]
[PATCH] MD - Rdev list cleanups.

Rdev list cleanups.

An "rdev" can be on three different lists.
 - the list of all rdevs
 - the list of pending rdevs
 - the list of rdevs for a given mddev

The first list is now only used to list "unused" devices in
/proc/mdstat, and only pending rdevs can be unused, so this list
isn't necessary.
An rdev cannot be both pending and in an mddev, so we know rdev will
only be on one list at at time.

This patch discards  the all_raid_disks list, and changes the
pending list to use "same_set" in the rdev.  It also changes
/proc/mdstat to iterate through pending devices, rather than through
all devices.

So now an rdev is only on one list, either the pending list
or the list of rdevs for a given mddev.  This means that
ITERATE_RDEV_GENERIC doesn't need to be told which field,
to walk down: there is ony one.

23 years ago[PATCH] MD - Get rid of find_rdev_all
Neil Brown [Fri, 19 Jul 2002 02:07:44 +0000 (19:07 -0700)]
[PATCH] MD - Get rid of find_rdev_all

Get rid of find_rdev_all

find_rdev_all is now only used to check if a device is already
used in an md array.

We change lock_rdev so that it claims the bdev for
the specific rdev rather than for rdevs in general.
Now lock_rdev will check if the bdev is inuse by another array
or not, so the find_rdev_all check isn't needed and is removed,
along with find_rdev_all itself.

We also make sure that the error code from lock_rdev is
propagated up properly.

23 years ago[PATCH] MD - Use symbolic names for multipath (-4) and linear (-1)
Neil Brown [Fri, 19 Jul 2002 02:07:27 +0000 (19:07 -0700)]
[PATCH] MD - Use symbolic names for multipath (-4) and linear (-1)

Use symbolic names for multipath (-4) and linear (-1)

Also, a variable called "level" was being used to store a
"level" and a "personality" number.  This is potentially
confusing, so it is now two variables.

23 years ago[PATCH] MD - Don't "analyze_sb" when creating new array.
Neil Brown [Fri, 19 Jul 2002 02:07:14 +0000 (19:07 -0700)]
[PATCH] MD - Don't "analyze_sb" when creating new array.

Don't "analyze_sb" when creating new array.

When creating a new array (and we have an mddev->sb),
don't both to analyze the superblocks.  There is no point.
Also, these means we always allocate the array sb in
analyze_sbs, rather than conditionally.

23 years ago[PATCH] MD - Embed bio in mp_bh rather than separate allocation.
Neil Brown [Fri, 19 Jul 2002 02:07:01 +0000 (19:07 -0700)]
[PATCH] MD - Embed bio in mp_bh rather than separate allocation.

Embed bio in mp_bh rather than separate allocation.

multipath currently allocates an mp_bh and a bio for each
request.  With this patch, the bio is made to be part of the
mp_bh so there is only one allocation, and it from a private
pool (the bio was allocated from a shared pool).

Also remove "remaining" and "cmd" from mp_bh which aren't used.
And remove spare (unused) from multipath_private_data.

23 years ago[PATCH] MD - 27 - Remove state field from multipath mp_bh structure.
Neil Brown [Fri, 19 Jul 2002 02:06:46 +0000 (19:06 -0700)]
[PATCH] MD - 27 - Remove state field from multipath mp_bh structure.

Remove state field from multipath mp_bh structure.

The MPBH_Uptodate flag is set but never used,
The MPBH_SyncPhase flag was never used.
These a both legacy from the copying of raid1.c

MPBH_PreAlloc is no longer needed as due to use of
mempools, so the state field can go...

23 years ago[PATCH] MD - Get multipath to use mempool
Neil Brown [Fri, 19 Jul 2002 02:06:32 +0000 (19:06 -0700)]
[PATCH] MD - Get multipath to use mempool

Get multipath to use mempool

... rather than maintaining it's own mempool

23 years ago[PATCH] MD - Remove dead consistancy checking code from multipath.
Neil Brown [Fri, 19 Jul 2002 02:06:18 +0000 (19:06 -0700)]
[PATCH] MD - Remove dead consistancy checking code from multipath.

Remove dead consistancy checking code from multipath.

This "consistancy_check" is carried over from raid1 on which multipath
was based, and was not used in raid1 and has since been removed.  Now
it gets removed from multipath too.

23 years ago[PATCH] MD - Remove bdput calls from raid personalities.
Neil Brown [Fri, 19 Jul 2002 02:06:03 +0000 (19:06 -0700)]
[PATCH] MD - Remove bdput calls from raid personalities.

Remove bdput calls from raid personalities.

Some of the md personalities currently hold a counted reference
on a bdev.  This is not necessary as the main md module will always
hold a counted reference in the rdev.
This patch removes the code to take and drop these unnecessary
references.

23 years ago[PATCH] Fix typo in net/sunrpc/xprt.c
Trond Myklebust [Thu, 18 Jul 2002 13:11:48 +0000 (06:11 -0700)]
[PATCH] Fix typo in net/sunrpc/xprt.c

The appended patch fixes a typo in net/sunrpc/xprt.c: We want to
ensure that we play safe, and only increment the UDP congestion window
when we have successfully transmitted a full frame of data.

In addition, we should perhaps still 'slow start' the UDP congestion
code rather than assuming that we can immediately fire off 8
requests. IOW revert the value of RPC_INITCWND.

23 years ago[PATCH] USB: usbnet queuing
David Brownell [Thu, 18 Jul 2002 09:08:18 +0000 (02:08 -0700)]
[PATCH] USB: usbnet queuing

- Enables use of bulk queueing
- Avoids stopping the tx queue until it's really needed

If enabling bulk queuing causes any problems in any of the
HCDs, we'll want to find out ... :)

23 years ago[PATCH] USB: patch to make USB_ZERO_PACKET work in ohci-hcd.c
Martin Diehl [Thu, 18 Jul 2002 08:53:30 +0000 (01:53 -0700)]
[PATCH] USB: patch to make USB_ZERO_PACKET work in ohci-hcd.c

23 years ago[PATCH] USB: lots of locking and other SMP race fixes
Oliver Neukum [Thu, 18 Jul 2002 08:42:49 +0000 (01:42 -0700)]
[PATCH] USB: lots of locking and other SMP race fixes

This is a merge of a bunch of SMP and locking fixes for the USB code
that Oliver has sent me (greg k-h) over the past few weeks.

23 years ago[PATCH] USB: ov511 1.61 for 2.5.25
Mark W. McClelland [Thu, 18 Jul 2002 08:30:52 +0000 (01:30 -0700)]
[PATCH] USB: ov511 1.61 for 2.5.25

Update ov511 driver to version 1.61:

- Remove kernel I2C support and related TV tuner code. It will
  be reimplemented correctly in the 2.x driver series
- Fix warnings when compiling without procfs support
- Fix reg_r() debug message (was printing wrong values)
- Fix printing of hex values
- Fix bogus error handling in ov51x_v4l_open()
- Improve definition of unit_video module param
- Eliminate trailing whitespace, and other code cleanups
- Remove documentation of obsolete module params

23 years agoUSB: removed the usb-ohci driver, as it is no longer being used.
Greg Kroah-Hartman [Thu, 18 Jul 2002 07:22:57 +0000 (00:22 -0700)]
USB: removed the usb-ohci driver, as it is no longer being used.

23 years ago[PATCH] Fix NFS locking bug
Trond Myklebust [Thu, 18 Jul 2002 03:44:41 +0000 (20:44 -0700)]
[PATCH] Fix NFS locking bug

Here's one bugfix which might help to explain the GRANTED failure. The
bug has been there all along (so I'll probably want to send this to
Marcelo too).

The code in question in supposed to ensure that we don't wait on a
reply if the RPC call doesn't expect one. However, if the socket
transmission failed for some reason, we do actually want to loop and
try again...

This bug will hit the RPC call in nlmsvc_grant_blocked().

23 years agoagpgart: added "-agp" to the .c files that are for specific hardware types, based...
Greg Kroah-Hartman [Wed, 17 Jul 2002 09:16:42 +0000 (02:16 -0700)]
agpgart: added "-agp" to the .c files that are for specific hardware types, based on mailing list comments.

23 years agoMerge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
Greg Kroah-Hartman [Wed, 17 Jul 2002 03:29:40 +0000 (20:29 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/agpgart-2.5

23 years agoMerge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
Greg Kroah-Hartman [Wed, 17 Jul 2002 03:16:22 +0000 (20:16 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleeding_edge-2.5
into kroah.com:/home/greg/linux/BK/lsm-2.5

23 years agoKernel version 2.5.26 v2.5.26
Linus Torvalds [Tue, 16 Jul 2002 09:48:33 +0000 (02:48 -0700)]
Kernel version 2.5.26

23 years ago[PATCH] RPC over UDP congestion control updates [8/8]
Trond Myklebust [Tue, 16 Jul 2002 08:55:05 +0000 (01:55 -0700)]
[PATCH] RPC over UDP congestion control updates [8/8]

When determining who gets access to the socket, give priority to
requests that are being resent. Despite the fact that congestion
control now applies to resends, we still want to ensure that resends
get ACKed as soon as possible (and before we start sending off new
requests).

23 years ago[PATCH] RPC over UDP congestion control updates [7/8]
Trond Myklebust [Tue, 16 Jul 2002 08:54:53 +0000 (01:54 -0700)]
[PATCH] RPC over UDP congestion control updates [7/8]

  - Divorce the allocation of free request slots and the congestion
    control. Make the congestion control apply only to when we
    actually send data over the wire. This means that we *do* apply
    congestion control to resent requests: if a timeout has occured,
    and there are too many requests on the wire, delay resending until
    the congestion algorithm allows it.

  - Improve spinlocking by putting the congestion avoidance algoritm
    under xprt->sock_lock. This lock has to be taken *anyway* in
    (almost) all cases where we are updating the congestion control
    data.