kernel-ark/fs/dlm
Satyam Sharma 3fe6c5ce11 [PATCH] configfs+dlm: Rename config_group_find_obj and state semantics clearly
Configfs being based upon sysfs code, config_group_find_obj() is probably
so named because of the similar kset_find_obj() in sysfs. However,
"kobject"s in sysfs become "config_item"s in configfs, so let's call it
config_group_find_item() instead, for sake of uniformity, and make
corresponding change in the users of this function.

BTW a crucial difference between kset_find_obj and config_group_find_item
is in locking expectations. kset_find_obj does its locking by itself, but
config_group_find_item expects the *caller* to do the locking. The reason
for this: kset's have their own locks, config_group's don't but instead
rely on the subsystem mutex. And, subsystem needn't necessarily be around
when config_group_find_item() is called.

So let's state these locking semantics explicitly, and rectify the comment,
otherwise bugs could continue to occur in future, as they did in the past
(refer commit d82b8191e238 in gfs2-2.6-fixes.git).

[ I also took the opportunity to fix some bad whitespace and
double-empty lines. --Joel ]

[ Conflict in fs/dlm/config.c with commit
  3168b0780d manually resolved. --Mark ]

Signed-off-by: Satyam Sharma <ssatyam@cse.iitk.ac.in>
Cc: David Teigland <teigland@redhat.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2007-07-10 17:02:31 -07:00
..
ast.c
ast.h
config.c [PATCH] configfs+dlm: Rename config_group_find_obj and state semantics clearly 2007-07-10 17:02:31 -07:00
config.h [DLM] add lock timeouts and warnings [2/6] 2007-07-09 08:22:33 +01:00
debug_fs.c [DLM] dump more lock values 2007-07-09 08:24:13 +01:00
dir.c
dir.h
dlm_internal.h [DLM] dump more lock values 2007-07-09 08:24:13 +01:00
Kconfig
lock.c [DLM] variable allocation 2007-07-09 08:23:17 +01:00
lock.h [DLM] canceling deadlocked lock 2007-07-09 08:22:54 +01:00
lockspace.c [DLM] don't require FS flag on all nodes 2007-07-09 08:23:38 +01:00
lockspace.h
lowcomms.c [GFS2] git-gfs2-nmw-build-fix 2007-07-09 08:24:06 +01:00
lowcomms.h
lvb_table.h
main.c [DLM] add lock timeouts and warnings [2/6] 2007-07-09 08:22:33 +01:00
Makefile [DLM] add lock timeouts and warnings [2/6] 2007-07-09 08:22:33 +01:00
member.c [DLM] wait for config check during join [6/6] 2007-07-09 08:22:42 +01:00
member.h
memory.c
memory.h
midcomms.c
midcomms.h
netlink.c [DLM] timeout fixes 2007-07-09 08:22:52 +01:00
rcom.c [DLM] variable allocation 2007-07-09 08:23:17 +01:00
rcom.h
recover.c
recover.h
recoverd.c [DLM] add lock timeouts and warnings [2/6] 2007-07-09 08:22:33 +01:00
recoverd.h
requestqueue.c
requestqueue.h
user.c [DLM] canceling deadlocked lock 2007-07-09 08:22:54 +01:00
user.h
util.c
util.h