Skip to contentSkip to conversation

tcmu: fix hung netlink requests and nl related cleanup V2

DISCUSSION Applied Mike Christie 3 participants 3 messages Jun 22, 2018 – Jun 26, 2018 SCSI target

lore
Share & tools
lore
#0 lore raw

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.

Tested-by
#1 lore raw
Quoted 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 valid block_netlink input.
- 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

#2 lore raw
In reply to Mike Christie

Mike,

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