From: Stefan Metzmacher Date: Thu, 14 Jun 2018 06:21:21 +0000 (+0200) Subject: smbd: use conn->lastused_count++ directly in process_blocking_lock_queue() X-Git-Tag: tevent-0.9.37~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a61d0aa35b766f4df4d4f9e6891c3a7516e81100;p=thirdparty%2Fsamba.git smbd: use conn->lastused_count++ directly in process_blocking_lock_queue() This avoids using set_current_service(), which will be removed shortly. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index 1e3a596d11f..6cbf5c03e93 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -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.