All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "dm mpath: do not lock up a CPU with requeuing activity" has been added to the 4.12-stable tree
@ 2017-09-04 10:52 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-09-04 10:52 UTC (permalink / raw)
  To: bart.vanassche, gregkh, hch, loberman, snitzer; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    dm mpath: do not lock up a CPU with requeuing activity

to the 4.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     dm-mpath-do-not-lock-up-a-cpu-with-requeuing-activity.patch
and it can be found in the queue-4.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 1c23484c355ec360ca2f37914f8a4802c6baeead Mon Sep 17 00:00:00 2001
From: Bart Van Assche <bart.vanassche@wdc.com>
Date: Wed, 9 Aug 2017 11:32:12 -0700
Subject: dm mpath: do not lock up a CPU with requeuing activity

From: Bart Van Assche <bart.vanassche@wdc.com>

commit 1c23484c355ec360ca2f37914f8a4802c6baeead upstream.

When using the block layer in single queue mode, get_request()
returns ERR_PTR(-EAGAIN) if the queue is dying and the REQ_NOWAIT
flag has been passed to get_request(). Avoid that the kernel
reports soft lockup complaints in this case due to continuous
requeuing activity.

Fixes: 7083abbbf ("dm mpath: avoid that path removal can trigger an infinite loop")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/md/dm-mpath.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -504,7 +504,6 @@ static int multipath_clone_and_map(struc
 		if (queue_dying) {
 			atomic_inc(&m->pg_init_in_progress);
 			activate_or_offline_path(pgpath);
-			return DM_MAPIO_REQUEUE;
 		}
 		return DM_MAPIO_DELAY_REQUEUE;
 	}


Patches currently in stable-queue which might be from bart.vanassche@wdc.com are

queue-4.12/dm-mpath-do-not-lock-up-a-cpu-with-requeuing-activity.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-04 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-04 10:52 Patch "dm mpath: do not lock up a CPU with requeuing activity" has been added to the 4.12-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.