Commit 0dbc1b4
vdpa/mlx5: Avoid using reslock in event_handler
event_handler runs under atomic context and may not acquire reslock. We
can still guarantee that the handler won't be called after suspend by
clearing nb_registered, unregistering the handler and flushing the
workqueue.
Signed-off-by: Eli Cohen <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>1 parent 1ab5376 commit 0dbc1b4
1 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2845 | 2845 | | |
2846 | 2846 | | |
2847 | 2847 | | |
2848 | | - | |
2849 | 2848 | | |
| 2849 | + | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | 2852 | | |
| |||
3024 | 3024 | | |
3025 | 3025 | | |
3026 | 3026 | | |
3027 | | - | |
| 3027 | + | |
3028 | 3028 | | |
3029 | 3029 | | |
3030 | 3030 | | |
| |||
3041 | 3041 | | |
3042 | 3042 | | |
3043 | 3043 | | |
3044 | | - | |
3045 | | - | |
3046 | | - | |
3047 | | - | |
3048 | | - | |
3049 | 3044 | | |
3050 | | - | |
3051 | | - | |
| 3045 | + | |
3052 | 3046 | | |
3053 | | - | |
3054 | 3047 | | |
3055 | 3048 | | |
3056 | 3049 | | |
3057 | 3050 | | |
3058 | | - | |
3059 | 3051 | | |
3060 | 3052 | | |
3061 | 3053 | | |
| |||
3242 | 3234 | | |
3243 | 3235 | | |
3244 | 3236 | | |
3245 | | - | |
3246 | 3237 | | |
| 3238 | + | |
3247 | 3239 | | |
3248 | 3240 | | |
3249 | 3241 | | |
| |||
0 commit comments