Commit f72bf1f
lustre: hold lock while walking changelog dev list
This patch came from the 2.10.5 branch of AmazonFSxLustreClient repo.
The patch from that repo is:
mdc: hold lock while walking changelog dev list (LU-12566)
Prevent the following GPF which is causing stuck processes,
when running mount and umount concurrently on the same host.
general protection fault: 0000 [#1] SMP PTI
...
RIP: 0010:mdc_changelog_cdev_finish+0x3f/0x1b9 [mdc]
...
Call Trace:
mdc_precleanup+0x2a/0x3c0 [mdc]
Original patch was:
LU-12566 mdc: hold lock while walking changelog dev list
In mdc_changelog_cdev_finish() we need chlg_registered_dev_lock
while walking and changing entries on the chlog_registered_devs
and ced_obds lists in chlg_registered_dev_find_by_obd().
Move the calling of chlg_registered_dev_find_by_obd() under the
mutex, and add assertions to the places where the lists are walked
and changed that the mutex is held.
Lustre-change: https://review.whamcloud.com/35668
Lustre-commit: a260c530801db7f58efa93b774f06b0ce72649a3
Fixes: 1d40214d96dd ("LU-7659 mdc: expose changelog through char devices")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib62fdff87cde6a4bcfb9bea24a2ea72a933ebbe5
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35835
Signed-off-by: Andy Strohman <astroh@amazon.com>1 parent 0675443 commit f72bf1f
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
615 | 616 | | |
616 | 617 | | |
617 | 618 | | |
| |||
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| 634 | + | |
633 | 635 | | |
634 | 636 | | |
635 | 637 | | |
| |||
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| 707 | + | |
705 | 708 | | |
706 | 709 | | |
707 | 710 | | |
| |||
713 | 716 | | |
714 | 717 | | |
715 | 718 | | |
716 | | - | |
717 | | - | |
| 719 | + | |
718 | 720 | | |
| 721 | + | |
719 | 722 | | |
| 723 | + | |
720 | 724 | | |
721 | 725 | | |
722 | 726 | | |
| |||
0 commit comments