Commit e725f44
Andreas Gruenbacher
gfs2: Add proper lockspace locking
JIRA: https://issues.redhat.com/browse/RHEL-116886
Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
Conflicts:
RHEL-9 doesn't have commit dc52cd2 ("fs: dlm: fix F_CANCELLK to cancel pending request").
GFS2 has been calling functions like dlm_lock() even after the lockspace
that these functions operate on has been released with
dlm_release_lockspace(). It has always assumed that those functions
would return -EINVAL in that case, but that was never guaranteed, and it
certainly is no longer the case since commit 4db41bf ("dlm: remove
ls_local_handle from struct dlm_ls").
To fix that, add proper lockspace locking.
Fixes: 3e11e53 ("GFS2: ignore unlock failures after withdraw")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
(cherry picked from commit 6ab2655)1 parent 5bb6a38 commit e725f44
4 files changed
+54
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1416 | 1416 | | |
1417 | 1417 | | |
1418 | 1418 | | |
| 1419 | + | |
1419 | 1420 | | |
1420 | 1421 | | |
1421 | 1422 | | |
| |||
1429 | 1430 | | |
1430 | 1431 | | |
1431 | 1432 | | |
1432 | | - | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1438 | 1445 | | |
1439 | 1446 | | |
1440 | 1447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
| 799 | + | |
| 800 | + | |
802 | 801 | | |
803 | 802 | | |
804 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
660 | 662 | | |
661 | 663 | | |
662 | 664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
317 | 322 | | |
318 | 323 | | |
319 | 324 | | |
| |||
362 | 367 | | |
363 | 368 | | |
364 | 369 | | |
365 | | - | |
366 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
367 | 377 | | |
368 | 378 | | |
369 | 379 | | |
| |||
379 | 389 | | |
380 | 390 | | |
381 | 391 | | |
382 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
383 | 398 | | |
384 | 399 | | |
385 | 400 | | |
| |||
560 | 575 | | |
561 | 576 | | |
562 | 577 | | |
563 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
564 | 583 | | |
565 | 584 | | |
566 | 585 | | |
| |||
587 | 606 | | |
588 | 607 | | |
589 | 608 | | |
590 | | - | |
591 | | - | |
592 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
593 | 617 | | |
594 | 618 | | |
595 | 619 | | |
| |||
1315 | 1339 | | |
1316 | 1340 | | |
1317 | 1341 | | |
| 1342 | + | |
1318 | 1343 | | |
1319 | 1344 | | |
1320 | 1345 | | |
| |||
1349 | 1374 | | |
1350 | 1375 | | |
1351 | 1376 | | |
| 1377 | + | |
1352 | 1378 | | |
1353 | 1379 | | |
1354 | 1380 | | |
| |||
1428 | 1454 | | |
1429 | 1455 | | |
1430 | 1456 | | |
| 1457 | + | |
1431 | 1458 | | |
1432 | 1459 | | |
1433 | 1460 | | |
1434 | 1461 | | |
| 1462 | + | |
1435 | 1463 | | |
1436 | 1464 | | |
1437 | 1465 | | |
| |||
0 commit comments