From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: [PATCH 0/20] Sysfs cleanups Date: Tue, 19 May 2009 21:09:43 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: , Tejun Heo , Cornelia Huck , To: Andrew Morton , Greg Kroah-Hartman Return-path: Received: from out02.mta.xmission.com ([166.70.13.232]:41393 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750699AbZETEJ4 (ORCPT ); Wed, 20 May 2009 00:09:56 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The following patch series cleans up sysfs to the point where itq is generally a good citizen of the vfs layer. The big theme is lazy synchronization from the sysfs data structures to the vfs data structures using the same techniques as most other distributed filesystems. This allows the complete removal of i_mutex from the sysfs code, the death of lookup_one_noperm, and probably a few other weird cases that slip my tongue. Included in this is the latest version of my work that merges sysfs_move_dir and sysfs_rename_dir to simplify maitenance of. I have been running these patches for several months so there should be no really nasty surprises in here. drivers/base/core.c | 18 +- fs/namei.c | 22 -- fs/sysfs/dir.c | 565 ++++++++++++++----------------------------------- fs/sysfs/file.c | 47 +---- fs/sysfs/inode.c | 154 ++++++++------ fs/sysfs/mount.c | 20 +- fs/sysfs/symlink.c | 71 +++---- fs/sysfs/sysfs.h | 25 +-- include/linux/namei.h | 1 - include/linux/sysfs.h | 9 + 10 files changed, 325 insertions(+), 607 deletions(-) Eric