diff options
author | jiangyiwen <[email protected]> | 2014-06-23 13:22:09 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-06-23 16:47:45 -0700 |
commit | b9aaac5a6b7d228435fcb80963d41c274406011b (patch) | |
tree | 65c6e7a065d171d691b32391b5ccd81fe4b948bd /net/unix/af_unix.c | |
parent | 595297a8f9bc27f8f4a537fd57ed6d0a2060fb46 (diff) |
ocfs2: do not return DLM_MIGRATE_RESPONSE_MASTERY_REF to avoid endless,loop during umount
The following case may lead to endless loop during umount.
node A node B node C node D
umount volume,
migrate lockres1
to B
want to lock lockres1,
send
MASTER_REQUEST_MSG
to C
init block mle
send
MIGRATE_REQUEST_MSG
to C
find a block
mle, and then
return
DLM_MIGRATE_RESPONSE_MASTERY_REF
to B
set C in refmap
umount successfully
try to umount, endless
loop occurs when migrate
lockres1 since C is in
refmap
So we can fix this endless loop case by only returning
DLM_MIGRATE_RESPONSE_MASTERY_REF if it has a mastery mle when receiving
MIGRATE_REQUEST_MSG.
[[email protected]: coding-style fixes]
Signed-off-by: jiangyiwen <[email protected]>
Reviewed-by: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Xue jiufei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions