dlm: use bastmode in debugfs output
[linux-2.6.git] / fs / dlm / lock.c
index d0e43a3da887b8d9f291810c4b69820bb76b63b7..46ffd3eeaaf7350cf1b9b5969722abfe2f9a89b7 100644 (file)
@@ -320,10 +320,12 @@ static void queue_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rqmode)
 {
        lkb->lkb_time_bast = ktime_get();
 
-       if (is_master_copy(lkb))
+       if (is_master_copy(lkb)) {
+               lkb->lkb_bastmode = rqmode; /* printed by debugfs */
                send_bast(r, lkb, rqmode);
-       else
+       } else {
                dlm_add_ast(lkb, AST_BAST, rqmode);
+       }
 }
 
 /*