Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1809228imm; Mon, 3 Sep 2018 10:00:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZajivAZgGVdL2T12ZYHOFdp2vUYYRbu4BGQ5X3SCi+K786DfteTnRpYHbVaCR2D5mIUzbp X-Received: by 2002:a17:902:b70f:: with SMTP id d15-v6mr30157754pls.53.1535994050975; Mon, 03 Sep 2018 10:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994050; cv=none; d=google.com; s=arc-20160816; b=cwM2FZYnd7e2AbgRE9Sgs8iJKQ2cHBUv7URJonqF/FByPIlh/ybD0lb1eo9/qh8bI3 JWC7qxkowzFG45b1YGKbpC99VcX7//LYhrUfAXJMd25G+aLHnGFsogu/WZpwBKhBviTB peDVDOo+jYHcv373EovSUCryuBc+PE+FD/veFQni+lPJi3UiUnFeVRe43gxL3mE6PEAw ai2hWoOa9yIbJ13ba/aFc9vkfEkItlECEtRSy+dcWkS8/grYWneTGg/ZwgclEsg+CqHZ eDwuna+SQo0XiT7OJPqCFEmu+h6ZyE3sDiFFbMN6Kr3LXTnvUC3JwTVa0WcFpBBCTYyL 6Igw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ilUXEd6PNuknQ9h6RCJHyX9Rf7fr+Oo/X0pZ9vYiUh4=; b=do+8Y6kxwAgT4SQ2XGIlcXttVP4GOMCy1EMKUK/EZYzPlUjbbA0iiWLmiCZbBYqLhb xtwvXzf+aFiK+uwZaSXy2ctWE0pyvsv4NY5oeRhXGSRLHThmwsrJdIuyiUfEJDnKOt4/ uCwlvbfNgWbGth2r/5d0mV1MTXp+U12wJ3Dd4UAdfjkTCivv2Et2aJ1ED1ZsGZZZcAC1 AiTBXcKn5dNbvHvR5f5oS8dlDQycZ5MwlpOAf6AVJ2M/AGWYko8jedly2/dbqNophLmm e/NsUqCJg9myv0JW4YJMgiUfLwdWvhvdRlNN9dVuYScUStrIdcPSwKUvqMPwme0P61Fm 7wHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si18903010plb.400.2018.09.03.10.00.36; Mon, 03 Sep 2018 10:00:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728706AbeICVUN (ORCPT + 99 others); Mon, 3 Sep 2018 17:20:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38508 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbeICVUN (ORCPT ); Mon, 3 Sep 2018 17:20:13 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 26E16CF5; Mon, 3 Sep 2018 16:59:13 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pavel Shilovsky , Steve French , Ronnie Sahlberg Subject: [PATCH 4.4 44/80] smb3: dont request leases in symlink creation and query Date: Mon, 3 Sep 2018 18:49:22 +0200 Message-Id: <20180903164935.910816211@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steve French commit 22783155f4bf956c346a81624ec9258930a6fe06 upstream. Fixes problem pointed out by Pavel in discussions about commit 729c0c9dd55204f0c9a823ac8a7bfa83d36c7e78 Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French Reviewed-by: Ronnie Sahlberg CC: Stable # 3.18.x+ Signed-off-by: Greg Kroah-Hartman --- fs/cifs/link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/cifs/link.c +++ b/fs/cifs/link.c @@ -419,7 +419,7 @@ smb3_query_mf_symlink(unsigned int xid, struct cifs_io_parms io_parms; int buf_type = CIFS_NO_BUFFER; __le16 *utf16_path; - __u8 oplock = SMB2_OPLOCK_LEVEL_II; + __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; struct smb2_file_all_info *pfile_info = NULL; oparms.tcon = tcon; @@ -481,7 +481,7 @@ smb3_create_mf_symlink(unsigned int xid, struct cifs_io_parms io_parms; int create_options = CREATE_NOT_DIR; __le16 *utf16_path; - __u8 oplock = SMB2_OPLOCK_LEVEL_EXCLUSIVE; + __u8 oplock = SMB2_OPLOCK_LEVEL_NONE; struct kvec iov[2]; if (backup_cred(cifs_sb))