Thread (16 messages) 16 messages, 2 authors, 2012-11-07

Re: [PATCH v4 3/6] block/genhd.c: apply pm_runtime_set_memalloc_noio on block devices

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2012-11-06 23:24:33
Also in: linux-mm, linux-pm, lkml

On Sat,  3 Nov 2012 16:35:11 +0800
Ming Lei [off-list ref] wrote:
quoted hunk ↗ jump to hunk
This patch applyes the introduced pm_runtime_set_memalloc_noio on
block device so that PM core will teach mm to not allocate memory with
GFP_IOFS when calling the runtime_resume and runtime_suspend callback
for block devices and its ancestors.

...
@@ -532,6 +533,13 @@ static void register_disk(struct gendisk *disk)
 			return;
 		}
 	}
+
+	/* avoid probable deadlock caused by allocating memory with
Again, please fix the comment style.  Take a look at the rest of this file!
+	 * GFP_KERNEL in runtime_resume callback of its all ancestor
+	 * deivces
typo
+	 */
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help