diff options
author | Boaz Harrosh <boazh@netapp.com> | 2018-02-26 17:50:35 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-02-26 21:32:29 +0100 |
commit | 9d4949b4935831be10534d5432bf611285a572a5 (patch) | |
tree | e78d900f6195b6ae795c3d0bd4353fa72395c215 | |
parent | Linux 4.16-rc2 (diff) | |
download | linux-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.c | 6 |
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; |