1. 23 Nov, 2007 40 commits
    • Linus Torvalds's avatar
      Import 2.1.106 · e250954a
      Linus Torvalds authored
      e250954a
    • Linus Torvalds's avatar
      Import 2.1.106pre1 · 9a8f8b7c
      Linus Torvalds authored
      9a8f8b7c
    • Linus Torvalds's avatar
      Linux 2.1.105 · 37cd23b4
      Linus Torvalds authored
      Linux-2.1.105 is out there, and is mainly a "synch to other people and fix
      silly problems" release. It has the 104 kmod and compilation problems
      fixed, and updates some pending patches (notably sound and ham radio
      drivers).
      
                      Linus
      37cd23b4
    • Linus Torvalds's avatar
      [tytso] include/asm-i386/posix_types.h · bfe296ce
      Linus Torvalds authored
      This quick fix eliminates a lot of warning messages when
      compiling e2fsprogs under glibc.  This is because the glibc header files
      defines its own version of FD_SET, FD_ZERO, etc., and so if you need to
      #include the kernel include files, you get a lot of duplicate defined
      macro warning messages.  This patch simply #ifdef's out the kernel
      versions of these function if the kernel is not being compiled and the
      glibc header files are in use.
      bfe296ce
    • Linus Torvalds's avatar
      pre-104 · 17559565
      Linus Torvalds authored
      The bulk of the pre-patch is just some speeling error fixes, but there's a
      one-liner that gets rid of the double interrupts with level-triggered
      irq's on the IO-APIC, and that is known to have fixed one persons SCSI
      tape driver (the fact that there were problems with too many interrupts
      implies that something is slightly buggered in the driver, but..)
      
      This should also have a ne2000 driver that doesn't get a NULL pointer
      fault for some people, and the irq changes should hopefully make it work
      on UP systems again even if the kernel is compiled as SMP.
      And there are some MTRR updates.
      
                      Linus
      17559565
    • Linus Torvalds's avatar
      Linux 2.1.103 · 05d033de
      Linus Torvalds authored
      >   I finnaly get the IRQ detection working with this patch,
      >  in linux-2.1.102/arch/i386/kernel/irq.c :
      Ok, does it still work with 2.1.103?
      2.1.103 has this patch, and also changes certain other things wrt interrupts in
      a way that both Edgar and Ingo seem to agree on, and it's been stable on
      certain boxes where plain 2.1.102 wasn't.
      
      2.1.103 also disables the early Cyrix cpuid stuff, because we now seem to
      have confirmation that this is what corrupts DMA IDE transfers (the cyrix
      code steps on magic motherboard IO ports - which Intel probably put there
      specially to mess with Cyrix. But maybe I'm just cynical). So people that
      have had problems with disk corruption and are brave enough to try, this
      could be an interesting experiment.
      [ Thanks to Gerard Roudier and Alan Cox for chasing down the IDE
        corruption issue, btw ]
      
                      Linus
      05d033de
    • Linus Torvalds's avatar
      Import 2.1.102 · a0024c7b
      Linus Torvalds authored
      a0024c7b
    • Linus Torvalds's avatar
      Import 2.1.102pre2 · c2ecd6ec
      Linus Torvalds authored
      c2ecd6ec
    • Linus Torvalds's avatar
      Import 2.1.102pre1 · cf1748ae
      Linus Torvalds authored
      cf1748ae
    • Linus Torvalds's avatar
      Import 2.1.101 · e948921e
      Linus Torvalds authored
      e948921e
    • Linus Torvalds's avatar
      Import 2.1.100 · 8a0d09a2
      Linus Torvalds authored
      8a0d09a2
    • Linus Torvalds's avatar
      Import 2.1.100pre3 · f2e73398
      Linus Torvalds authored
      f2e73398
    • Linus Torvalds's avatar
      Import 2.1.100pre2 · 57afa237
      Linus Torvalds authored
      57afa237
    • Linus Torvalds's avatar
      Linux 2.1.100pre1 · 5892de9e
      Linus Torvalds authored
      pre-100 (on ftp.kernel.org now), moves the dcache shrinking into the regular
      memory de-allocation loop, and while the exact shrinking speed is probably
      completely off, it should be able to react much better to small-memory machines
      than the hardcoded shrink did..
      
      Also, for those that appear to still have SMP interrupt stability
      problems, Ingo pointed out that we may have problems with PCI
      level-triggered interrupts. Could those people please test an additional
      small patch that involves moving the "ack_APIC_irq();" inside
      arch/i386/kernel/irq.c: do_ioapic_IRQ() from the top of the function to
      the very bottom of that function (that will move it to outside the irq
      controller lock, but it should actually be perfectly ok in this case).
      
                      Linus
      5892de9e
    • Linus Torvalds's avatar
      Import 2.1.99 · 686bb5a7
      Linus Torvalds authored
      686bb5a7
    • Linus Torvalds's avatar
      pre-2.1.99-3 · 6b6e62fd
      Linus Torvalds authored
      There's a new pre-patch on ftp.kernel.org, that does:
      
       - the networking fixes that didn't get into 98 due to various mess-ups
       - mtrr patches are there by default
       - all the irq fixes we know of to date are there (and hopefully even the
         ne2000 things should work with the SELF-IPI change)
       - various documentation updates and bugfixes (the best way to know that a
         stable kernel is approaching is to notice that somebody starts to
         spellcheck the kernel - it has so far never failed)
      
      in short, all known bugs should be fixed, but hey, what else is new?
      
                      Linus
      6b6e62fd
    • Linus Torvalds's avatar
      Import 2.1.99pre2 · 25eaf06c
      Linus Torvalds authored
      25eaf06c
    • Linus Torvalds's avatar
      Linux 2.1.99pre1 · 1b6d23c1
      Linus Torvalds authored
      a cleanup of my previous patches wrt irq handling, and also fixes
      a real bug (we used to ACK the io-apic outside the irq-controller lock,
      which meant that the ack's we did and "ipi_pending[]" might have gotten
      out of sync - which could certainly have resulted in bad behaviour).
      This also re-enables the code that replays interrupts in enable_irq(),
      because it should be ok now that the rest of the code is cleaned up.
      People that had the earlier problem with locking up with floppies, please
      test: if this re-introduces the lockup, please just #if 0 out all the code
      inside trigger_pending_irqs(), and send me a note telling me that that
      code still doesn't work.
      
                      Linus
      1b6d23c1
    • Linus Torvalds's avatar
      Linux 2.1.98 · 61cb5dec
      Linus Torvalds authored
      I just released a fairly small patch to 97 to bring it up to 98.
      
      I've gotten a lot of patches in the mail for the last week, and I've been
      ignoring most of them for obvious reasons. They aren't in any in-queue,
      you can more-or-less consider them lost - but don't resend them all
      immediately, because if I get another huge batch of patches then I'll just
      have to ignore them again.
      
      We're going slow and easy, and the plan is to not only keep me sane in the
      midst of all the diapers, but I'll also at the same time take the
      opportunity to actually enforce the feature-freeze. You've known about it
      for a long time, _tough_.
      
      Anyway, 2.1.98 _should_ fix:
      
       - the IDE/SCSI lockups. The irq enable/disable code was broken, and could
         do some really bad things. This tended to lock up the machine if you
         accessed your IDE disks heavily, or in particular if you had a mixture
         of IDE and SCSI and used them at the same time. Tell me if you still
         have problems - I'm sure there are still bugs left, and I want to hear
         about them.
       - memory management especially on small-memory machines. I think I made a
         good change to the allocation logic, and I'm hoping it will fix the bad
         bahevaiour on those wimpy machines that all you losers out there are
         using that have less than half a Gig of RAM. It certainly still works
         fine on my machine, and I'm certainly still too lazy to test it out on
         anything smaller.
      
      There's a few other updates too: the asm constraints are fixed, so it
      should compile again with other compiler versions than the particular one
      I happen to be using. And some of the SCSI drivers have been updated a
      bit.
      
      There's been a lot of discussion and patches on capabilities, and I
      haven't applied them yet, I'll let them simmer a bit. Similarly, I've seen
      so many pathes to kmod that my head is spinning, and as I don't use
      modules myself I'd really like to get feedback from users about the
      different patches, so that maybe I'll get something that everybody can
      agree on as acceptable. Right now I don't know which patch I should even
      begin looking at.
      
                      Linus
      61cb5dec
    • Linus Torvalds's avatar
      2.1.97 - for brave people only. · 5d2e518d
      Linus Torvalds authored
      I made a 2.1.97 release, in order to synch up with some large patch-sets
      I've gotten (non-x86 architecture updates). But due to the new baby this
      really hasn't been through my usual exhaustive stress-test ("make bzImage"
      + "boot") so buyer beware.
      
                      Linus
      5d2e518d
    • Linus Torvalds's avatar
      Import 2.1.96 · f38a2456
      Linus Torvalds authored
      f38a2456
    • Linus Torvalds's avatar
      Import 2.1.96pre1 · 8e16a50d
      Linus Torvalds authored
      8e16a50d
    • Linus Torvalds's avatar
      Linux 2.1.95 · 6cfe08d0
      Linus Torvalds authored
      This is finally the kind of feature-freeze patch I like: it only contains
      fixes for outright bugs. The fixes are:
       - SMP-safe disk drivers (more on this below)
       - various PCI fixes: /proc/bus/pci works again, and it should compile and
         work on Alpha with TGA.
       - parport interrupt detection uses the standard probe routines, and
         doesn't leave bogus "probe" entries hanging around to confuse people
         (and make other device registration fail)
       - the ever-popular PCI ne netdriver fix
       - the getcwd() system call works again.
       - "mb()" does the right thing on x86 too. Few drivers use it, but more of
         them should. Right now there are drivers that depend on luck making
         sure that the memory accesses will be in the same order outside the CPU
         as inside it.
      
      The conceptually big one is the SMP-safe disk driver change: it's not a
      very big patch, but it's fairly subtle. And it still requires help from
      the disk drivers themselves, although all of them should be safe in UP,
      and I made sure the BusLogic and the NCR driver are safe on SMP.
      The change is really a change in locking defaults: we used to default to
      no locking, and depended on the disk driver getting the locking right.
      None of them did so on SMP, for understandable reasons (there really
      wasn't any support for getting it right).
      
      The new default is to do the locking for the driver, and the driver
      actually has to do some work if it wants to do anything outside the lock.
      This has the obvious advantage that it _defaults_ to being safe, and
      people who know what they are doing can choose to thread the driver if
      they want to.
      
      The only change needed to drivers is to make sure they get the lock on an
      interrupt, which usually involves just doing the following around the
      low/level interrupt handler (the same handler that you register using
      "request_irq()"):
      
              void handle_irq(int irq, void *dev, struct pt_regs *regs)
              {
      +               unsigned long flags;
      +               spin_lock_irqsave(&io_request_lock, flags);
                      ... call to the proper action routines ...
      +               spin_unlock_irqrestore(&io_request_lock, flags);
              }
      
      which guarantees that everything inside the driver is correctly locked
      from the outside world (with the exception of ioctl's etc things that the
      driver traps - they need to be protected too).
      
                      Linus
      6cfe08d0
    • Linus Torvalds's avatar
      Import 2.1.95pre1 · 2dcb1dcf
      Linus Torvalds authored
      2dcb1dcf
    • Linus Torvalds's avatar
      Import 2.1.94 · ad1b31ae
      Linus Torvalds authored
      ad1b31ae
    • Linus Torvalds's avatar
      Linux 2.1.93 · 3dd28001
      Linus Torvalds authored
      2.1.93 is out there. It is broken on other platforms than x86, because I
      had to move some initialization code around, but this shoul dbe very easy
      to fix (moving the device init code later makes a _lot_ of things easier:
      the system is essentially up and running, and "kmalloc()" etc actually
      works).
      
      Now the PCI init code actually has the full SMP knowledge, which it needs
      in order to get the interrupt mapping stuff right (for example - it might
      eventually need it for other reasons too).
      
      The PCI code has generally been cleaned up - thanks to Martin Mares (the
      PCI cleanup is what forced me to do the other changes - anything else
      would simply have been too ugly).
      
      2.1.93 should also fix the stupid things in 92 (modules don't load due to
      missing symbols, and NULL pointer dereferences in /proc under certain
      circumstances etc).
      
      The kernel should also be better at detecting the really low memory
      circumstances, and eventually return NULL instead of just looping forever
      trying to find a page that it won't ever find.
      
                              Linus
      
      [tytso on ext2fs changes:]
      These patches provide the following enhancements to ext2.
              * Fixed a bug where we weren't byte-swapping the feature set
                      flags before checking EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER
              * Added Stephen Tweedie's patches to allow the number of file
                      blocks which will be preallocated to be tuned (instead
                      of being fixed at 8 blocks).
              * Added Stephen Tweedie's patches to allow directory blocks to
                      be preallocated.  This change is only activated if the
                      EXT2_FEATURE_COMPAT_DIR_PREALLOC is enabled.  (There
                      will soon be a new release of e2fsprogs that will
                      allow you to turn this on.)  The change is compatible
                      with older kernels (that's why it's a COMPAT feature),
                      but we need to flag it in the feature set because the
                      e2fsck needs a few changes to support this.
              * Added future support for B-trees in directories.  I have a
                      design in mind which is fully read/only compatible
                      with the existing ext2 directories, which will make
                      its debut in the 2.3 kernel series.  This patch will
                      allow 2.2 kernels to mount filesystems with B-tree
                      directories read-write; if a 2.2 kernel tries to
                      modify a B-tree directory, the B-tree valid bit will
                      be turned off, since the B-tree structures won't be
                      updated by 2.2 kernels.  2.0 kernels will be able to
                      mount filesystems with B-tree directories read-only.
                      This defines a new feature, EXT2_FEATURE_RO_COMPAT_BTREE_DIR.
              * Added Jakub Jelinek's support for large files on 64-bit
                      platforms.  On a 64-bit platform, the first time you
                      expand a file past the 32-bit boundary, the
                      EXT2_FEATURE_RO_COMPAT_LARGE_FILE is turned on.
                      2.0 machines will be able to mount such filesystems
                      read-only.  2.2 kernels on 32-bit platforms will be
                      able such filesystems read-write, but they will only
                      be able to see the first 2**32 bytes of the file, and
                      any attempt to open a large file for read/write access
                      will cause an EBIGF error.
              * Added support for storing the file type in the directory
                      entry.  This optimization was added to BSD 4.4 and
                      makes a very big difference for a number of
                      operations, since application programs can avoid doing
                      a stat in a number of situations.  Support for this is
                      in the GNU user-land utilities, and is in glibc
                      already.  Beyond this patch, we also need to implement
                      a new getdents system call that will return the
                      information all the way to libc.
                      The reason why it's important to get this change into
                      2.2 is that it requires "stealing" 8-bits from the
                      name_len field of the directory entry.  Ext2fs limits
                      you to 255 characters in a file name, so the high-byte
                      of name_len is always zero.  However, older kernels
                      look at both bytes of name_len, and will get confused
                      if we try to store something there.  So we can only
                      update the file type field if the feature
                      EXT2_FEATURE_INCOMPAT_FILETYPE is enabled.
                      I want to get this support into the 2.2 kernel, since
                      even if it isn't used much (because people will want
                      their filesystems to be compatible with 2.0 kernels),
                      we will be able to migrate smoothly to using this
                      feature by default in the future.
      3dd28001
    • Linus Torvalds's avatar
      Linux 2.1.92 - Feature Freeze · 581efda0
      Linus Torvalds authored
      Ok, there's a fairly large patch out there, but as of 2.1.92 I think we
      have a real feature-freeze, and we'll try to get a real code-freeze going
      soon. There are known problems with the sound drivers etc, which is why a
      code-freeze isn't the best suggestion right now, and there are probably
      still bugs with some of the new code, but I'll freeze new features for the
      upcoming 2.2 kernel.
      
      Yes, some people will scream bloody murder, but others will be relieved
      that it finally happened. Thanks especially to David Miller who has been
      doing a great job of getting the TCP stack from its problems just a few
      weeks ago to really shining new heights. That was my main worry about 2.2
      not all that long ago, and was the main reason for having such a slushy
      period for a while.
      
      2.1.92 does:
       - ISDN updates
       - alpha update (yes, SMP finally works, although not really stable yet)
       - networking fixes
       - "getcwd()" system call (not very long, the dcache makes this so
         trivial it is scary)
       - the mm responsiveness updates (they were in 2.1.92-pre2, people seemed
         to have found them very effective)
       - some other (mainly driver updates)
      
      Please do test it all out. Feature-freeze doesn't mean that it is supposed
      to be bug-free yet, but it does mean that we should be moving into
      bugfixing mode in quick order.
      And no, this is not an April 1 thing. But this way I can use April 1 as an
      excuse if something doesn't actually compile.
      
                      Linus
      581efda0
    • Linus Torvalds's avatar
      Import 2.1.92pre2 · 5e71242d
      Linus Torvalds authored
      5e71242d
    • Linus Torvalds's avatar
      Import 2.1.92pre1 · 7df2e632
      Linus Torvalds authored
      7df2e632
    • Linus Torvalds's avatar
      Linux 2.1.91 · cad34273
      Linus Torvalds authored
      I just made a real 91 on ftp.kernel.org, let's hope that this has all the
      sillies gone. As usual, it is prefectly smooth on my machine, but this
      time we also have a better chance of it being smooth on machines with less
      memory too, as Rik has done some good work in testing the algorithms out.
      So throw some problems at it to see just how good it is..
      
                      Linus
      cad34273
    • Linus Torvalds's avatar
      Import 2.1.91pre2 · b884a92a
      Linus Torvalds authored
      b884a92a
    • Linus Torvalds's avatar
      Import 2.1.91pre1 · f26125cb
      Linus Torvalds authored
      f26125cb
    • Linus Torvalds's avatar
      Import 2.1.90 · 53d0479d
      Linus Torvalds authored
      53d0479d
    • Linus Torvalds's avatar
      - Revert TCP delayed ACK fix, and fix correctly. · 1a92894a
      Linus Torvalds authored
        We should not send an ack if we don't have any pending
        (in which case the DACK timer will be set)     (Dave Miller)
      1a92894a
    • Linus Torvalds's avatar
      - Fix TCP delayed ACK stall (Andrea Arcangeli) · a054f123
      Linus Torvalds authored
      - the first cut of my spinlock changes wrt the task lists (Linus)
      a054f123
    • Linus Torvalds's avatar
      I just put a pre-90 on ftp.kernel.org, and I'm happy to report that Davem · 9d11a517
      Linus Torvalds authored
      seems to have found and fixed the TCP performance problem, which means
      that the code-freeze for 2.2 is going to go into effect shortly..
      
      pre-90 does a few other minor things, like for example getting rid of
      kerneld because the new kmod thing is a lot simpler in many ways. Let's
      see what the reaction to that is, but I'm fairly certain that this was a
      major good thing: I've personally never liked kerneld, but kmod seems to
      be a much nicer and more controlled way of handling the same issues that
      kerneld tried to do. I'd actually almost be willing to use the thing
      myself, something that was never true of kerneld.
      
      This also moves the WD7000 SCSI driver to a working status again, thanks
      to Miroslav Zagorac.
      
      But the interesting and important part of the patches are the networking
      fixes from David and Bill Hawes..
      
                      Linus
      9d11a517
    • Linus Torvalds's avatar
      Import 2.1.89 · 3b0db29e
      Linus Torvalds authored
      3b0db29e
    • Linus Torvalds's avatar
      Date: 1 Mar 1998 05:08:07 GMT · de9c00e8
      Linus Torvalds authored
      Subject: Re: INN doesn't work on pre-2.1.89-4 (mmap problem ?)
      From: Linus Torvalds <torvalds@transmeta.com>
      
      I fixed _one_ silly bug wrt writeback to shared files in pre-5
      de9c00e8
    • Linus Torvalds's avatar
      Linux 2.1.89-4 · 17e3d4ce
      Linus Torvalds authored
      It should fix the problem another way that I'm happier with (fixing that
      problem also revealed a few other misuses of close_fp() due to historical
      reasons - the uses really needed to be "fput()"s instead).
      2.1.89-4 also uses "struct file" for mmap's, which means that the problem
      that somebody was complaining about with mmap (that the mapping would
      exist even after the last "release()" on that file, and thus the file
      would still be active) are gone. As of -4 the kernel will guarantee that
      it will call the file->f_op->release() onle after there really aren't any
      uses of that file pointer any more..
      
                      Linus
      17e3d4ce
    • Linus Torvalds's avatar
      Import 2.1.89pre3 · b0532cc2
      Linus Torvalds authored
      b0532cc2