summaryrefslogtreecommitdiff
path: root/block/blk-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 9c22406cdac3..eb70d01a37e5 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1931,6 +1931,8 @@ generic_make_request_checks(struct bio *bio)
might_sleep();
+ WARN_ON(!context_is_freezable());
+
if (bio_check_eod(bio, nr_sectors))
goto end_io;