From: Boaz Harrosh Date: Mon, 26 Feb 2018 16:50:35 +0000 (+0200) Subject: dax: ->direct_access does not sleep anymore X-Git-Tag: v4.16-rc4~7^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d4949b4935831be10534d5432bf611285a572a5;p=thirdparty%2Flinux.git 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 Signed-off-by: Boaz Harrosh Signed-off-by: Dan Williams --- diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 473af694ad1cb..ecdc292aa4e4d 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;