summaryrefslogtreecommitdiff
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-03-14 17:06:54 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2016-08-28 19:15:21 -0800
commiteea28a8431add43276e978455141a7616f39da78 (patch)
tree3f0b759ecae7a0672e0196f6e2398efc0df74c5a /block/blk-core.c
parentbd1f4c3b60629c957f03b7f94db1bced11801106 (diff)
pm debugging
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;