dax: ->direct_access does not sleep anymore
authorBoaz Harrosh <boazh@netapp.com>
Mon, 26 Feb 2018 16:50:35 +0000 (18:50 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 26 Feb 2018 20:32:29 +0000 (12:32 -0800)
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>
drivers/dax/super.c

index 473af69..ecdc292 100644 (file)
@@ -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;