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>
This commit is contained in:
Boaz Harrosh 2018-02-26 18:50:35 +02:00 коммит произвёл Dan Williams
Родитель 91ab883eb2
Коммит 9d4949b493
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -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;