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)
commitfc19de38be924728fea76026c0d1a6c4b6156084
tree31deb86bc1d6b11a2c671ee3c126fc7c27e02264
parentf3c6808d3d8513db2b0543538fc35c25a60fe7a7
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