From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: [PATCH v2] fs: Invalidate the cache for a parent block-device if fsync() is called for a partition Date: Mon, 23 Jan 2012 11:27:02 -0500 Message-ID: References: <4F19356E.3020708@redhat.com> <1327315109-7740-1-git-send-email-ndevos@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Bryn M. Reeves" , Mikulas Patocka To: Niels de Vos Return-path: Received: from mx1.redhat.com ([209.132.183.28]:30705 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534Ab2AWQ1E (ORCPT ); Mon, 23 Jan 2012 11:27:04 -0500 In-Reply-To: <1327315109-7740-1-git-send-email-ndevos@redhat.com> (Niels de Vos's message of "Mon, 23 Jan 2012 10:38:29 +0000") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Niels de Vos writes: > Executing an fsync() on a file-descriptor of a partition flushes the > caches for that partition by calling blkdev_issue_flush(). However, it > seems that reading data through the parent device will still return the > old cached data. What problem, exactly, are you trying to fix? Could you please post a reproducer? Cheers, Jeff