提交 9d4949b4 编写于 作者: B Boaz Harrosh 提交者: Dan Williams

dax: ->direct_access does not sleep anymore

In Patch:
	[7a862fbb] 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: NBoaz Harrosh <boazh@netapp.com>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 91ab883e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册