android_kernel_xiaomi_sm8350/fs/dlm
Patrick Caulfield 254da030df [DLM] Don't delete misc device if lockspace removal fails
Currently if the lockspace removal fails the misc device associated with a
lockspace is left deleted. After that there is no way to access the orphaned
lockspace from userland.

This patch recreates the misc device if th dlm_release_lockspace fails. I
believe this is better than attempting to remove the lockspace first because
that leaves an unattached device lying around. The potential gap in which there
is no access to the lockspace between removing the misc device and recreating it
is acceptable ... after all the application is trying to remove it, and only new
users of the lockspace will be affected.

Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-05-01 09:10:44 +01:00
..
ast.c
ast.h
config.c [DLM] expose dlm_config_info fields in configfs 2007-02-05 13:36:43 -05:00
config.h [DLM] add config entry to enable log_debug 2007-02-05 13:36:40 -05:00
debug_fs.c [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08:00
dir.c
dir.h
dlm_internal.h [DLM] fix user unlocking 2007-02-05 13:36:55 -05:00
Kconfig [DLM/GFS2] indent help text 2007-02-05 13:38:20 -05:00
lock.c [DLM] zero new user lvbs 2007-02-05 13:38:24 -05:00
lock.h
lockspace.c [DLM] rename dlm_config_info fields 2007-02-05 13:36:37 -05:00
lockspace.h
lowcomms-sctp.c [DLM] Use workqueues for dlm lowcomms 2007-02-05 13:36:52 -05:00
lowcomms-tcp.c [DLM] Fix uninitialised variable in receiving 2007-05-01 09:10:34 +01:00
lowcomms.h
lvb_table.h
main.c
Makefile
member.c
member.h
memory.c [PATCH] Transform kmem_cache_alloc()+memset(0) -> kmem_cache_zalloc(). 2007-02-11 10:51:27 -08:00
memory.h
midcomms.c [DLM] rename dlm_config_info fields 2007-02-05 13:36:37 -05:00
midcomms.h
rcom.c [DLM] rename dlm_config_info fields 2007-02-05 13:36:37 -05:00
rcom.h
recover.c [DLM] fix master recovery 2007-02-05 13:36:58 -05:00
recover.h
recoverd.c [DLM] change some log_error to log_debug 2007-02-05 13:36:34 -05:00
recoverd.h
requestqueue.c
requestqueue.h
user.c [DLM] Don't delete misc device if lockspace removal fails 2007-05-01 09:10:44 +01:00
user.h
util.c [DLM] fix old rcom messages 2007-02-05 13:35:50 -05:00
util.h