diff mbox

dax: ->direct_access does not sleep anymore

Message ID 6a5a6353-2714-8eb6-2566-a4384a95db0b@netapp.com (mailing list archive)
State Accepted
Commit 9d4949b49358
Headers show

Commit Message

Boaz Harrosh Feb. 26, 2018, 4:50 p.m. UTC
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>
---
 drivers/dax/super.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Dan Williams Feb. 26, 2018, 8:41 p.m. UTC | #1
On Mon, Feb 26, 2018 at 8:50 AM, Boaz Harrosh <boazh@netapp.com> wrote:
>
> 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>

Looks good, applied.
diff mbox

Patch

diff --git a/drivers/dax/super.c b/drivers/dax/super.c
index 3ec8046..0a75550 100644
--- a/drivers/dax/super.c
+++ b/drivers/dax/super.c
@@ -236,12 +236,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;