Repository navigation
Commit db525fc
scsi_debug: deadlock between completions and surprise module removal
A deadlock has been reported when the completion
of SCSI commands (simulated by a timer) was surprised
by a module removal. This patch removes one half of
the offending locks around timer deletions. This fix
is applied both to stop_all_queued() which is were
the deadlock was discovered and stop_queued_cmnd()
which has very similar logic.
This patch should be applied both to the lk 3.17 tree
and Christoph's drivers-for-3.18 tree.
Tested-and-reported-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent a41a9ad commit db525fc
1 file changed
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2743 | 2743 | | |
2744 | 2744 | | |
2745 | 2745 | | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
2746 | 2753 | | |
2747 | 2754 | | |
2748 | 2755 | | |
| |||
2755 | 2762 | | |
2756 | 2763 | | |
2757 | 2764 | | |
2758 | | - | |
2759 | | - | |
2760 | | - | |
2761 | | - | |
2762 | | - | |
2763 | | - | |
2764 | | - | |
| 2765 | + | |
| 2766 | + | |
2765 | 2767 | | |
2766 | 2768 | | |
2767 | 2769 | | |
2768 | 2770 | | |
2769 | | - | |
| 2771 | + | |
2770 | 2772 | | |
2771 | 2773 | | |
2772 | 2774 | | |
| |||
2782 | 2784 | | |
2783 | 2785 | | |
2784 | 2786 | | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
2785 | 2794 | | |
2786 | 2795 | | |
2787 | 2796 | | |
| |||
2794 | 2803 | | |
2795 | 2804 | | |
2796 | 2805 | | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | | - | |
2801 | | - | |
2802 | | - | |
| 2806 | + | |
| 2807 | + | |
2803 | 2808 | | |
2804 | 2809 | | |
2805 | 2810 | | |
| |||
0 commit comments