s3:smbd: remove pointless respond_to_all_remaining_local_messages() function
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Jan 2009 09:07:45 +0000 (10:07 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jan 2009 14:28:10 +0000 (15:28 +0100)
This the process_kernel_oplock() function never response to messages,
it only generates messages to ourself.

metze

source3/include/proto.h
source3/smbd/process.c
source3/smbd/server.c

index dd5b601c2c703c0f2f041a0494287d44c7b3f1a1..1713760666703aecb58e0db2a18a5d98467285f8 100644 (file)
@@ -7126,7 +7126,6 @@ struct idle_event *event_add_idle(struct event_context *event_ctx,
                                                  void *private_data),
                                  void *private_data);
 NTSTATUS allow_new_trans(struct trans_state *list, int mid);
-void respond_to_all_remaining_local_messages(void);
 void reply_outbuf(struct smb_request *req, uint8 num_words, uint32 num_bytes);
 const char *smb_fn_name(int type);
 void add_to_common_flags2(uint32 v);
index 2326bdab90a2548b29edb9b6a46fa8d0fe12ae27..9527d948252ea7ebfb9d1e9d78875f5ead21ec76 100644 (file)
@@ -904,31 +904,6 @@ NTSTATUS allow_new_trans(struct trans_state *list, int mid)
        return NT_STATUS_OK;
 }
 
-/****************************************************************************
- We're terminating and have closed all our files/connections etc.
- If there are any pending local messages we need to respond to them
- before termination so that other smbds don't think we just died whilst
- holding oplocks.
-****************************************************************************/
-
-void respond_to_all_remaining_local_messages(void)
-{
-       /*
-        * Assert we have no exclusive open oplocks.
-        */
-
-       if(get_number_of_exclusive_open_oplocks()) {
-               DEBUG(0,("respond_to_all_remaining_local_messages: PANIC : we have %d exclusive oplocks.\n",
-                       get_number_of_exclusive_open_oplocks() ));
-               return;
-       }
-
-       process_kernel_oplocks(smbd_messaging_context());
-
-       return;
-}
-
-
 /*
 These flags determine some of the permissions required to do an operation 
 
index e6ea5f39865ec8bcd592b28688196a78183451f3..7bc96ff5fbf04e771c02fcba1242f3f532d751cd 100644 (file)
@@ -832,8 +832,6 @@ static void exit_server_common(enum server_exit_reason how,
        /* delete our entry in the connections database. */
        yield_connection(NULL,"");
 
-       respond_to_all_remaining_local_messages();
-
 #ifdef WITH_DFS
        if (dcelogin_atmost_once) {
                dfs_unlogin();