1. 11 Jun, 2003 10 commits
    • J. Bruce Fields's avatar
      This makes several changes to the gss upcalls · 620563dd
      J. Bruce Fields authored
        1. Currently rpc_queue_upcall returns -EPIPE if we make an upcall on a pipe
           that userland hasn't opened yet, and we timeout and retry later.  This
           can lead to an unnecessary delay on mount, because rpc.gssd is racing
           to open the newly created pipe while the nfs code is making the first
           upcall.  If rpc.gssd loses, then we end up with a delay equal to the
           length of the timeout.  So instead we allow rpc_queue_upcall to queue
           upcalls on pipes that aren't opened yet.  To deal with the case of
           other upcall-users (e.g., the name<->uid mapping upcall code) who
           do want to know if the pipe isn't open (in the name<->uid case you can
           choose just to map everyone to nobody if the user doesn't want to run
           idmapd), we add a flag parameter to rpc_mkpipe that allows us to choose
           the kind of behavior we want at the time we create the pipe.
      
        2. Currently gss_msg's are destroyed the moment they have been completely
           read (by the call to destroy_msg in rpc_pipe_read).  This means an
           rpc_wake_up is done then, and can't be done later (because the gss_msg is
           gone, along with gss_msg->waitq).  It will typically be some time yet
           before the downcall comes, so the woken-up processes will have to wait and
           retry later; as above this leads to unnecessary delays.  Also, since the
           gss_msg is deleted from the list of gss_msgs's, we forget that an upcall
           to get creds for the user in question is still pending, so multiple
           unnecessary upcalls will be made.  This patch changes gss_pipe_upcall to
           never update msg->copied so that rpc_pipe_read never destroys the message.
           Instead, we wait till a downcall arrives to remove the upcall, using the
           new function __rpc_purge_one_upcall, which searches the list of pending
           rpc_pipe_msg's on the inode as well as checking the current upcall, to
           deal with the case where rpc.gssd might preemptively create a context for
           a user that there's already a pending upcall for.  Note also that this
           means that repeated reads by rpc.gssd will return the same data until
           rpc.gssd does a downcall.  This also gives us a better chance of
           recovering from rpc.gssd crashes.
      620563dd
    • J. Bruce Fields's avatar
      allow gssd to communicate failure to initialize contexts back to the kernel, so · 315a0e34
      J. Bruce Fields authored
      the kernel can return -EACCES when a user lacks credentials, instead of just
      hanging until they kinit.
      315a0e34
    • J. Bruce Fields's avatar
    • J. Bruce Fields's avatar
      Add a "protocol: udp/tcp" line so that gssd can use the same protocol for · 9bd741ae
      J. Bruce Fields authored
      null calls that was specified in the mount options.
      9bd741ae
    • J. Bruce Fields's avatar
    • J. Bruce Fields's avatar
      gss_marshal and gss_validate depend on gss_cred_get_ctx never returning NULL; · d90186e6
      J. Bruce Fields authored
      but gss_refresh depends on gss_cred_get_ctx returning NULL whenever the cred is
      not up to date.  So, I replaced the single gss_cred_get_ctx by a
      gss_cred_get_ctx and a gss_cred_get_uptodate_ctx.
      d90186e6
    • Trond Myklebust's avatar
      Fix udp_data_ready() to use the correct skbuff interface for extracting · c9c31a36
      Trond Myklebust authored
      the XID. Following the introduction of zero-copy under UDP, the data
      may be entirely located in pages under skb_shinfo(skb)->frags[].
      c9c31a36
    • Linus Torvalds's avatar
      Merge bk://ldm.bkbits.net/linux-2.5-core · 97ef4805
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      97ef4805
    • Patrick Mochel's avatar
      Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin · b6f43d8d
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
      b6f43d8d
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk · 75006b98
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      75006b98
  2. 12 Jun, 2003 1 commit
    • Nicolas Pitre's avatar
      [ARM PATCH] 1540/2: fixes for gcc-3.3 · d76641fa
      Nicolas Pitre authored
      Patch from Nicolas Pitre
      
      > Patch #1540/1 has had the following note added:
      > 
      > Ok, it seems that we've had this for years and years, and it hasn't been
      > causing a problem.  We've now got -Wa,-mno-fpu which should catch anything
      > which shouldn't be used anyway.
      > 
      > Could you send a new patch for this change please?
      > 
      > Update by: Russell King
      
      Here it is.
      d76641fa
  3. 11 Jun, 2003 5 commits
  4. 12 Jun, 2003 4 commits
    • Dominik Brodowski's avatar
      [PCMCIA] Rename tcic.c socket_info_t · ea814ca7
      Dominik Brodowski authored
      Rename the socket_info_t inside tcic.c to struct tcic_socket. At one
      time there were at least five different "socket_info_t" within cardmgr
      / linux/drivers/pcmcia. Let's get rid of all of them to avoid
      confusion in future.
      ea814ca7
    • Dominik Brodowski's avatar
      [PCMCIA] rename i82365.c socket_info_t · 021830b2
      Dominik Brodowski authored
      Rename the socket_info_t inside tcic.c to struct i82365_socket. At one
      time there were at least five different "socket_info_t" within cardmgr
      / linux/drivers/pcmcia. Let's get rid of all of them to avoid
      confusion in future.
      021830b2
    • Dominik Brodowski's avatar
      [PCMCIA] i82365 depends on ISA. · 9493b334
      Dominik Brodowski authored
      The i82365 doesn't work unless CONFIG_ISA is set -- see this from
      i82365_init:
      
      ...
      
          sockets = 0;
      
      #ifdef CONFIG_ISA
          isa_probe();
      #endif
      
          if (sockets == 0) {
              printk("not found.\n");
              driver_unregister(&i82365_driver);
              return -ENODEV;
          }
      
      ...
      
      So, remove all instances of CONFIG_ISA from i82365.c and add a
      dependency to the Kconfig file.
      9493b334
    • Dominik Brodowski's avatar
      [PCMCIA] Remove socket_info_t · 91a32a40
      Dominik Brodowski authored
      Get rid of the
      
      typedef struct pcmcia_socket socket_info_t;
      
      by replacing all remaining usages of cs_internal's socket_info_t with
      struct pcmcia_socket.
      91a32a40
  5. 11 Jun, 2003 20 commits