diff options
Diffstat (limited to 'ipc/msg.c')
| -rw-r--r-- | ipc/msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -758,7 +758,7 @@ static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg, | |||
| 758 | WRITE_ONCE(msr->r_msg, ERR_PTR(-E2BIG)); | 758 | WRITE_ONCE(msr->r_msg, ERR_PTR(-E2BIG)); |
| 759 | } else { | 759 | } else { |
| 760 | ipc_update_pid(&msq->q_lrpid, task_pid(msr->r_tsk)); | 760 | ipc_update_pid(&msq->q_lrpid, task_pid(msr->r_tsk)); |
| 761 | msq->q_rtime = get_seconds(); | 761 | msq->q_rtime = ktime_get_real_seconds(); |
| 762 | 762 | ||
| 763 | wake_q_add(wake_q, msr->r_tsk); | 763 | wake_q_add(wake_q, msr->r_tsk); |
| 764 | WRITE_ONCE(msr->r_msg, msg); | 764 | WRITE_ONCE(msr->r_msg, msg); |
| @@ -859,7 +859,7 @@ static long do_msgsnd(int msqid, long mtype, void __user *mtext, | |||
| 859 | } | 859 | } |
| 860 | 860 | ||
| 861 | ipc_update_pid(&msq->q_lspid, task_tgid(current)); | 861 | ipc_update_pid(&msq->q_lspid, task_tgid(current)); |
| 862 | msq->q_stime = get_seconds(); | 862 | msq->q_stime = ktime_get_real_seconds(); |
| 863 | 863 | ||
| 864 | if (!pipelined_send(msq, msg, &wake_q)) { | 864 | if (!pipelined_send(msq, msg, &wake_q)) { |
| 865 | /* no one is waiting for this message, enqueue it */ | 865 | /* no one is waiting for this message, enqueue it */ |
| @@ -1087,7 +1087,7 @@ static long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, in | |||
| 1087 | 1087 | ||
| 1088 | list_del(&msg->m_list); | 1088 | list_del(&msg->m_list); |
| 1089 | msq->q_qnum--; | 1089 | msq->q_qnum--; |
| 1090 | msq->q_rtime = get_seconds(); | 1090 | msq->q_rtime = ktime_get_real_seconds(); |
| 1091 | ipc_update_pid(&msq->q_lrpid, task_tgid(current)); | 1091 | ipc_update_pid(&msq->q_lrpid, task_tgid(current)); |
| 1092 | msq->q_cbytes -= msg->m_ts; | 1092 | msq->q_cbytes -= msg->m_ts; |
| 1093 | atomic_sub(msg->m_ts, &ns->msg_bytes); | 1093 | atomic_sub(msg->m_ts, &ns->msg_bytes); |
