diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-04 18:25:02 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-05 11:06:26 +0200 |
commit | f22e58bcd35a5219463863f7dae2d771d9cd5f0b (patch) | |
tree | 2eafce00a9bc05fe3da01d098add96968bb8c275 /source3/smbd | |
parent | 50db5cb0dfaad0c556c375dee20ee6a2ee881db4 (diff) | |
download | samba-f22e58bcd35a5219463863f7dae2d771d9cd5f0b.tar.gz samba-f22e58bcd35a5219463863f7dae2d771d9cd5f0b.tar.bz2 samba-f22e58bcd35a5219463863f7dae2d771d9cd5f0b.zip |
s3: Remove smbd_messaging_context() from notify_deferred_opens()
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/close.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index b35d544630..b5cc07dda3 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -21,6 +21,7 @@ #include "includes.h" #include "librpc/gen_ndr/messaging.h" +#include "smbd/globals.h" /**************************************************************************** Run a file if it is a magic script. @@ -152,7 +153,8 @@ static NTSTATUS close_filestruct(files_struct *fsp) If any deferred opens are waiting on this close, notify them. ****************************************************************************/ -static void notify_deferred_opens(struct share_mode_lock *lck) +static void notify_deferred_opens(struct messaging_context *msg_ctx, + struct share_mode_lock *lck) { int i; @@ -180,8 +182,7 @@ static void notify_deferred_opens(struct share_mode_lock *lck) share_mode_entry_to_message(msg, e); - messaging_send_buf(smbd_messaging_context(), - e->pid, MSG_SMB_OPEN_RETRY, + messaging_send_buf(msg_ctx, e->pid, MSG_SMB_OPEN_RETRY, (uint8 *)msg, MSG_SMB_SHARE_MODE_ENTRY_SIZE); } @@ -361,7 +362,7 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, } /* Notify any deferred opens waiting on this close. */ - notify_deferred_opens(lck); + notify_deferred_opens(conn->sconn->msg_ctx, lck); reply_to_oplock_break_requests(fsp); /* |