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:
@@ -276,5 +276,6 @@ struct rds_rdma_notify {
|
||||
#define RDS_RDMA_USE_ONCE 0x0008 /* free MR after use */
|
||||
#define RDS_RDMA_DONTWAIT 0x0010 /* Don't wait in SET_BARRIER */
|
||||
#define RDS_RDMA_NOTIFY_ME 0x0020 /* Notify when operation completes */
|
||||
#define RDS_RDMA_SILENT 0x0040 /* Do not interrupt remote */
|
||||
|
||||
#endif /* IB_RDS_H */
|
||||
|
Reference in New Issue
Block a user