- if ( (! (request->flags & SSEND)) &&
- (static_cast<int>(request->size) < xbt_cfg_get_int("smpi/send_is_detached_thresh"))) {
+ if ( (! (request->flags & SSEND)) && ((request->flags & RMA) ||
+ (static_cast<int>(request->size) < xbt_cfg_get_int("smpi/send_is_detached_thresh")))) {