rds.h (3c0a59001a416ec2a1c46576917732fe5b99336b) | rds.h (fb1b3dc43dabd4bf7b57b3d63fd2875a499c81f0) |
---|---|
1#ifndef _RDS_RDS_H 2#define _RDS_RDS_H 3 4#include <net/sock.h> 5#include <linux/scatterlist.h> 6#include <linux/highmem.h> 7#include <rdma/rdma_cm.h> 8#include <linux/mutex.h> --- 655 unchanged lines hidden (view full) --- 664 struct rds_info_lengths *lens, 665 int (*visitor)(struct rds_connection *, void *), 666 size_t item_len); 667__printf(2, 3) 668void __rds_conn_error(struct rds_connection *conn, const char *, ...); 669#define rds_conn_error(conn, fmt...) \ 670 __rds_conn_error(conn, KERN_WARNING "RDS: " fmt) 671 | 1#ifndef _RDS_RDS_H 2#define _RDS_RDS_H 3 4#include <net/sock.h> 5#include <linux/scatterlist.h> 6#include <linux/highmem.h> 7#include <rdma/rdma_cm.h> 8#include <linux/mutex.h> --- 655 unchanged lines hidden (view full) --- 664 struct rds_info_lengths *lens, 665 int (*visitor)(struct rds_connection *, void *), 666 size_t item_len); 667__printf(2, 3) 668void __rds_conn_error(struct rds_connection *conn, const char *, ...); 669#define rds_conn_error(conn, fmt...) \ 670 __rds_conn_error(conn, KERN_WARNING "RDS: " fmt) 671 |
672void __rds_conn_path_error(struct rds_conn_path *cp, const char *, ...); 673#define rds_conn_path_error(cp, fmt...) \ 674 __rds_conn_path_error(cp, KERN_WARNING "RDS: " fmt) 675 |
|
672static inline int 673rds_conn_path_transition(struct rds_conn_path *cp, int old, int new) 674{ 675 return atomic_cmpxchg(&cp->cp_state, old, new) == old; 676} 677 678static inline int 679rds_conn_transition(struct rds_connection *conn, int old, int new) --- 201 unchanged lines hidden --- | 676static inline int 677rds_conn_path_transition(struct rds_conn_path *cp, int old, int new) 678{ 679 return atomic_cmpxchg(&cp->cp_state, old, new) == old; 680} 681 682static inline int 683rds_conn_transition(struct rds_connection *conn, int old, int new) --- 201 unchanged lines hidden --- |