]> git.baikalelectronics.ru Git - kernel.git/commit
RDS/IB: disconnect when IB devices are removed
authorZach Brown <zach.brown@oracle.com>
Mon, 24 May 2010 20:16:57 +0000 (13:16 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:15:19 +0000 (18:15 -0700)
commitf17995132d78c490693e85058f8b49952071eb83
tree31deb86bc1d6b11a2c671ee3c126fc7c27e02264
parentf313141fd2fc7f0528794c5b504e066e06fa44ea
RDS/IB: disconnect when IB devices are removed

Currently IB device removal destroys connections which are associated with the
device.  This prevents connections from being re-established when replacement
devices are added.

Instead we'll queue shutdown work on the connections as their devices are
removed.  When we see that devices are added we triger connection attempts on
all connections that don't currently have a device.

The result is that RDS sockets can resume device-independent work (bcopy, not
RDMA) across IB device removal and restoration.

Signed-off-by: Zach Brown <zach.brown@oracle.com>
net/rds/ib.c