fs: dlm: remove twice INIT_WORK
authorAlexander Aring <aahringo@redhat.com>
Thu, 17 Nov 2022 22:11:47 +0000 (17:11 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Nov 2022 15:45:49 +0000 (09:45 -0600)
This patch removed a twice INIT_WORK() functionality. We already doing
this inside of dlm_lowcomms_init() functionality which is called only
once dlm is loaded.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c

index 0dcb69c..3106e7f 100644 (file)
@@ -1825,7 +1825,6 @@ static int dlm_listen_for_all(void)
        save_listen_callbacks(sock);
        add_listen_sock(sock, &listen_con);
 
-       INIT_WORK(&listen_con.rwork, process_listen_recv_socket);
        result = sock->ops->listen(sock, 5);
        if (result < 0) {
                dlm_close_sock(&listen_con.sock);