1. 13 Aug, 2002 22 commits
    • Patrick Mochel's avatar
      Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin · 8137f0c9
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-driverfs-test
      8137f0c9
    • Patrick Mochel's avatar
      Update device model locking · 789e39b0
      Patrick Mochel authored
      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.
      789e39b0
    • Patrick Mochel's avatar
      Fix and prevent bugs in device_register() · 266c24ad
      Patrick Mochel authored
      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.
      266c24ad
    • Linus Torvalds's avatar
      Merge http://linuxusb.bkbits.net/linus-2.5 · 322bdbf7
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      322bdbf7
    • Alexander Viro's avatar
      b2520184
    • Christoph Hellwig's avatar
      [PATCH] fix syscall prototypes in init/do_mounts.c · ac654455
      Christoph Hellwig authored
      Most syscall take a const char * argument in fact, also mark them extern.
      ac654455
    • Tom Rini's avatar
      [PATCH] A generic RTC driver [3/3] · d7278da5
      Tom Rini authored
      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.
      d7278da5
    • Tom Rini's avatar
      [PATCH] A generic RTC driver [2/3] · 23435fb5
      Tom Rini authored
      This is part 2 of 3 of the genrtc driver work.  This is the PPC portion
      of the patch, which creates include/asm-ppc/rtc.h.  This has been in the
      PPC bitkeeper tree for over a month now.
      23435fb5
    • Tom Rini's avatar
      [PATCH] A generic RTC driver [1/3] · a7734ead
      Tom Rini authored
      This is the current version of the genrtc driver from the m68k
      community.  This is slightly different than the version I have sent
      previously in that it has been switched to C99-style initializers,
      which was done in the current m68k CVS tree by Geert Uytterhoeven, and
      the needed changes to select/compile it in general.  I had previously
      asked the m68k community if anyone objected to this being submitted by me,
      and I got Richard Zidlicky's (who's at the top of the file) approval, as
      well as Geert Uytterhoeven's approval.
      a7734ead
    • Albert Cranford's avatar
      [PATCH] 2.5.31 i2c updates · 67fbc2cd
      Albert Cranford authored
      i2c update:
       o Support for SMBus 2.0 PEC Packet Error Checking
       o New adapter-i2c-frodo for SA 1110 board
       o New adapter-i2c-rpx for embeded MPC8XX
       o Replace depreciated cli()&sti() with spin_{un}lock_irq()
       o Updated documentation
      67fbc2cd
    • Hirofumi Ogawa's avatar
      [PATCH] add sendfile() support to fatfs (3/3) · 70f7b4a3
      Hirofumi Ogawa authored
      This patch adds sendfile() support to fatfs.
      70f7b4a3
    • Hirofumi Ogawa's avatar
      [PATCH] Fix generic_file_send() · 242fde60
      Hirofumi Ogawa authored
      sys_sendfile() call,
      
          do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS);
              in_file->f_op->sendfile(out_file, in_file, ppos, count);
      
      But,
      
      ssize_t generic_file_sendfile(struct file *in_file, struct file *out_file,
      			      loff_t *ppos, size_t count)
      
      fist arg of generic_file_sendfile() should be for output. This patch
      fixes this typo.
      242fde60
    • Christoph Hellwig's avatar
      [PATCH] i_sem-less generic_file_write for O_DIRECT & XFS · 8c0b388a
      Christoph Hellwig authored
      There are a number of places where generic_file_write could be used if
      it didn't take i_sem by itself or where it doesn't need it:
      
      (1)	XFS needs to do some preparation in it's write file operation
      	(most notably taking it's own per-inode locks), after taking
      	i_sem, but before calling the guts of generic_file_write.
      (2)	blockdevices are happy with parralel get_block() operations,
      	and there is nothing i_sem could protect.
      
      This patch introduces a generic_file_write_nolock and makes the good old
      generic_file_write a wrapper around.  The block device code is switched
      over to it.
      8c0b388a
    • Linus Torvalds's avatar
      Automerge · 630986cd
      Linus Torvalds authored
      630986cd
    • Rusty Russell's avatar
      [PATCH] Designated initializers for i386 · 7366f03f
      Rusty Russell authored
      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.
      7366f03f
    • Rusty Russell's avatar
      [PATCH] designated initializers for include/linux · b0bb4b4b
      Rusty Russell authored
      These are the completely generic bits (linux/init_task.h and linux/wait.h).
      
      From: Art Haas <ahaas@neosoft.com>
      
        Here's the latest diffs for the files in include/linux.
        Patches are against 2.5.31.
      b0bb4b4b
    • Jens Axboe's avatar
      [PATCH] sym53c8xx_2 · dc513f21
      Jens Axboe authored
      The following patch from Anton Blanchard fixes a problem with the
      sym53c8xx_2 driver in the 2.5 tree.  It assumes that the eh error
      handlers are not called with the host lock held, which they are.
      dc513f21
    • Neil Brown's avatar
      [PATCH] PATCH - RPC/TCP 4 of 4 - Handle short read when reading RPC/TCP packet length · dfc3997c
      Neil Brown authored
      The code already copes with the possibility of having
      read some of the 4byte length but not all, but can never
      get into that situation.  We just need to add a 'return'
      for the case where read got some data but not enough.
      Either 0 or -EAGAIN could be returned, they both have the
      same effect.
      dfc3997c
    • Neil Brown's avatar
      [PATCH] PATCH - RPC/TCP 3 of 4 - Correct error message when rpc/tcp sent fails · d5300a3a
      Neil Brown authored
      Now that we actually do shutdown the socket, we should
      say so instead of just saying that we should....
      d5300a3a
    • Neil Brown's avatar
      [PATCH] PATCH - RPC/TCP 2 of 4 - Allow SO_REUSEADDR for NFS sockets · 6960a867
      Neil Brown authored
      Otherwise if you cannot stop and restart nfsd while a client holds a
      connection.  Why this isn't the default I cannot imagine...
      6960a867
    • Neil Brown's avatar
      [PATCH] Rearrange setting of snd/rcv buf size to avoid locking issue · 3060e011
      Neil Brown authored
      Currently svc_sock_setbuf can be called under a spinlock,
      but it can try to lock a socket, which can block....
      
      Now when we decide that changing the size might be good we
      set a flag (SK_CHNGBUF) and then later (when the next
      packet arrives) we change the sizes appropriately.
      3060e011
    • Ingo Molnar's avatar
      [PATCH] APM TLS fix, 2.5.31-BK · d1269ac7
      Ingo Molnar authored
      This (tested) patch fixes APM support on 2.5.31-BK.  The patch is based
      on Stephen Rothwell's patch.
      d1269ac7
  2. 12 Aug, 2002 3 commits
  3. 13 Aug, 2002 1 commit
    • Anton Altaparmakov's avatar
      NTFS: 2.0.25 - Small bug fixes and cleanups. · 52fdd781
      Anton Altaparmakov authored
      - Unlock the page in an out of memory error code path in
        fs/ntfs/aops.c::ntfs_read_block().
      - If fs/ntfs/aops.c::ntfs_read_page() is called on an uptodate page,
        just unlock the page and return. (This can happen due to ->writepage
        clearing PageUptodate() during write out of MstProtected()
        attributes.
      - Remove leaked write code again.
      52fdd781
  4. 12 Aug, 2002 14 commits