1. 08 Feb, 2008 4 commits
    • Linus Torvalds's avatar
      Merge git://git.linux-nfs.org/pub/linux/nfs-2.6 · a6a852e9
      Linus Torvalds authored
      * git://git.linux-nfs.org/pub/linux/nfs-2.6:
        SUNRPC xptrdma: simplify build configuration
        NFS: Fix a potential file corruption issue when writing
      a6a852e9
    • David Sterba's avatar
      ipwireless: driver for PC Card 3G/UMTS modem · 099dc4fb
      David Sterba authored
      The device is manufactured by IPWireless.  In some countries (for
      example Czech Republic, T-Mobile ISP) this card is shipped for service
      called UMTS 4G.
      
      It's a piece of PCMCIA "4G" UMTS PPP networking hardware that presents
      itself as a serial character device (i.e.  looks like usual modem to
      userspace, accepts AT commands, etc).
      Rewieved-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarBen Martel <benm@symmetric.co.nz>
      Signed-off-by: default avatarStephen Blackheath <stephen@symmetric.co.nz>
      Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      099dc4fb
    • James Lentini's avatar
      SUNRPC xptrdma: simplify build configuration · 3211e4eb
      James Lentini authored
      
      Trond and Bruce,
      
      This is a patch for 2.6.25. This is the same version that was sent out
      on December 12 for review (no comments to date).
      
      To simplify the RPC/RDMA client and server build configuration, make
      SUNRPC_XPRT_RDMA a hidden config option that continues to depend on
      SUNRPC and INFINIBAND. The value of SUNRPC_XPRT_RDMA will be:
      
       - N if either SUNRPC or INFINIBAND are N
       - M if both SUNRPC and INFINIBAND are on (M or Y) and at least one is M
       - Y if both SUNRPC and INFINIBAND are Y
      
      In 2.6.25, all of the RPC/RDMA related files are grouped in
      net/sunrpc/xprtrdma and the net/sunrpc/xprtrdma/Makefile builds both
      the client and server RPC/RDMA support using this config option.
      Signed-off-by: default avatarJames Lentini <jlentini@netapp.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      3211e4eb
    • Trond Myklebust's avatar
      NFS: Fix a potential file corruption issue when writing · 5d47a356
      Trond Myklebust authored
      If the inode is flagged as having an invalid mapping, then we can't rely on
      the PageUptodate() flag. Ensure that we don't use the "anti-fragmentation"
      write optimisation in nfs_updatepage(), since that will cause NFS to write
      out areas of the page that are no longer guaranteed to be up to date.
      
      A potential corruption could occur in the following scenario:
      
      client 1			client 2
      ===============			===============
      				fd=open("f",O_CREAT|O_WRONLY,0644);
      				write(fd,"fubar\n",6);	// cache last page
      				close(fd);
      fd=open("f",O_WRONLY|O_APPEND);
      write(fd,"foo\n",4);
      close(fd);
      
      				fd=open("f",O_WRONLY|O_APPEND);
      				write(fd,"bar\n",4);
      				close(fd);
      -----
      The bug may lead to the file "f" reading 'fubar\n\0\0\0\nbar\n' because
      client 2 does not update the cached page after re-opening the file for
      write. Instead it keeps it marked as PageUptodate() until someone calls
      invaldate_inode_pages2() (typically by calling read()).
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      5d47a356
  2. 07 Feb, 2008 36 commits