Skip to content

Commit

Permalink
drbd83: Backport flush_signals() before kthread_run() fix
Browse files Browse the repository at this point in the history
See http://elrepo.org/bugs/view.php?id=533

Committed-by: Madison Kelly <mkelly@alteeve.ca>
Signed-off-by: Philip J Perry <phil@elrepo.org>
  • Loading branch information
pjperry committed Nov 24, 2014
1 parent 0986bd3 commit 1f6aab9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions drbd83-kmod/el6/drbd83-8.3.16-flush_signals.patch
@@ -0,0 +1,11 @@
diff -Naurp a/drbd/drbd_nl.c b/drbd/drbd_nl.c
--- a/drbd/drbd_nl.c 2013-08-14 13:55:40.000000000 +0100
+++ b/drbd/drbd_nl.c 2014-11-24 19:28:43.000000000 +0000
@@ -303,6 +303,7 @@ void drbd_try_outdate_peer_async(struct
{
struct task_struct *opa;

+ flush_signals(current);
opa = kthread_run(_try_outdate_peer_async, mdev, "drbd%d_a_helper", mdev_to_minor(mdev));
if (IS_ERR(opa))
dev_err(DEV, "out of mem, failed to invoke fence-peer helper\n");
10 changes: 9 additions & 1 deletion drbd83-kmod/el6/drbd83-kmod.spec
Expand Up @@ -12,7 +12,7 @@
Summary: Distributed Redundant Block Device driver for Linux
Name: %{kmod_name}-kmod
Version: 8.3.16
Release: 2%{?dist}
Release: 3%{?dist}
License: GPL
Group: System Environment/Kernel
URL: http://wwww.drbd.org/
Expand All @@ -21,6 +21,9 @@ URL: http://wwww.drbd.org/
Source0: http://oss.linbit.com/drbd/8.3/drbd-%{version}.tar.gz
Source10: kmodtool-%{kmod_name}-el6.sh

# Patches.
Patch0: drbd83-8.3.16-flush_signals.patch

ExclusiveArch: i686 x86_64
BuildRequires: redhat-rpm-config

Expand All @@ -38,6 +41,7 @@ high availability (HA) clusters.

%prep
%setup -n %{real_name}-%{version}
%patch0 -p1

%configure \
--with-km \
Expand Down Expand Up @@ -72,6 +76,10 @@ find %{buildroot} -type f -name \*.ko -exec %{__chmod} u+x \{\} \;
%{__rm} -rf %{buildroot}

%changelog
* Sun Nov 23 2014 Madison Kelly <mkelly@alteeve.ca> - 8.3.16-3
- Backport flush_signals() before kthread_run() fix
[http://elrepo.org/bugs/view.php?id=533]

* Tue Oct 28 2014 Philip J Perry <phil@elrepo.org> - 8.3.16-2
- Rebuilt for RHEL-6.6 kernel due to kABI breakage

Expand Down

0 comments on commit 1f6aab9

Please sign in to comment.