RDS: Add rds_conn_path_error()
rds_conn_path_error() is the MP-aware analog of rds_conn_error, to be used by multipath-capable callers. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
992c9ec5fe
commit
fb1b3dc43d
@@ -655,3 +655,15 @@ __rds_conn_error(struct rds_connection *conn, const char *fmt, ...)
|
||||
|
||||
rds_conn_drop(conn);
|
||||
}
|
||||
|
||||
void
|
||||
__rds_conn_path_error(struct rds_conn_path *cp, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
vprintk(fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
rds_conn_path_drop(cp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user