1. 12 Sep, 2002 35 commits
    • David S. Miller's avatar
      Merge nuts.ninka.net:/home/davem/src/BK/network-2.5 · e74cba9e
      David S. Miller authored
      into nuts.ninka.net:/home/davem/src/BK/net-2.5
      e74cba9e
    • David S. Miller's avatar
    • David S. Miller's avatar
      [NAPI]: Set SCHED before dev->open, clear if fails. Restore netif_running... · f6224ba8
      David S. Miller authored
      [NAPI]: Set SCHED before dev->open, clear if fails.  Restore netif_running check to netif_rx_schedule_prep.
      f6224ba8
    • Neil Brown's avatar
      [PATCH] md - Fix problems with freeing gendisk in md.c · c39f7320
      Neil Brown authored
      md currently tries to set_capacity() *after* freeing
      the gendisk structure.
      
      It also frees the gendisk even when switching to read-only.
      
      That patch open-codes free_mddev (which is only called once)
      and cleans all this up.
      c39f7320
    • Neil Brown's avatar
      [PATCH] kNFSd 16: Remove per-client list of exports. · 0713b154
      Neil Brown authored
      This is used:
        to iterate all exports when making /proc/fs/nfs/exports
        to find all exports of a client to unexport them.
      
      The first can just as easily be done by iterating the export_table
      hash table.
      
      The second is very rarely called and can be done by iterating the
      hash table looking for exports for the given client.
      0713b154
    • Neil Brown's avatar
      [PATCH] kNFSd 15: Unite per-client export key hash tables. · 79313e40
      Neil Brown authored
      Instead of a separate hash table per client we now
      have one hash table which includes the client in the key.
      79313e40
    • Neil Brown's avatar
      [PATCH] kNFSd 14: Filehandle lookup makes use of new export table structure. · 981d3487
      Neil Brown authored
      Filehandle lookup currently breaks out the interesting pieces of
      a filehandle and passes them to exp_get or exp_get_fsid, which put the
      pieces back into a filehandle fragment.
      
      We define a new interface "exp_find" which does a lookup based on
      a filehandle fragment to avoid this double handling.
      
      In the process, common code in exp_get_key and exp_get_fsid_key is united
      into exp_find_key.
      
      Also, filehandle composition now uses the mk_fsid_v? inline functions.
      981d3487
    • Neil Brown's avatar
      [PATCH] kNFSd 13: Separate out the multiple keys in the export hash table. · 6d0f7b03
      Neil Brown authored
      Currently each entry in the export table had two hash chains
      going through it, one for hash-by-dev/ino,  One for hash-by-fsid.
      This is contrary to the goal of a simple hash table structure.
      
      The two hash-tables per client are replace by one which stores 'exp_key's
      which contain the key (as a file handle fragment) and a pointer to the
      real export entry.
      
      The export entries are then all stored in a single hash table indexed
      by client+vfsmount+dentry;
      6d0f7b03
    • Neil Brown's avatar
      [PATCH] kNFSd 12: Change exp_parent to talk directory tree, not hash table. · 37dbeea3
      Neil Brown authored
      Currently get_parent (needed to find the exportpoint
      above a given dentry) walks the hash table of export points
      checking each with is_subdir.  Now it walks up the d_parent
      link checking each for membership in the hashtable.
      
      nfsd_lookup currently does that walk too (when crossing
      a mountpoint backwards) so the code gets unified.
      
      This approach makes more sense as we move towards a cache
      for export information that can be filled on demand.
      It also assumes less about the hash table (which will change).
      37dbeea3
    • Neil Brown's avatar
      [PATCH] kNFSd 11: Remove problematic "security" checks when NFS exporting. · 04146816
      Neil Brown authored
      The nfs server currently doesn't allow you to export both a
      directory and an ancestor of that directory on the same filesystem.
      
      This check is more of a problem than a solution and can be
      done in user-space if needed, so it is removed.
      
      The potential for a security problem is because the files
      below the lower directory could be accessed as though it were under
      either of the export points, and so the access control that is
      applied might not be what is expected (by the nieve admin).
      
      e.g.  export /a as readwrite and /a/b as readonly.  Then a/b/c
      can be accessed readwrite as it is in /a which might not be the
      intend.  Altering the user to this can be done in userspace though.
      
      The current restriction also stops exporting / as readonly and
      /tmp as read-write which some people want to do.  Providing
      /tmp is also exported subtree_check (the default) there is no
      security issue here.
      04146816
    • Neil Brown's avatar
      [PATCH] kNFSd 10: Discard ex_dev and ex_ino from svc_export · 9bb4ebc6
      Neil Brown authored
      They can be deduced from ex_dentry
      9bb4ebc6
    • Neil Brown's avatar
      [PATCH] kNFSd 9: Discard cl_addr · d42f5634
      Neil Brown authored
      We currently store the address list with each
      client and use it only to print out comments
      on /proc/fs/nfs/exports
      While these can be helpful, they are not critical and
      could be added back later after we restructure the exports
      table.
      d42f5634
    • Neil Brown's avatar
      [PATCH] kNFSd 8: Don't store path in exports table. · 5488bb08
      Neil Brown authored
      Instead, use d_path to find path from dentry/vfsmnt.
      This requires allocating a buffer at exp_open time,
      and releasing it when closing.
      5488bb08
    • Neil Brown's avatar
      [PATCH] kNFSd 7: Discard cl_idlen · 9c75479d
      Neil Brown authored
      It is never used
      9c75479d
    • Neil Brown's avatar
      [PATCH] kNFSd 6: Expose anon uid and gid in /proc/fs/nfs/exports · 979836d4
      Neil Brown authored
      Don't print if default, which should be "-2", but is currently 65534..
      We really need a 32bit uid interface for 2.6.
      979836d4
    • Neil Brown's avatar
      [PATCH] kNFSd 5: Get rid of ex_parent from svc_export · 3eea06ce
      Neil Brown authored
      I was never entirely sure what it was for, but it
      is not used now, only set, so it can go.
      3eea06ce
    • Neil Brown's avatar
      [PATCH] kNFSd 4: Discard svc_uidmap structure · 8a5d34f3
      Neil Brown authored
      It is un-used and never will be.  uid mapping will be done a
      different way (if at all).
      8a5d34f3
    • Neil Brown's avatar
      [PATCH] kNFSd 3: Increase separation between lockd and nfsd. · 151ddf2e
      Neil Brown authored
      lockd currently asks nfsd for a 'client handle' for each
      request.
      
      This is used as a key for finding (or creating) a 'nlm_host'
      structure, so that there is only one of these per client...almost.
      There can currently be up to 4 nlm_hosts for a given client,
      depending on protocol (udp/tcp) or version (v1 or v4).
      
      But this isn't handled very well.
      
      So the question is: is there any advantage in having only on
      nlm_host per real host, or have we simply have one for each IP
      address that makes requests, whether they are separate hosts or not.
      
      The nlm_host structure is used:
       1/ to hold a lockd rpc client for talking to the
          remote lockd.  Having multiple lockd clients cannot hurt
          except possibly to waste a little space.
       2/ to identify resources to free when we receive notification
          from statd that a client has restarted.
          As statd gets a hostname and looks up all IP addresses,
          and then sends a notification for each IP for which it has
          a registration, there is no need to minimise the number
          of nlm_host structures (each of which register for monitoring).
       3/ to identify resources to free when a client sends a
          "free_all" request.  If a client uses multiple IP addresses to
          create locks, and then sends free_all from just one IP address
          we will loose here.
          However it is not clear that a client would ever want to send
          a free_all request, and the linux client doesn't seem to, so
          there is unlikely to be any loss here.
      
      This patch does not ask nfsd for a client identifier, but rather
      finds an nlm_host based on IP, version, protocol (udp/tcp) and
      whether we are acting as NFS server or client.
      
      All of this information is then placed in the cookie that is
      passed to statd and returned by statd when the client restarts.
      Previously only the IP address was passing the cookie, so possibly
      not all nlm_host structures would have been found.
      
      Because of these changes, lockd does not need to know
      anything about the nfsd export table, so the interface to
      nfsd is much more narrow.
      
      Another consequence is that when nfsd is told to delete a client,
      it cannot tell lockd to forget all the locks for that client.
      However it is not clear that lockd should ever forget any locks
      unless it is told to shutdown (or simulate a shutdown), and in
      anycase, the current nfsd admin tools never tell nfsd to delete
      a client anyway.
      151ddf2e
    • Neil Brown's avatar
      [PATCH] kNFSd 2: Lockd to shutdown without engaging with nfsd · f96e7cb1
      Neil Brown authored
      Currently, when lockd wants to invalidate all it's
      clients, it asks nfsd to iterate through them.  Now
      it iterates itself.
      f96e7cb1
    • Neil Brown's avatar
      [PATCH] kNFSd 1: New structure initialisers for lockd. · 0ec2ca38
      Neil Brown authored
      Just the new structure initialisers.
      0ec2ca38
    • Neil Brown's avatar
      [PATCH] md - 3 of 3 - Fix compile errors when tracing enabled in MD · 44b2fd85
      Neil Brown authored
      both md.c and raid5.c can be compiled with debugging and compile
      errors in this code aren't normally noticed as they aren't even
      compiled.
      
      Now the debugging messages are compiled but optimised out so we will
      always see the errors.
      
      Current errors are fixed.
      44b2fd85
    • Neil Brown's avatar
      [PATCH] md - 2 of 3 - Fix bug in raid5 AGAIN · 6545eefc
      Neil Brown authored
      That recent bug fix in raid5 just changed the bug, it didn't fix it.
      I think that the original code was actually wrong, which didn't
      help.
      
      This time, the code actually matches the nearby comment, that has been expanded
      a bit, so I feel somewhat more confident that it is actually right.
      6545eefc
    • Neil Brown's avatar
      [PATCH] md - 1 of 3 - Remove BUG in md.c that change in 2.5.33 triggers. · 181bdc17
      Neil Brown authored
      Since 2.5.33, the blk_dev[].queue is called without
      the device open, so md_queue_proc can no-longer assume
      that the device is open.
      181bdc17
    • Linus Torvalds's avatar
      Merge bk://jfs.bkbits.net/linux-2.5 · da4c77fc
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      da4c77fc
    • Dave Kleikamp's avatar
      JFS: cleanup -- Remove excessive typedefs · 8916919b
      Dave Kleikamp authored
      8916919b
    • Linus Torvalds's avatar
      Merge http://linux-isdn.bkbits.net/linux-2.5.make · c3b72b7d
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      c3b72b7d
    • Kai Germaschewski's avatar
      kbuild: Use normal rule for preprocessing vmlinux.lds.S · 152d38aa
      Kai Germaschewski authored
      Use the same rule as in Rules.make for preprocessing 
      vmlinux.lds.S, that also gives automatic dependency tracking.
      This means we should also use the standard AFLAGS_... instead
      of CPPFLAGS_... to provide specific additional flags.
      152d38aa
    • Kai Germaschewski's avatar
      kbuild: Fix copying of shipped files · a70dba80
      Kai Germaschewski authored
      When using cp to copy the shipped file to its actual name,
      permissions would be preserved, particularly the copy would be
      read-only when the original was (BitKeeper) read-only, leading
      to an error when executing the rule a second time.
      
      So now we use cat, which will generate a writable file.
      a70dba80
    • Kai Germaschewski's avatar
      kbuild: Fix up non-verbose mode · a3e680c5
      Kai Germaschewski authored
      Just some cosmetical changes to align output in non-verbose mode.
      a3e680c5
    • Daniel Jacobowitz's avatar
      [PATCH] Typo in do_syslog/__down_trylock lockup fix · b9ca16e0
      Daniel Jacobowitz authored
      Linus spotted one cut-n-pasto ('tracing' argument) but didn't see the
      other: we were walking the ptrace_children list by the sibling field.
      
      So we got garbage for your task_structs when this happened.  If the list
      wasn't empty, it would crash.  Strace detaches from all tasks when it
      receives a Control-C so only with enough threads and SMP would this be
      easily seen.
      b9ca16e0
    • Linus Torvalds's avatar
      Merge bk://linuxusb.bkbits.net/linus-2.5 · 916da46b
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      916da46b
    • Jeff Dike's avatar
      [PATCH] UML arch (user-mode Linux) · f2a7c782
      Jeff Dike authored
      This patch implements UML for 2.5.34.
      f2a7c782
    • Jose A. Lopez's avatar
      [PATCH] usbmidi patch · 6cbd4aa9
      Jose A. Lopez authored
      I have changed the name of a local variable "l" to be "j", because with some
      fonts should be difficult to see if [1+l+i] means [2+i] or what.
      6cbd4aa9
    • Oliver Neukum's avatar
      [PATCH] fixes for races in kaweth probe · 90cc0e1a
      Oliver Neukum authored
      using init_etherdev(0, 0) in probe is a race. The struct net_device must be
      allocate and filled before init_etherdev is called, or there's a race which
      creates a network interface that isn't usable.
      The patch for kaweth for 2.5 fixes it.
      90cc0e1a
    • Adam J. Richter's avatar
      [PATCH] Building list of drives in right order · 7fe2a2c5
      Adam J. Richter authored
      	ata_attach in linux-2.5.34/drivers/ide/ide.c builds a list of
      IDE drives that do not yet have a device driver bound to them, in case
      ide-disk, ide-scsi, or whatever driver you want to use is not loaded
      yet.
      
      	The problem was that ata_attach was adding to the head of
      the list, so the list was being built in reverse order.  So, if
      you had two IDE disks, and ide-disk was a loadable module, the
      devfs entries for the disks would be numbered in reverse (the
      first disk would be /dev/discs/disc1, and the second would be
      /dev/discs/disc0).
      
      	This fixes the problem by changing the relevant list_add to
      list_add_tail.  Incidentally, the generic code in drivers/base/ already
      does it this way.
      7fe2a2c5
  2. 11 Sep, 2002 5 commits