tcmu: fix hung netlink requests and nl related cleanup V2
The following patches fix the issues where the userspace daemon has crashed and left netlink requests dangling. The daemon can now block the interface, kill outstanding requests, reopen the netlink socket and then unblock and execute new requests.
The patches were made over Martin's for-next branch.
v2:
- Return BUSY error immediately when there is a running command.
- Fix nl skb leak when device is blocked.
- Fix check for valid block_netlink input.
- Break out nl code cleanup into separate patch.
Xiubo Li
Tested-byQuoted 5 lines · Mike Christie
The following patches fix the issues where the userspace daemon has crashed and left netlink requests dangling. The daemon can now block the interface, kill outstanding requests, reopen the netlink socket and then unblock and execute new requests.
Quoted 7 lines
The patches were made over Martin's for-next branch.
v2:
- Return BUSY error immediately when there is a running command.
- Fix nl skb leak when device is blocked.
- Fix check for validblock_netlinkinput.
- Break out nl code cleanup into separate patch.
Tested it with the corner cases, which are mainly for adding and removing cases.
BRs
Xiubo
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Martin K. Petersen
AppliedMike,
Quoted 4 lines
The following patches fix the issues where the userspace daemon has crashed and left netlink requests dangling. The daemon can now block the interface, kill outstanding requests, reopen the netlink socket and then unblock and execute new requests.
Applied to 4.19/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering