1. 29 Jul, 2017 4 commits
    • Ursula Braun's avatar
      net/smc: serialize connection creation in all cases · 977bb324
      Ursula Braun authored
      If a link group for a new server connection exists already, the mutex
      serializing the determination of link groups is given up early.
      The coming registration of memory regions benefits from the serialization
      as well, if the mutex is held till connection creation is finished.
      This patch postpones the unlocking of the link group creation mutex.
      Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      977bb324
    • David S. Miller's avatar
      Merge branch 'inet6_protocol-const' · bdb0effc
      David S. Miller authored
      Julia Lawall says:
      
      ====================
      constify inet6_protocol structures
      
      The inet6_protocol structure is only passed as the first argument to
      inet6_add_protocol or inet6_del_protocol, both of which are declared as
      const.  Thus the inet6_protocol structure itself can be const.
      
      Done with the help of Coccinelle.
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      
      static struct inet6_protocol i@p = { ... };
      
      @ok1@
      identifier r.i;
      expression e1;
      position p;
      @@
      
       \(inet6_add_protocol\|inet6_del_protocol\)(&i@p,...)
      
      @bad@
      position p != {r.p,ok1.p};
      identifier r.i;
      struct inet6_protocol e;
      @@
      
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      
      static
      +const
       struct inet6_protocol i = { ... };
      // </smpl>
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bdb0effc
    • Julia Lawall's avatar
      l2tp: constify inet6_protocol structures · d04916a4
      Julia Lawall authored
      The inet6_protocol structure is only passed as the first argument to
      inet6_add_protocol or inet6_del_protocol, both of which are declared as
      const.  Thus the inet6_protocol structure itself can be const.
      
      Also drop __read_mostly on the newly const structure.
      
      Done with the help of Coccinelle.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d04916a4
    • Julia Lawall's avatar
      ipv6: constify inet6_protocol structures · 3a3a4e30
      Julia Lawall authored
      The inet6_protocol structure is only passed as the first argument to
      inet6_add_protocol or inet6_del_protocol, both of which are declared as
      const.  Thus the inet6_protocol structure itself can be const.
      
      Also drop __read_mostly where present on the newly const structures.
      
      Done with the help of Coccinelle.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3a3a4e30
  2. 28 Jul, 2017 8 commits
  3. 27 Jul, 2017 8 commits
  4. 26 Jul, 2017 19 commits
  5. 25 Jul, 2017 1 commit