# Re: \[PATCH v6 5/6\] PM / Runtime: force memory allocation with no I/O during Runtime PM callbcack

- From: Ming Lei \<hidden\>
- Date: 2012-11-28 03:06:49 
- List: netdev
- Page: https://ratatoskr.run/netdev/2012/11/3964264
- Thread: https://ratatoskr.run/linux-pm/2012/11/3962556/t.md

```text
On Wed, Nov 28, 2012 at 5:24 AM, Rafael J. Wysocki [ref] wrote:
>
> Please don't duplicate code this way.
>
> You can move that whole thing to rpm_callback().  Yes, you'll probably need to
> check dev->power.memalloc_noio twice in there, but that's OK.

Good idea, I will update it in v7.

Thanks,
--
Ming Lei

--
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>
```
