RDS: Add flag for silent ops. Do atomic op before RDMA
Add a flag to the API so users can indicate they want silent operations. This is needed because silent ops cannot be used with USE_ONCE MRs, so we can't just assume silent. Also, change send_xmit to do atomic op before rdma op if both are present, and centralize the hairy logic to determine if we want to attempt silent, or not. Signed-off-by: Andy Grover <andy.grover@oracle.com>
This commit is contained in:
@@ -319,6 +319,7 @@ struct rds_message {
|
||||
unsigned int op_notify:1;
|
||||
unsigned int op_recverr:1;
|
||||
unsigned int op_mapped:1;
|
||||
unsigned int op_silent:1;
|
||||
unsigned int op_active:1;
|
||||
struct scatterlist *op_sg;
|
||||
struct rds_notifier *op_notifier;
|
||||
@@ -333,6 +334,7 @@ struct rds_message {
|
||||
unsigned int op_notify:1;
|
||||
unsigned int op_recverr:1;
|
||||
unsigned int op_mapped:1;
|
||||
unsigned int op_silent:1;
|
||||
unsigned int op_active:1;
|
||||
unsigned int op_bytes;
|
||||
unsigned int op_nents;
|
||||
|
Reference in New Issue
Block a user