X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_config.c;h=82ce630c7377285ed063193f768292e9152466bf;hp=8e3a854e9d7f083ca5d8aed0048209637c641d35;hb=5e9b1828ee5a9cb92b85005c0a34962bee56d137;hpb=7947f5262691dfd723e03602809eafa3e6a3c0b8 diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 8e3a854..82ce630 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -439,11 +439,15 @@ int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg) obd->obd_fail = 1; obd->obd_no_transno = 1; obd->obd_no_recov = 1; - /* Set the obd readonly if we can */ - if (OBP(obd, iocontrol)) + if (OBP(obd, iocontrol)) { + obd_iocontrol(OBD_IOC_SYNC, + obd->obd_self_export, + 0, NULL, NULL); + /* Set the obd readonly if we can */ obd_iocontrol(OBD_IOC_SET_READONLY, obd->obd_self_export, 0, NULL, NULL); + } break; default: CERROR("unrecognised flag '%c'\n",