Commit 6d1400b
nvme: protect against simultaneous shutdown invocations
commit 77bf25ea70200cddf083f74b7f617e5f07fac8bd upstream.
[Back-ported to 4.4. The difference is the file location of the struct
definition that's adding the mutex.
This fixes reported kernel panics in 4.4-stable from simultaneous
controller resets that was never supposed to be allowed to happen.]
Signed-off-by: Keith Busch <keith.busch@intel.com>
[hch: split from a larger patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 33d1fa4 commit 6d1400b
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2954 | 2954 | | |
2955 | 2955 | | |
2956 | 2956 | | |
| 2957 | + | |
2957 | 2958 | | |
2958 | 2959 | | |
2959 | 2960 | | |
| |||
2972 | 2973 | | |
2973 | 2974 | | |
2974 | 2975 | | |
| 2976 | + | |
2975 | 2977 | | |
2976 | 2978 | | |
2977 | 2979 | | |
| |||
3328 | 3330 | | |
3329 | 3331 | | |
3330 | 3332 | | |
| 3333 | + | |
3331 | 3334 | | |
3332 | 3335 | | |
3333 | 3336 | | |
| |||
0 commit comments