Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754642AbaG3Pej (ORCPT ); Wed, 30 Jul 2014 11:34:39 -0400 Received: from mga09.intel.com ([134.134.136.24]:16543 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027AbaG3Peh (ORCPT ); Wed, 30 Jul 2014 11:34:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,764,1400050800"; d="scan'208";a="551349931" Date: Wed, 30 Jul 2014 11:34:02 -0400 From: Matthew Wilcox To: Boaz Harrosh Cc: Jens Axboe , Ross Zwisler , linux-scsi , Nick Piggin , linux-kernel Subject: Re: [PATCH 2/2] brd: Fix brd_direct_access with partitions Message-ID: <20140730153402.GP6754@linux.intel.com> References: <53D7CDDD.1000302@gmail.com> <1406654379.2767.1.camel@rzwisler-mobl1.amr.corp.intel.com> <53D8D2C4.1030101@gmail.com> <53D8FE1F.1060009@plexistor.com> <53D8FEC7.8020804@plexistor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53D8FEC7.8020804@plexistor.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 30, 2014 at 05:18:47PM +0300, Boaz Harrosh wrote: > When brd_direct_access() is called on a partition-bdev > it would access the wrong sector. And caller would then > corrupt the device's data. > > This is a preliminary fix, Matthew Wilcox has a patch > in his DAX patchset which will define a global wrapper > to bdev->bd_disk->fops->direct_access that will do the > proper checks and translations before calling a driver > global member. (The way it is done at the rest of the > block stack) Uh, no, let's just focus on getting the DAX code in instead of putting in interim patches that will conflict. Patch 4/22 is uncontroversial, fixes this problem, has no dependencies, and is key to the rest of the DAX patchset. If this problem wants to be fixed, then put 4/22 in instead. -- 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/