Skip to content

Commit 9d4949b

Browse files
Boaz17djbw
authored andcommitted
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 <[email protected]> Signed-off-by: Boaz Harrosh <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 91ab883 commit 9d4949b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/dax/super.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,6 @@ long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages,
246246
{
247247
long avail;
248248

249-
/*
250-
* The device driver is allowed to sleep, in order to make the
251-
* memory directly accessible.
252-
*/
253-
might_sleep();
254-
255249
if (!dax_dev)
256250
return -EOPNOTSUPP;
257251

0 commit comments

Comments
 (0)