]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9cf79c03fe25b48875dba9d10a5eca31e775cc54
treeb2bcb192801414901aa95b8cfba30788b845b978
parent82a1df493e44e317df2716373fcfd89450a1afc3
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