diff options
-rw-r--r-- | fs/dlm/lock.c | 3 | ||||
-rw-r--r-- | include/linux/dlm.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 031dbe3a15ca..64e5f3efdd81 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c | |||
@@ -1846,6 +1846,9 @@ static void send_bast_queue(struct dlm_rsb *r, struct list_head *head, | |||
1846 | struct dlm_lkb *gr; | 1846 | struct dlm_lkb *gr; |
1847 | 1847 | ||
1848 | list_for_each_entry(gr, head, lkb_statequeue) { | 1848 | list_for_each_entry(gr, head, lkb_statequeue) { |
1849 | /* skip self when sending basts to convertqueue */ | ||
1850 | if (gr == lkb) | ||
1851 | continue; | ||
1849 | if (gr->lkb_bastfn && modes_require_bast(gr, lkb)) { | 1852 | if (gr->lkb_bastfn && modes_require_bast(gr, lkb)) { |
1850 | queue_bast(r, gr, lkb->lkb_rqmode); | 1853 | queue_bast(r, gr, lkb->lkb_rqmode); |
1851 | gr->lkb_highbast = lkb->lkb_rqmode; | 1854 | gr->lkb_highbast = lkb->lkb_rqmode; |
diff --git a/include/linux/dlm.h b/include/linux/dlm.h index 0b3518c42356..d4e02f5353a0 100644 --- a/include/linux/dlm.h +++ b/include/linux/dlm.h | |||
@@ -48,10 +48,10 @@ typedef void dlm_lockspace_t; | |||
48 | * | 48 | * |
49 | * 0 if lock request was successful | 49 | * 0 if lock request was successful |
50 | * -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE | 50 | * -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE |
51 | * -ENOMEM if there is no memory to process request | ||
52 | * -EINVAL if there are invalid parameters | ||
53 | * -DLM_EUNLOCK if unlock request was successful | 51 | * -DLM_EUNLOCK if unlock request was successful |
54 | * -DLM_ECANCEL if a cancel completed successfully | 52 | * -DLM_ECANCEL if a cancel completed successfully |
53 | * -EDEADLK if a deadlock was detected | ||
54 | * -ETIMEDOUT if the lock request was canceled due to a timeout | ||
55 | */ | 55 | */ |
56 | 56 | ||
57 | #define DLM_SBF_DEMOTED 0x01 | 57 | #define DLM_SBF_DEMOTED 0x01 |