diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2010-01-25 20:58:30 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-02-02 21:56:34 -0500 |
commit | cd34edd8cf80b507bb84b3f0c2988fe05099ffb5 (patch) | |
tree | f6efa7606dbddb08938b1a887ab04e3ef2c6e916 /fs | |
parent | 60c486744c9a30ea60fa863e9587242dde2fe4bd (diff) |
ocfs2/dlm: Handle EAGAIN for compatibility - v2
Mainline commit aad1b15310b9bcd59fa81ab8f2b1513b59553ea8 made the
dlm_begin_reco_handler() return -EAGAIN instead of EAGAIN.
As this error is transmitted over the wire, we want the receiver,
dlm_send_begin_reco_message(), to understand both the older EAGAIN and
the newer -EAGAIN, to allow rolling upgrade of the cluster nodes.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/dlm/dlmrecovery.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index cfb2ae9ab538..ad712211d4ea 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c | |||
@@ -2639,7 +2639,13 @@ retry: | |||
2639 | "begin reco msg (%d)\n", dlm->name, nodenum, ret); | 2639 | "begin reco msg (%d)\n", dlm->name, nodenum, ret); |
2640 | ret = 0; | 2640 | ret = 0; |
2641 | } | 2641 | } |
2642 | if (ret == -EAGAIN) { | 2642 | |
2643 | /* | ||
2644 | * Prior to commit aad1b15310b9bcd59fa81ab8f2b1513b59553ea8, | ||
2645 | * dlm_begin_reco_handler() returned EAGAIN and not -EAGAIN. | ||
2646 | * We are handling both for compatibility reasons. | ||
2647 | */ | ||
2648 | if (ret == -EAGAIN || ret == EAGAIN) { | ||
2643 | mlog(0, "%s: trying to start recovery of node " | 2649 | mlog(0, "%s: trying to start recovery of node " |
2644 | "%u, but node %u is waiting for last recovery " | 2650 | "%u, but node %u is waiting for last recovery " |
2645 | "to complete, backoff for a bit\n", dlm->name, | 2651 | "to complete, backoff for a bit\n", dlm->name, |