Commit ea3442e
nvme: nvme-fc: move tagset removal to nvme_fc_delete_ctrl()
Now target is removed from nvme_fc_ctrl_free() which is the ctrl->ref
release handler. And even admin queue is unquiesced there, this way
is definitely wrong because the ctr->ref is grabbed when submitting
command.
And Marco observed that nvme_fc_ctrl_free() can be called from request
completion code path, and trigger kernel warning since request completes
from softirq context.
Fix the issue by moveing target removal into nvme_fc_delete_ctrl(),
which is also aligned with nvme-tcp and nvme-rdma.
Patch originally proposed by Ming Lei, then modified to move the tagset
removal down to after nvme_fc_delete_association() after further testing.
Cc: Marco Patalano <[email protected]>
Cc: Ewan Milne <[email protected]>
Cc: James Smart <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Cc: [email protected]
Tested-by: Marco Patalano <[email protected]>
Reviewed-by: Justin Tee <[email protected]>
Signed-off-by: Ewan D. Milne <[email protected]>
Signed-off-by: Keith Busch <[email protected]>1 parent 6d87cd5 commit ea3442e
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2355 | 2355 | | |
2356 | 2356 | | |
2357 | 2357 | | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
2361 | 2358 | | |
2362 | 2359 | | |
2363 | 2360 | | |
2364 | 2361 | | |
2365 | 2362 | | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
2369 | 2363 | | |
2370 | 2364 | | |
2371 | 2365 | | |
| |||
3261 | 3255 | | |
3262 | 3256 | | |
3263 | 3257 | | |
| 3258 | + | |
3264 | 3259 | | |
3265 | 3260 | | |
3266 | 3261 | | |
3267 | 3262 | | |
3268 | 3263 | | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
3269 | 3270 | | |
3270 | 3271 | | |
3271 | 3272 | | |
| |||
0 commit comments