[Oracleasm-devel] Compatibility with kernel 3.0+
Anders Johansson
ajohansson at suse.com
Tue Jul 17 11:43:13 PDT 2012
Hi,
In order to be compatible with kernels following the addition of longterm
mount reference counting, the following patch seems needed by oracleasm.
Without it, the kernel will oops on rmmod (or shutdown, which does an rmmod)
because the superblock is never removed but the kernel module is, so the
kernel will oops when it tries to sync all superblocks
--- kernel/driver.c.orig 2012-07-17 20:40:04.296163095 +0200
+++ kernel/driver.c 2012-07-17 20:40:42.469110729 +0200
@@ -417,8 +417,8 @@
static void destroy_asmdiskcache(void)
{
+ kern_unmount(asmdisk_mnt);
unregister_filesystem(&asmdisk_type);
- mntput(asmdisk_mnt);
kmem_cache_destroy(asmdisk_cachep);
}
--
Anders Johansson, L3 Engineer
SUSE LINUX Products GmbH, HRB 21284 (AG Nürnberg)
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer
Maxfeldstr. 5, D-90409 Nürnberg
Phone: +49-911-74053-163 Cell: +49-179-59 68 030
More information about the Oracleasm-devel
mailing list