Commit b2c042c
committed
xen/scsiback: don't call scsiback_free_translation_entry() under lock
scsiback_free_translation_entry() shouldn't be called under spinlock,
as it can sleep.
This requires to split removing a translation entry from the v2p list
from actually calling kref_put() for the entry.
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/lkml/Y+JUIl64UDmdkboh@kadam/
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Link: https://lore.kernel.org/r/20230328084602.20729-1-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>1 parent fae65ef commit b2c042c
1 file changed
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | 1013 | | |
1020 | 1014 | | |
1021 | 1015 | | |
| |||
1024 | 1018 | | |
1025 | 1019 | | |
1026 | 1020 | | |
1027 | | - | |
1028 | 1021 | | |
1029 | 1022 | | |
1030 | 1023 | | |
1031 | 1024 | | |
1032 | 1025 | | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
| 1026 | + | |
1036 | 1027 | | |
1037 | 1028 | | |
1038 | | - | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1039 | 1035 | | |
1040 | 1036 | | |
1041 | 1037 | | |
| |||
1239 | 1235 | | |
1240 | 1236 | | |
1241 | 1237 | | |
| 1238 | + | |
1242 | 1239 | | |
1243 | 1240 | | |
1244 | 1241 | | |
1245 | 1242 | | |
1246 | | - | |
1247 | | - | |
| 1243 | + | |
1248 | 1244 | | |
1249 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1250 | 1251 | | |
1251 | 1252 | | |
1252 | 1253 | | |
| |||
0 commit comments