Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752823Ab3IVKAi (ORCPT ); Sun, 22 Sep 2013 06:00:38 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:54026 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752618Ab3IVKAh (ORCPT ); Sun, 22 Sep 2013 06:00:37 -0400 Message-ID: <1379844021.5598.8.camel@marge.simpson.net> Subject: Re: [PATCH] ipc/sem.c: fix update sem_otime when calling sem_op in semaphore initialization From: Mike Galbraith To: Jia He Cc: linux-kernel@vger.kernel.org, Davidlohr Bueso , Andrew Morton , Rik van Riel , Manfred Spraul , Al Viro Date: Sun, 22 Sep 2013 12:00:21 +0200 In-Reply-To: <523EB997.9090107@gmail.com> References: <1379815884-11035-1-git-send-email-jiakernel@gmail.com> <1379837823.5499.34.camel@marge.simpson.net> <1379838364.5499.39.camel@marge.simpson.net> <523EB997.9090107@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Provags-ID: V02:K0:uE8Ov1kK+9HSmc3y5su8vbzUJLz+Ti03iSdnI3/0ToO nrNsrKvp7D+VX5eVY1ocw3H/uxIzR5ur4Gr+MbkLe1fibhp07m 6wknnhfGR/bvmVjbIckk98OiyWLWtRdaDANVRKegKXWLdlb9pN M1ojPd/eAzftpUxEljCYyXfRZSuQokSi+EPW39MA+8tVHHB+E6 EqPJdaQMeXvhGQbRaoHqWdsF0B1liV0Z3lxT1JZMjshr8Yx9hs tzXTXeXfC8CrsN/+SFVBdbema85dmP/LE48ttM5CdwCQO9ex4t QgEpE897T6T5nRgSdVy0beLJL+syucx8M2qrKUIKXP0hYvN9Dd gd8MN/6fBwunDAOkO19+9a+EsglNnkVUJ2YkLwA0PyDuoK9E+9 WDNErsXR9/yLQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 20 On Sun, 2013-09-22 at 17:34 +0800, Jia He wrote: > Thanks for the comments, but pls add my email as "from jiakernel@gmail.com" > if you have a better implementation.U know, it is my first kernel patch, maybe > will give me a brilliant memory in the future :) You can have the blame if you like :) > Anyway, your implementation looks not correct to me. Because from "man semop" > sem_otime will record the last sem operation time of semop. If you change the > otime in semget(), it changes the meanings in stardard, doesn't it? A Linux kernel doing a semop in 1970 would be a kinda neat trick :) -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/