[Devel] [PATCH v2 23/27] proc connector: use per-ve netlink sender helper
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Thu Aug 17 17:00:58 MSK 2017
Required to send event in the network to the right listener.
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
drivers/connector/cn_proc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index df6553d..17e0247 100644
--- a/drivers/connector/cn_proc.c
+++ b/drivers/connector/cn_proc.c
@@ -115,7 +115,7 @@ static void proc_event_connector(struct task_struct *task,
return;
/* If cn_netlink_send() failed, the data is not sent */
- cn_netlink_send(msg, CN_IDX_PROC, GFP_KERNEL);
+ cn_netlink_send_ve(ve, msg, CN_IDX_PROC, GFP_KERNEL);
}
static bool fill_fork_event(struct proc_event *ev, struct ve_struct *ve,
@@ -302,7 +302,7 @@ static void cn_proc_ack(struct ve_struct *ve, int err, int rcvd_seq, int rcvd_ac
msg->ack = rcvd_ack + 1;
msg->len = sizeof(*ev);
msg->flags = 0; /* not used */
- cn_netlink_send(msg, CN_IDX_PROC, GFP_KERNEL);
+ cn_netlink_send_ve(ve, msg, CN_IDX_PROC, GFP_KERNEL);
}
/**
More information about the Devel
mailing list