smbd: use conn->lastused_count++ directly in process_blocking_lock_queue()
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 06:21:21 +0000 (08:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:17 +0000 (08:59 +0200)
This avoids using set_current_service(), which will be removed shortly.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/blocking.c

index 1e3a596d11fb05299f4fab2770ebd79779a58156..6cbf5c03e932757ca2adf9358f62959704877acb 100644 (file)
@@ -842,13 +842,10 @@ void process_blocking_lock_queue(struct smbd_server_connection *sconn)
 
                DEBUG(10, ("Processing BLR = %p\n", blr));
 
-               /* We use set_current_service so connections with
-                * pending locks are not marked as idle.
+               /*
+                * Connections with pending locks are not marked as idle.
                 */
-
-               set_current_service(blr->fsp->conn,
-                               SVAL(blr->req->inbuf,smb_flg),
-                               false);
+               blr->fsp->conn->lastused_count++;
 
                /*
                 * Remove the pending lock we're waiting on.