Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1825753imm; Mon, 3 Sep 2018 10:25:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ9nn93xbpc0Cl0/fAqLCr2PoNf2B90kwGXH4OwEBwRWKN1GnqzUdDjIR4Ql3GZjyPpcChz X-Received: by 2002:a17:902:b40e:: with SMTP id x14-v6mr29004154plr.314.1535995515176; Mon, 03 Sep 2018 10:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995515; cv=none; d=google.com; s=arc-20160816; b=ZhczEVp2oo5uk8MnaVhVC7X/ILsAAFpYp3n5EEvwce7v+Jag+sMNhTsd4rsqyrmkfN 9mLiGdFCdbE35yA90DWwELwPNkET2+kSgGYoFyvd8CD4MPxKcjAPyvoJcUq5UjHPD/EQ 9mKmBMCw/dCnJQQ/u9DVvq2KPo72o9NJT2CmwzXUg/dNj3UqDeDvir4So88Z76c7MUSY GO340uDX2Rri7/O4Ea3nuPtNWqJloOn4lZOwC0oawIXMn0ZQlLdWMaWH/SBi2lDizk3O OJrTsEU5GefXSZhDqKjKl4tw8tAffHSJTxpBIk03OOPUT7r/Mbb/y6dK+9WMqtWgKs46 RZTQ== 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=YE8GC4RY1PI9/Mjd5T/lWQn5ZLheVZpSIu3+y6PjgU4=; b=kXOAmE6pikbHP7cfh/AkJY6utmQYES4Y8oNwFnfhbrbioZ8kZSChf0DfkLEwSyD52k hMgir06OWjDh1X/FJioFD6rvNQX8PKPtkb/pvhiJkVWT+JAQnbjOcpi7SQ/mdD8tOcxf vObX9CH93qu410/aNDTq82iJxNcaUUQ8TJ/FaMVq4yYXclJOVMEtKOd3WTCV8DUmfkAC VhvWjM5EubC43G5n5IdpXoRwWzluFPFLcQak1+eppp9r66yn50xr1q0WT3BY6HwWXGbM Z6rJzf5HqaqJ2DD6yfl0rsz8/gZNfS13Q77h3ARylqS0V6NL39OyVNhKG36k0MPX90QD gHfQ== 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 c9-v6si11904792pgc.514.2018.09.03.10.25.00; Mon, 03 Sep 2018 10:25:15 -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 S1730390AbeICVn5 (ORCPT + 99 others); Mon, 3 Sep 2018 17:43:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45352 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728728AbeICVn4 (ORCPT ); Mon, 3 Sep 2018 17:43:56 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 08B27D0A; Mon, 3 Sep 2018 17:22:49 +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.14 088/165] smb3: dont request leases in symlink creation and query Date: Mon, 3 Sep 2018 18:56:14 +0200 Message-Id: <20180903165659.814499933@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@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.14-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 @@ -396,7 +396,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; @@ -458,7 +458,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))