Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1255382 > unrolled thread

[PATCH -mm] signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal-fix

Started byOleg Nesterov <oleg@redhat.com>
First post2015-10-25 13:40 +0100
Last post2015-10-25 13:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH -mm]  signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal-fix Oleg Nesterov <oleg@redhat.com> - 2015-10-25 13:40 +0100

#1255382 — [PATCH -mm] signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal-fix

FromOleg Nesterov <oleg@redhat.com>
Date2015-10-25 13:40 +0100
Subject[PATCH -mm] signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal-fix
Message-ID<qnsKC-2Zz-7@gated-at.bofh.it>
Andrew,

As Markus reports (thanks!)

	signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal.patch

conflicts with the recent change in Linus' tree,

> I just realised that this patch will conflict with a fixup patch for nbd
> that will be included in rc7.
>
> dcc909d90ccd (nbd: Add locking for tasks)
>
> I think there is basically one new instance of dequeue_signal_lock() that
> needs to be replaced with kernel_dequeue_signal().

Unless I missed something, this new dequeue_signal_lock() should simply
die, but lets fix the conflict first.


--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -592,10 +592,8 @@ static int nbd_thread_send(void *data)
 	spin_unlock_irqrestore(&nbd->tasks_lock, flags);
 
 	/* Clear maybe pending signals */
-	if (signal_pending(current)) {
-		siginfo_t info;
-		dequeue_signal_lock(current, &current->blocked, &info);
-	}
+	if (signal_pending(current))
+		kernel_dequeue_signal(NULL);
 
 	return 0;
 }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web