Skip to content

Commit 2c15bd0

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm: dlm: Fix dlm lock status block comment in dlm.h dlm: Don't send callback to node making lock request when "try 1cb" fails
2 parents 5fe3a5a + 269cddd commit 2c15bd0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎fs/dlm/lock.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,9 @@ static void send_bast_queue(struct dlm_rsb *r, struct list_head *head,
18461846
struct dlm_lkb *gr;
18471847

18481848
list_for_each_entry(gr, head, lkb_statequeue) {
1849+
/* skip self when sending basts to convertqueue */
1850+
if (gr == lkb)
1851+
continue;
18491852
if (gr->lkb_bastfn && modes_require_bast(gr, lkb)) {
18501853
queue_bast(r, gr, lkb->lkb_rqmode);
18511854
gr->lkb_highbast = lkb->lkb_rqmode;

‎include/linux/dlm.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ typedef void dlm_lockspace_t;
4848
*
4949
* 0 if lock request was successful
5050
* -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
5351
* -DLM_EUNLOCK if unlock request was successful
5452
* -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
5555
*/
5656

5757
#define DLM_SBF_DEMOTED 0x01

0 commit comments

Comments
 (0)