RM_CLOSING
rmp->rm_state |= RM_CLOSING;
if (rmp->rm_state & RM_CLOSING) {
if (canputnext(q) || (rmp->rm_state & RM_CLOSING)) {
if (rmp->rm_ref == 0 && (rmp->rm_state & RM_CLOSING)) {