Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756759Ab3CUDRw (ORCPT ); Wed, 20 Mar 2013 23:17:52 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:56535 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756576Ab3CUDRv (ORCPT ); Wed, 20 Mar 2013 23:17:51 -0400 MIME-Version: 1.0 In-Reply-To: <514A7340.5040409@huawei.com> References: <1363793126-11510-1-git-send-email-ming.lei@canonical.com> <1363793126-11510-2-git-send-email-ming.lei@canonical.com> <514A7340.5040409@huawei.com> Date: Thu, 21 Mar 2013 11:17:48 +0800 Message-ID: Subject: Re: [PATCH 1/2] sysfs: fix race between readdir and lseek From: Ming Lei To: Li Zefan Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 482 Lines: 14 On Thu, Mar 21, 2013 at 10:41 AM, Li Zefan wrote: > > In fact the same race exists between readdir() and read()/write()... Fortunately, no read()/write() are implemented on sysfs directory, :-) Thanks, -- Ming Lei -- 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/