linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/3] mm/PM/USB: memory allocation with no io in need
@ 2012-10-16 15:59 Ming Lei
  2012-10-16 15:59 ` [RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation Ming Lei
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Ming Lei @ 2012-10-16 15:59 UTC (permalink / raw)
  To: linux-kernel
  Cc: Alan Stern, Oliver Neukum, Minchan Kim, Greg Kroah-Hartman,
	linux-usb, linux-pm

Hi,

This patch set introduces one process flag and trys to fix one deadlock
problem on block device during runtime resume or usb bus reset.

The 1st one is the change on include/sched.h and mm.

The other 2 patches are applied again PM and USB subsystem to demo
how to use the introduced mechanism to fix the deadlock problem.

V1:
        - take Minchan's change to avoid the check in alloc_page hot path
	- change the helpers' style into save/restore as suggested by Alan
	- memory allocation with no io in usb bus reset path for all devices
	as suggested by Greg and Oliver


 drivers/base/power/runtime.c |   14 ++++++++++++++
 drivers/usb/core/hub.c       |   11 +++++++++++
 include/linux/sched.h        |   11 +++++++++++
 mm/page_alloc.c              |   10 +++++++++-
 mm/vmscan.c                  |   13 +++++++++++++
 5 files changed, 58 insertions(+), 1 deletion(-)

Thanks,
--
Ming Lei


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-10-19  3:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16 15:59 [RFC PATCH v1 0/3] mm/PM/USB: memory allocation with no io in need Ming Lei
2012-10-16 15:59 ` [RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation Ming Lei
2012-10-16 20:19   ` Andrew Morton
2012-10-17  1:54     ` Ming Lei
2012-10-17 23:54       ` Andrew Morton
2012-10-19  3:52         ` Ming Lei
2012-10-17  3:40     ` Ming Lei
2012-10-17  5:14   ` Kamezawa Hiroyuki
2012-10-17 10:56     ` Ming Lei
2012-10-16 15:59 ` [RFC PATCH v1 2/3] PM / Runtime: force memory allocation with no I/O during runtime_resume callbcack Ming Lei
2012-10-17  5:43   ` Rafael J. Wysocki
2012-10-17 11:07     ` Ming Lei
2012-10-18 23:16       ` Rafael J. Wysocki
2012-10-19  1:41         ` Ming Lei
2012-10-16 15:59 ` [RFC PATCH v1 3/3] USB: forbid memory allocation with I/O during bus reset Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).