OSDN Git Service

scsi: tcmu: add module wide block/reset_netlink support
authorMike Christie <mchristi@redhat.com>
Fri, 22 Jun 2018 21:40:22 +0000 (16:40 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:27:06 +0000 (12:27 -0400)
commitbdaeedc1bea9e833196b5c7eb0ffd74edf9c863e
treeb2bcb192801414901aa95b8cfba30788b845b978
parent06add777bd0aa764a2252e80c46ecc55ddc29dd1
scsi: tcmu: add module wide block/reset_netlink support

This patch based on Xiubo's patches adds 2 tcmu attr to block and reset the
netlink interface. It's used during userspace daemon reinitialization after
the daemon has crashed while there is outstanding nl requests. The daemon
can block the nl interface, kill outstanding requests in the kernel and
then reopen the netlink socket and unblock it to allow new requests.

[mkp: typo]

Signed-off-by: Mike Christie <mchristi@redhat.com>
Tested-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c