Whamcloud - gitweb
b=17194
authoryury <yury>
Wed, 1 Oct 2008 14:11:16 +0000 (14:11 +0000)
committeryury <yury>
Wed, 1 Oct 2008 14:11:16 +0000 (14:11 +0000)
r=adilger,oleg

during abort recovery starts, stale export processing is slow

lustre/include/lustre_export.h

index 48d8a88..3ca706f 100644 (file)
@@ -113,6 +113,12 @@ typedef struct nid_stat {
         int                      nid_exp_ref_count;
 } nid_stat_t;
 
+enum obd_option {
+        OBD_OPT_FORCE =         0x0001,
+        OBD_OPT_FAILOVER =      0x0002,
+        OBD_OPT_ABORT_RECOV =   0x0004,
+};
+
 struct obd_export {
         struct portals_handle     exp_handle;
         atomic_t                  exp_refcount;
@@ -140,7 +146,7 @@ struct obd_export {
         spinlock_t                exp_lock; /* protects flags int below */
         /* ^ protects exp_outstanding_replies too */
         __u64                     exp_connect_flags;
-        int                       exp_flags;
+        enum obd_option           exp_flags;
         unsigned long             exp_failed:1,
                                   exp_in_recovery:1,
                                   exp_disconnected:1,