Linux block layer
 help / color / mirror / Atom feed
* [PATCH] block: remove BLK_DEV_DAX config option
@ 2016-07-29 18:23 Ross Zwisler
  2016-07-29 20:31 ` Dan Williams
  2016-07-29 21:19 ` Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Ross Zwisler @ 2016-07-29 18:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ross Zwisler, Andrew Morton, Dan Williams, Jens Axboe,
	linux-block, linux-fsdevel, linux-nvdimm, Dave Hansen

The functionality for block device DAX was already removed with this
commit:

commit acc93d30d7d4 ("Revert "block: enable dax for raw block devices"")

However, we still had a config option hanging around that was always
disabled because it depended on CONFIG_BROKEN.  This config option was
introduced in this commit:

commit 03cdadb04077 ("block: disable block device DAX by default")

This change reverts that commit, removing the dead config option.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
---
 block/Kconfig  | 13 -------------
 fs/block_dev.c |  5 +----
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/block/Kconfig b/block/Kconfig
index 0363cd7..161491d 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -88,19 +88,6 @@ config BLK_DEV_INTEGRITY
 	T10/SCSI Data Integrity Field or the T13/ATA External Path
 	Protection.  If in doubt, say N.
 
-config BLK_DEV_DAX
-	bool "Block device DAX support"
-	depends on FS_DAX
-	depends on BROKEN
-	help
-	  When DAX support is available (CONFIG_FS_DAX) raw block
-	  devices can also support direct userspace access to the
-	  storage capacity via MMAP(2) similar to a file on a
-	  DAX-enabled filesystem.  However, the DAX I/O-path disables
-	  some standard I/O-statistics, and the MMAP(2) path has some
-	  operational differences due to bypassing the page
-	  cache.  If in doubt, say N.
-
 config BLK_DEV_THROTTLING
 	bool "Block layer bio throttling support"
 	depends on BLK_CGROUP=y
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 71ccab1..ab7ebee 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1287,10 +1287,7 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part)
 		bdev->bd_disk = disk;
 		bdev->bd_queue = disk->queue;
 		bdev->bd_contains = bdev;
-		if (IS_ENABLED(CONFIG_BLK_DEV_DAX) && disk->fops->direct_access)
-			bdev->bd_inode->i_flags = S_DAX;
-		else
-			bdev->bd_inode->i_flags = 0;
+		bdev->bd_inode->i_flags = 0;
 
 		if (!partno) {
 			ret = -ENXIO;
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: remove BLK_DEV_DAX config option
  2016-07-29 18:23 [PATCH] block: remove BLK_DEV_DAX config option Ross Zwisler
@ 2016-07-29 20:31 ` Dan Williams
  2016-07-29 21:19 ` Jens Axboe
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Williams @ 2016-07-29 20:31 UTC (permalink / raw)
  To: Ross Zwisler
  Cc: linux-kernel@vger.kernel.org, Andrew Morton, Jens Axboe,
	linux-block, linux-fsdevel, linux-nvdimm@lists.01.org,
	Dave Hansen

On Fri, Jul 29, 2016 at 11:23 AM, Ross Zwisler
<ross.zwisler@linux.intel.com> wrote:
> The functionality for block device DAX was already removed with this
> commit:
>
> commit acc93d30d7d4 ("Revert "block: enable dax for raw block devices"")
>
> However, we still had a config option hanging around that was always
> disabled because it depended on CONFIG_BROKEN.  This config option was
> introduced in this commit:
>
> commit 03cdadb04077 ("block: disable block device DAX by default")
>
> This change reverts that commit, removing the dead config option.
>
> Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Dan Williams <dan.j.williams@intel.com>

Acked-by: Dan Williams <dan.j.williams@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: remove BLK_DEV_DAX config option
  2016-07-29 18:23 [PATCH] block: remove BLK_DEV_DAX config option Ross Zwisler
  2016-07-29 20:31 ` Dan Williams
@ 2016-07-29 21:19 ` Jens Axboe
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2016-07-29 21:19 UTC (permalink / raw)
  To: Ross Zwisler, linux-kernel
  Cc: Andrew Morton, Dan Williams, linux-block, linux-fsdevel,
	linux-nvdimm, Dave Hansen

On 07/29/2016 12:23 PM, Ross Zwisler wrote:
> The functionality for block device DAX was already removed with this
> commit:
>
> commit acc93d30d7d4 ("Revert "block: enable dax for raw block devices"")
>
> However, we still had a config option hanging around that was always
> disabled because it depended on CONFIG_BROKEN.  This config option was
> introduced in this commit:
>
> commit 03cdadb04077 ("block: disable block device DAX by default")
>
> This change reverts that commit, removing the dead config option.

This doesn't apply to master, nor for-linus. I hand applied it.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-29 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-29 18:23 [PATCH] block: remove BLK_DEV_DAX config option Ross Zwisler
2016-07-29 20:31 ` Dan Williams
2016-07-29 21:19 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox