summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoaz Harrosh <boazh@netapp.com>2018-02-26 17:50:35 +0100
committerDan Williams <dan.j.williams@intel.com>2018-02-26 21:32:29 +0100
commit9d4949b4935831be10534d5432bf611285a572a5 (patch)
treee78d900f6195b6ae795c3d0bd4353fa72395c215
parentLinux 4.16-rc2 (diff)
downloadlinux-9d4949b4935831be10534d5432bf611285a572a5.tar.xz
linux-9d4949b4935831be10534d5432bf611285a572a5.zip
dax: ->direct_access does not sleep anymore
In Patch: [7a862fb] brd: remove dax support Dan Williams has removed the only might_sleep implementation of ->direct_access. So we no longer need to check for it. CC: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Boaz Harrosh <boazh@netapp.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--drivers/dax/super.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dax/super.c b/drivers/dax/super.c
index 473af694ad1c..ecdc292aa4e4 100644
--- a/drivers/dax/super.c
+++ b/drivers/dax/super.c
@@ -246,12 +246,6 @@ long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages,
{
long avail;
- /*
- * The device driver is allowed to sleep, in order to make the
- * memory directly accessible.
- */
- might_sleep();
-
if (!dax_dev)
return -EOPNOTSUPP;