From 73a0a92a6d89f59b1014371b13e1bfe924d647c6 Mon Sep 17 00:00:00 2001 From: yury Date: Wed, 1 Oct 2008 14:11:26 +0000 Subject: [PATCH] b=17194 r=adilger,oleg during abort recovery starts, stale export processing is slow --- lustre/include/obd_class.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index 0df4589..c24a4bf 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -223,10 +223,19 @@ void class_disconnect_exports(struct obd_device *obddev); void class_set_export_delayed(struct obd_export *exp); void class_handle_stale_exports(struct obd_device *obddev); void class_disconnect_expired_exports(struct obd_device *obd); -void class_disconnect_stale_exports(struct obd_device *obd); +void class_disconnect_stale_exports(struct obd_device *obddev, + enum obd_option flags); int class_stale_export_list(struct obd_device *obd, struct obd_ioctl_data *data); int class_manual_cleanup(struct obd_device *obd); +static inline enum obd_option exp_flags_from_obd(struct obd_device *obd) +{ + return ((obd->obd_fail ? OBD_OPT_FAILOVER : 0) | + (obd->obd_force ? OBD_OPT_FORCE : 0) | + (obd->obd_abort_recovery ? OBD_OPT_ABORT_RECOV : 0) | + 0); +} + /* obdo.c */ void obdo_cpy_md(struct obdo *dst, struct obdo *src, obd_flag valid); void obdo_to_ioobj(struct obdo *oa, struct obd_ioobj *ioobj); -- 1.8.3.1