From ajohansson at suse.com Tue Jul 17 11:43:13 2012 From: ajohansson at suse.com (Anders Johansson) Date: Tue, 17 Jul 2012 20:43:13 +0200 Subject: [Oracleasm-devel] Compatibility with kernel 3.0+ Message-ID: <2094952.MYFyqGF6Yp@carolin> 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