Files
Linux/fs
xuejiufei cc28d6d80f ocfs2/dlm: clear migration_pending when migration target goes down
We have found a BUG on res->migration_pending when migrating lock
resources.  The situation is as follows.

dlm_mark_lockres_migration
  res->migration_pending = 1;
  __dlm_lockres_reserve_ast
  dlm_lockres_release_ast returns with res->migration_pending remains
      because other threads reserve asts
  wait dlm_migration_can_proceed returns 1
  >>>>>>> o2hb found that target goes down and remove target
          from domain_map
  dlm_migration_can_proceed returns 1
  dlm_mark_lockres_migrating returns -ESHOTDOWN with
      res->migration_pending still remains.

When reentering dlm_mark_lockres_migrating(), it will trigger the BUG_ON
with res->migration_pending.  So clear migration_pending when target is
down.

Signed-off-by: Jiufei Xue <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2015-12-29 17:45:49 -08:00
..
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-13 20:34:33 -05:00
2015-11-23 21:11:08 -05:00
…
…
…
…
…
2015-11-16 23:54:45 -08:00
…
…
…
…
…
…
2015-11-11 02:18:27 -05:00
…
2015-11-16 23:54:45 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-13 20:34:33 -05:00