• Zach Brown's avatar
    RDS: don't call rds_conn_shutdown() from rds_conn_destroy() · ffcec0e1
    Zach Brown authored
    rds_conn_shutdown() can return before the connection is shut down when
    it encounters an existing state that it doesn't understand.  This lets
    rds_conn_destroy() then start tearing down the conn from under paths
    that are still using it.
    
    It's more reliable the shutdown work and wait for krdsd to complete the
    shutdown callback.  This stopped some hangs I was seeing where krdsd was
    trying to shut down a freed conn.
    Signed-off-by: default avatarZach Brown <zach.brown@oracle.com>
    ffcec0e1
connection.c 16 KB