cifs: fix rmmod regression in cifs.ko caused by force_sig changes
authorSteve French <stfrench@microsoft.com>
Wed, 24 Jul 2019 03:14:29 +0000 (22:14 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 5 Aug 2019 03:02:29 +0000 (22:02 -0500)
Fixes: 72abe3bcf091 ("signal/cifs: Fix cifs_put_tcp_session to call send_sig instead of force_sig")

The global change from force_sig caused module unloading of cifs.ko
to fail (since the cifsd process could not be killed, "rmmod cifs"
now would always fail)

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Eric W. Biederman <ebiederm@xmission.com>
fs/cifs/connect.c

index a4830ce..a15a6e7 100644 (file)
@@ -1113,6 +1113,7 @@ cifs_demultiplex_thread(void *p)
                mempool_resize(cifs_req_poolp, length + cifs_min_rcv);
 
        set_freezable();
+       allow_signal(SIGKILL);
        while (server->tcpStatus != CifsExiting) {
                if (try_to_freeze())
                        continue;