Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1514643ybl; Thu, 5 Dec 2019 02:41:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyev6DhxDtmfoID5heJ1+oTdDliXn7EW/b2XgSssoQAwL0RxtZzh369bfkusQk1NanWCAqA X-Received: by 2002:a9d:70d2:: with SMTP id w18mr6318670otj.48.1575542467771; Thu, 05 Dec 2019 02:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575542467; cv=none; d=google.com; s=arc-20160816; b=CnZb1kCXcfBt+0b3byincuIeC+ITRdt2/zHZlgvhNLiRO8PahztGMgWyBLhCaFxSnx Mshsci69nfgEXqhz1IGUniS9ta3S1rmAUA95fdmJ1TvRfqEjhPVJU/VRpr/Vlb5B047U 9iRXIl0v4+v9pF3ia9FMywyCirKV8igtQwO0LBeVDsG4CghSXXP6Bf81DMN+xdXC9Ny6 9AGefakwaQXqBJasZ326g6iF2ko+8tFylaFF8ajbQaOnIFsNFUtHE0VdWLfUnejJ0zJI CPH2gyIpyOQubE6S2+7YhN3Joa48ficUz9c+8hI3QeYWfsdzM4fe4fz3XoVxTegNFYG9 +F8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:date:subject:cc:to:from; bh=MsK6ucXjOUpGoAUWr/IMIg4M9IzosXDouVT6hajmylg=; b=VpCGz+3sCoZ1cjVGXXG0qajBz2oMmUFR2Nbh905HKYYduIfH7o3V+50xtoyF6+l7dt 8MmmkM2TalMe0FoWdZ/KlS5StS1vBuGmR3xJ+3YkL0X3/CvDJBOrl3v0gTUENYZxrzl7 EhahBXPRZrN5QGoFBP6PQjCSpqn0v8hCs5VHq2XyE+8CUlpEo7hZ+b/2XO55bUBRJkcL o5FvKmbCQO3u9Qr0S+n1pp8+QAETHAF7hsUMgptxPOyz6u6Qon9DkS0O/+upBnXFEdmG 3+6O4LDquPQHUXMHSA0UYyZN0iRy6XITLE85zmD3Xx82o3BZirQCpK5d4of26K5FWXdC OmXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e206si4800248oif.231.2019.12.05.02.40.57; Thu, 05 Dec 2019 02:41:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729213AbfLEKjQ (ORCPT + 99 others); Thu, 5 Dec 2019 05:39:16 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:25236 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728735AbfLEKjQ (ORCPT ); Thu, 5 Dec 2019 05:39:16 -0500 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB5AbcVH087278 for ; Thu, 5 Dec 2019 05:39:14 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wkm4a8erh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 05 Dec 2019 05:39:13 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Dec 2019 10:39:10 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 5 Dec 2019 10:39:07 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB5Ad6JO65732634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Dec 2019 10:39:06 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67382A405C; Thu, 5 Dec 2019 10:39:06 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6D686A4054; Thu, 5 Dec 2019 10:39:04 +0000 (GMT) Received: from dhcp-9-199-159-163.in.ibm.com (unknown [9.199.159.163]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 5 Dec 2019 10:39:04 +0000 (GMT) From: Ritesh Harjani To: willy@infradead.org, linux-fsdevel@vger.kernel.org, jlayton@kernel.org, viro@zeniv.linux.org.uk Cc: ceph-devel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-nfs@vger.kernel.org, devel@lists.orangefs.org, linux-unionfs@vger.kernel.org, Ritesh Harjani Subject: [PATCH 0/1] Use inode_lock/unlock class of provided APIs in filesystems Date: Thu, 5 Dec 2019 16:09:01 +0530 X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19120510-0020-0000-0000-0000039440D3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19120510-0021-0000-0000-000021EB6D6B Message-Id: <20191205103902.23618-1-riteshh@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-05_02:2019-12-04,2019-12-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1011 impostorscore=0 adultscore=0 suspectscore=0 mlxlogscore=361 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912050087 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Matthew Wilcox in [1] suggested that it will be a good idea to define some missing API instead of directly using i_rwsem in filesystems drivers for lock/unlock/downgrade purposes. This patch does that work. No functionality change in this patch. After this there are only lockdep class of APIs at certain places in filesystems which are directly using i_rwsem and second is XFS, but it seems to be anyway defining it's own xfs_ilock/iunlock set of APIs and 'iolock' naming convention for this lock. [1]: https://www.spinics.net/lists/linux-ext4/msg68689.html Ritesh Harjani (1): fs: Use inode_lock/unlock class of provided APIs in filesystems fs/btrfs/delayed-inode.c | 2 +- fs/btrfs/ioctl.c | 4 ++-- fs/ceph/io.c | 24 ++++++++++++------------ fs/nfs/io.c | 24 ++++++++++++------------ fs/orangefs/file.c | 4 ++-- fs/overlayfs/readdir.c | 2 +- fs/readdir.c | 4 ++-- include/linux/fs.h | 21 +++++++++++++++++++++ 8 files changed, 53 insertions(+), 32 deletions(-) -- 2.20.1