2.6.30 related fixes
PATCH 1/1 2.6.30 related fixes
Hi,
linux 1faa16d22877f4839bd433547d770c676d1d964c changes congestion logic to sync/async based. attached patch causes use of BDI_async_congested instead of old BDI_write_congested for new kernels
in addition, 99b76233803beab302123d243eea9e41149804f3 removes proc::owner attribute. according to commit comment, its use should just be removed, so second patch does just that. everything seems to work then.
please apply.
regards
nik
Signature · 14 lines
------------------------------------- Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] -------------------------------------
drbd/drbd_wrappers.h +4 -0
@@ -55,6 +55,10 @@return 0 ; } +#if LINUX_VERSION_CODE >KERNEL_VERSION (2 ,6 ,29 ) +#define BDI_write_congested BDI_async_congested +#endif +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 )/* Before Linux-2.6.24 bie_endio() had the size of the bio as second argument. See 6712ecf8f648118c3363c142196418f89a510b90 */
drbd/drbd_main.c +0 -1
@@ -3116,7 +3116,6 @@ } drbd_proc->proc_fops = &drbd_proc_fops; - drbd_proc->owner =THIS_MODULE ;#else # error "Currently drbd depends on the proc file system (CONFIG_PROC_FS)"#endif
Lars Ellenberg
maintainerQuoted 5 lines · Nikola Ciprich
Hi,
linux1faa16d22877f4839bd433547d770c676d1d964cchanges congestion logic to sync/async based. attached patch causes use ofBDI_async_congestedinstead of oldBDI_write_congestedfor new kernels
Quoted 7 lines
in addition,
99b76233803beab302123d243eea9e41149804f3removesproc::ownerattribute. according to commit comment, its use should just be removed, so second patch does just that. everything seems to work then.
please apply.
regards
nik
thanks, but too late.
I guess we have to push to public more frequently.
Quoted 42 lines
Signature · 16 lines
------------------------------------- Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] ------------------------------------- diff -Naur drbd-8.3.1/drbd/drbd_wrappers.h drbd-8.3.1-fix-BDI_write_congested/drbd/drbd_wrappers.hdrbd/drbd_wrappers.h +4
-0@@ -55,6 +55,10 @@return 0 ; } +#if LINUX_VERSION_CODE >KERNEL_VERSION (2 ,6 ,29 ) +#define BDI_write_congested BDI_async_congested +#endif +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 )/* Before Linux-2.6.24 bie_endio() had the size of the bio as second argument. See 6712ecf8f648118c3363c142196418f89a510b90 */ diff -Naur
drbd-8.3.1/drbd/drbd_main.cdrbd-8.3.1-remove-proc-owner/drbd/drbd_main.cdrbd/drbd_main.c +0
-1@@ -3116,7 +3116,6 @@ } drbd_proc->proc_fops = &drbd_proc_fops; - drbd_proc->owner =THIS_MODULE ;#else # error "Currently drbd depends on the proc file system (CONFIG_PROC_FS)"#endif
Signature · 5 lines
: Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
well, my fault for not checking the latest git first :( but releasing more often will surely be appreciated ;) regards
nik
Quoted 72 lines · Lars Ellenberg
Quoted 5 lines · Nikola Ciprich
Hi,
linux1faa16d22877f4839bd433547d770c676d1d964cchanges congestion logic to sync/async based. attached patch causes use ofBDI_async_congestedinstead of oldBDI_write_congestedfor new kernelsQuoted 7 lines
in addition,
99b76233803beab302123d243eea9e41149804f3removesproc::ownerattribute. according to commit comment, its use should just be removed, so second patch does just that. everything seems to work then.
please apply.
regards
nikthanks, but too late.
I guess we have to push to public more frequently.Quoted 42 lines
Signature · 16 lines
------------------------------------- Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] ------------------------------------- diff -Naur drbd-8.3.1/drbd/drbd_wrappers.h drbd-8.3.1-fix-BDI_write_congested/drbd/drbd_wrappers.hdrbd/drbd_wrappers.h +4
-0@@ -55,6 +55,10 @@return 0 ; } +#if LINUX_VERSION_CODE >KERNEL_VERSION (2 ,6 ,29 ) +#define BDI_write_congested BDI_async_congested +#endif +#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,24 )/* Before Linux-2.6.24 bie_endio() had the size of the bio as second argument. See 6712ecf8f648118c3363c142196418f89a510b90 */ diff -Naur
drbd-8.3.1/drbd/drbd_main.cdrbd-8.3.1-remove-proc-owner/drbd/drbd_main.cdrbd/drbd_main.c +0
-1@@ -3116,7 +3116,6 @@ } drbd_proc->proc_fops = &drbd_proc_fops; - drbd_proc->owner =THIS_MODULE ;#else # error "Currently drbd depends on the proc file system (CONFIG_PROC_FS)"#endif Signature · 9 lines
: Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. _______________________________________________ drbd-dev mailing list [email protected] http://lists.linbit.com/mailman/listinfo/drbd-dev
Signature · 14 lines
------------------------------------- Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] -------------------------------------