summaryrefslogtreecommitdiff
path: root/source3/smbd/oplock_onefs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-04-09 19:26:34 -0700
committerJeremy Allison <jra@samba.org>2010-04-09 19:26:34 -0700
commite15939b4561b84eda283a9df233e2a3a0ed42621 (patch)
tree6475d00552b99dc4b17fc887f93c2f8210e29b1c /source3/smbd/oplock_onefs.c
parentb253385611ac4934bb46390ef519c547bba87eb3 (diff)
downloadsamba-e15939b4561b84eda283a9df233e2a3a0ed42621.tar.gz
samba-e15939b4561b84eda283a9df233e2a3a0ed42621.tar.bz2
samba-e15939b4561b84eda283a9df233e2a3a0ed42621.zip
Plumb SMB2 stubs into all the places we defer SMB1 operations.
Rename functions to be internally consistent. Next step is to cope queueing single (non-compounded) SMB2 requests to put some code inside the stubs. Jeremy.
Diffstat (limited to 'source3/smbd/oplock_onefs.c')
-rw-r--r--source3/smbd/oplock_onefs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/oplock_onefs.c b/source3/smbd/oplock_onefs.c
index c80925ced3..754ba73bfd 100644
--- a/source3/smbd/oplock_onefs.c
+++ b/source3/smbd/oplock_onefs.c
@@ -440,7 +440,6 @@ static void semlock_available_handler(uint64_t id)
static void semlock_async_failure_handler(uint64_t id)
{
struct onefs_callback_record *cb;
- struct pending_message_list *pml;
struct deferred_open_record *state;
DEBUG(1, ("semlock_async_failure_handler called: %llu\n", id));
@@ -465,13 +464,12 @@ static void semlock_async_failure_handler(uint64_t id)
}
/* Find the actual deferred open record. */
- if (!(pml = get_open_deferred_message(cb->data.mid))) {
+ if (!get_open_deferred_message_state(cb->data.mid, NULL, &state)) {
DEBUG(0, ("Could not find deferred request for "
"mid %d\n", cb->data.mid));
destroy_onefs_callback_record(id);
return;
}
- state = (struct deferred_open_record *)pml->private_data.data;
/* Update to failed so the client can be notified on retried open. */
state->failed = true;