Skip to content
Snippets Groups Projects
  1. Aug 07, 2015
  2. Jul 03, 2015
  3. Jun 01, 2015
    • Sowmini Varadhan's avatar
      net/rds: Add setsockopt support for SO_RDS_TRANSPORT · d97dac54
      Sowmini Varadhan authored
      
      An application may deterministically attach the underlying transport for
      a PF_RDS socket by invoking setsockopt(2) with the SO_RDS_TRANSPORT
      option at the SOL_RDS level. The integer argument to setsockopt must be
      one of the RDS_TRANS_* transport types, e.g., RDS_TRANS_TCP. The option
      must be specified before invoking bind(2) on the socket, and may only
      be used once on the socket. An attempt to set the option on a bound
      socket, or to invoke the option after a successful SO_RDS_TRANSPORT
      attachment, will return EOPNOTSUPP.
      
      Signed-off-by: default avatarSowmini Varadhan <sowmini.varadhan@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d97dac54
  4. Sep 09, 2010
    • Zach Brown's avatar
      RDS: have sockets get transport module references · 5adb5bc6
      Zach Brown authored
      
      Right now there's nothing to stop the various paths that use
      rs->rs_transport from racing with rmmod and executing freed transport
      code.  The simple fix is to have binding to a transport also hold a
      reference to the transport's module, removing this class of races.
      
      We already had an unused t_owner field which was set for the modular
      transports and which wasn't set for the built-in loop transport.
      
      Signed-off-by: default avatarZach Brown <zach.brown@oracle.com>
      5adb5bc6
  5. Aug 24, 2009
  6. Feb 27, 2009
Loading