1. 29 Apr, 2009 6 commits
    • J. Bruce Fields's avatar
      nfsd4: set shorter timeout · 595947ac
      J. Bruce Fields authored
      We tried to do something overly complicated with the callback rpc
      timeouts here.  And they're wrong--the result is that by the time a
      single callback times out, it's already too late to tell the client
      (using the cb_path_down return to RENEW) that the callback is down.
      
      Use a much shorter, simpler timeout.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      595947ac
    • J. Bruce Fields's avatar
      nfsd4: setclientid_confirm callback-change fixes · f64f79ea
      J. Bruce Fields authored
      This setclientid_confirm case should allow the client to change
      callbacks, but it currently has a dummy implementation that just turns
      off callbacks completely.  That dummy implementation isn't completely
      correct either, though:
      
      	- There's no need to remove any client recovery directory in
      	  this case.
      	- New clientid confirm verifiers should be generated (and
      	  returned) in setclientid; there's no need to generate a new
      	  one here.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      f64f79ea
    • J. Bruce Fields's avatar
      nfsd: quiet compile warning · b8fd47ae
      J. Bruce Fields authored
      Stephen Rothwell said:
      "Today's linux-next build (powerpc ppc64_defconfig) produced this new
      warning:
      
      fs/nfsd/nfs4state.c: In function 'EXPIRED_STATEID':
      fs/nfsd/nfs4state.c:2757: warning: comparison of distinct pointer types lacks a cast
      
      Caused by commit 78155ed7 ("nfsd4:
      distinguish expired from stale stateids")."
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      b8fd47ae
    • J. Bruce Fields's avatar
      nfsd: support ext4 i_version · c654b8a9
      J. Bruce Fields authored
      ext4 supports a real NFSv4 change attribute, which is bumped whenever
      the ctime would be updated, including times when two updates arrive
      within a jiffy of each other.  (Note that although ext4 has space for
      nanosecond-precision ctime, the real resolution is lower: it actually
      uses jiffies as the time-source.)  This ensures clients will invalidate
      their caches when they need to.
      
      There is some fear that keeping the i_version up-to-date could have
      performance drawbacks, so for now it's turned on only by a mount option.
      We hope to do something better eventually.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      Cc: Theodore Tso <tytso@mit.edu>
      c654b8a9
    • J. Bruce Fields's avatar
      nfsd4: delete obsolete xdr comments · 3352d2c2
      J. Bruce Fields authored
      We don't need comments to tell us these macros are ugly.  And we're long
      past trying to share any of this code with the BSD's.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      3352d2c2
    • J. Bruce Fields's avatar
      nfsd: eliminate ENCODE_HEAD macro · bc749ca4
      J. Bruce Fields authored
      This macro doesn't serve any useful purpose.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      bc749ca4
  2. 28 Apr, 2009 19 commits
  3. 24 Apr, 2009 2 commits
  4. 23 Apr, 2009 1 commit
  5. 22 Apr, 2009 5 commits
    • Linus Torvalds's avatar
      Linux 2.6.30-rc3 · 09106974
      Linus Torvalds authored
      09106974
    • Arjan van de Ven's avatar
      driver synchronization: make scsi_wait_scan more advanced · d4d5291c
      Arjan van de Ven authored
      There is currently only one way for userspace to say "wait for my storage
      device to get ready for the modules I just loaded": to load the
      scsi_wait_scan module. Expectations of userspace are that once this
      module is loaded, all the (storage) devices for which the drivers
      were loaded before the module load are present.
      
      Now, there are some issues with the implementation, and the async
      stuff got caught in the middle of this: The existing code only
      waits for the scsy async probing to finish, but it did not take
      into account at all that probing might not have begun yet.
      (Russell ran into this problem on his computer and the fix works for him)
      
      This patch fixes this more thoroughly than the previous "fix", which
      had some bad side effects (namely, for kernel code that wanted to wait for
      the scsi scan it would also do an async sync, which would deadlock if you did
      it from async context already.. there's a report about that on lkml):
      The patch makes the module first wait for all device driver probes, and then it
      will wait for the scsi parallel scan to finish.
      Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
      Tested-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d4d5291c
    • Jonathan Corbet's avatar
      Trivial: fix a typo in slow-work.h · 5dd559f0
      Jonathan Corbet authored
      Fix a comment typo in slow-work.h
      
      ...a trivial mistake, but it will mess up kerneldoc if nothing else.
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5dd559f0
    • David Howells's avatar
      PERCPU: Collect the DECLARE/DEFINE declarations together · 5028eaa9
      David Howells authored
      Collect the DECLARE/DEFINE declarations together in linux/percpu-defs.h so
      that they're in one place, and give them descriptive comments, particularly
      the SHARED_ALIGNED variant.
      
      It would be nice to collect these in linux/percpu.h, but that's not possible
      without sorting out the severe #include recursion between the x86 arch headers
      and the general headers (and possibly other arches too).
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5028eaa9
    • David Howells's avatar
      FRV: Fix the section attribute on UP DECLARE_PER_CPU() · 9b8de747
      David Howells authored
      In non-SMP mode, the variable section attribute specified by DECLARE_PER_CPU()
      does not agree with that specified by DEFINE_PER_CPU().  This means that
      architectures that have a small data section references relative to a base
      register may throw up linkage errors due to too great a displacement between
      where the base register points and the per-CPU variable.
      
      On FRV, the .h declaration says that the variable is in the .sdata section, but
      the .c definition says it's actually in the .data section.  The linker throws
      up the following errors:
      
      kernel/built-in.o: In function `release_task':
      kernel/exit.c:78: relocation truncated to fit: R_FRV_GPREL12 against symbol `per_cpu__process_counts' defined in .data section in kernel/built-in.o
      kernel/exit.c:78: relocation truncated to fit: R_FRV_GPREL12 against symbol `per_cpu__process_counts' defined in .data section in kernel/built-in.o
      
      To fix this, DECLARE_PER_CPU() should simply apply the same section attribute
      as does DEFINE_PER_CPU().  However, this is made slightly more complex by
      virtue of the fact that there are several variants on DEFINE, so these need to
      be matched by variants on DECLARE.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9b8de747
  6. 21 Apr, 2009 7 commits