diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/9p/trans_virtio.c | 2 | ||||
| -rw-r--r-- | net/core/net-sysfs.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index fd05c81cb348..de2e950a0a7a 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c | |||
| @@ -87,7 +87,7 @@ struct virtio_chan { | |||
| 87 | /* This is global limit. Since we don't have a global structure, | 87 | /* This is global limit. Since we don't have a global structure, |
| 88 | * will be placing it in each channel. | 88 | * will be placing it in each channel. |
| 89 | */ | 89 | */ |
| 90 | int p9_max_pages; | 90 | unsigned long p9_max_pages; |
| 91 | /* Scatterlist: can be too big for stack. */ | 91 | /* Scatterlist: can be too big for stack. */ |
| 92 | struct scatterlist sg[VIRTQUEUE_NUM]; | 92 | struct scatterlist sg[VIRTQUEUE_NUM]; |
| 93 | 93 | ||
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index a5b89a6fec6d..7427ab5e27d8 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include <linux/vmalloc.h> | 21 | #include <linux/vmalloc.h> |
| 22 | #include <linux/export.h> | 22 | #include <linux/export.h> |
| 23 | #include <linux/jiffies.h> | 23 | #include <linux/jiffies.h> |
| 24 | #include <linux/pm_runtime.h> | ||
| 24 | 25 | ||
| 25 | #include "net-sysfs.h" | 26 | #include "net-sysfs.h" |
| 26 | 27 | ||
| @@ -1257,6 +1258,8 @@ void netdev_unregister_kobject(struct net_device * net) | |||
| 1257 | 1258 | ||
| 1258 | remove_queue_kobjects(net); | 1259 | remove_queue_kobjects(net); |
| 1259 | 1260 | ||
| 1261 | pm_runtime_set_memalloc_noio(dev, false); | ||
| 1262 | |||
| 1260 | device_del(dev); | 1263 | device_del(dev); |
| 1261 | } | 1264 | } |
| 1262 | 1265 | ||
| @@ -1301,6 +1304,8 @@ int netdev_register_kobject(struct net_device *net) | |||
| 1301 | return error; | 1304 | return error; |
| 1302 | } | 1305 | } |
| 1303 | 1306 | ||
| 1307 | pm_runtime_set_memalloc_noio(dev, true); | ||
| 1308 | |||
| 1304 | return error; | 1309 | return error; |
| 1305 | } | 1310 | } |
| 1306 | 1311 | ||
