Whamcloud - gitweb
b=1896:
authorshaver <shaver>
Sat, 20 Sep 2003 16:51:06 +0000 (16:51 +0000)
committershaver <shaver>
Sat, 20 Sep 2003 16:51:06 +0000 (16:51 +0000)
commitb09c3d96f881a7b574b47516ea0452d47959763c
tree1a88ddc8d4c322cad0fdf8e56a11953c177ad37f
parent190e3718400c9e5a3c2a6e87e80b45cc46139c55
b=1896:

Two fixes, both required for this bug:
 - destroy the import when the export is freed, not when it's disconnected
   (which might be due to recovery, and might be racing with ASTs to access
   the same import data).  (Robert's patch plus a comment fix and an
   EXPORT_SYMBOL.)

 - take a reference in ptlrpc_fail_export, because obd_disconnect always nets
   us -2 (all other callers have another reference, either from a request or
   a local-connect artifact), and we only "own" one -- the one in the hash
   table, which represents the network connection.

Also: macroize class_export_put and class_export_get for a major simplification
of export-refcount debugging.
lustre/ldlm/ldlm_lib.c