Commit 56535dc
Andreas Gruenbacher
gfs2: Add flocks to glockfd debugfs file
Include flock glocks in the "glockfd" debugfs file. Those are similar to the
iopen glocks; while an open file is holding an flock, it is holding the file's
flock glock.
We cannot take f_fl_mutex in gfs2_glockfd_seq_show_flock() or else dumping the
"glockfd" file would block on flock operations. Instead, use the file->f_lock
spin lock to protect the f_fl_gh.gh_gl glock pointer.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 4480c27 commit 56535dc
2 files changed
Lines changed: 43 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
1447 | 1463 | | |
1448 | 1464 | | |
1449 | 1465 | | |
| |||
1475 | 1491 | | |
1476 | 1492 | | |
1477 | 1493 | | |
| 1494 | + | |
1478 | 1495 | | |
| 1496 | + | |
1479 | 1497 | | |
1480 | 1498 | | |
1481 | 1499 | | |
| |||
1486 | 1504 | | |
1487 | 1505 | | |
1488 | 1506 | | |
1489 | | - | |
| 1507 | + | |
1490 | 1508 | | |
1491 | 1509 | | |
1492 | 1510 | | |
| |||
1508 | 1526 | | |
1509 | 1527 | | |
1510 | 1528 | | |
1511 | | - | |
| 1529 | + | |
1512 | 1530 | | |
1513 | 1531 | | |
1514 | 1532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2846 | 2846 | | |
2847 | 2847 | | |
2848 | 2848 | | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
2849 | 2871 | | |
2850 | 2872 | | |
2851 | 2873 | | |
| |||
2859 | 2881 | | |
2860 | 2882 | | |
2861 | 2883 | | |
| 2884 | + | |
2862 | 2885 | | |
2863 | 2886 | | |
2864 | 2887 | | |
| |||
0 commit comments