diff options
author | Brian Behlendorf <[email protected]> | 2019-04-29 18:20:21 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2019-04-29 18:20:21 -0700 |
commit | c12ea778654778f2039369323e8875e71d3a5609 (patch) | |
tree | b6678ac70291e3d1cd1dd918790cf3dd5e2f9bc3 /module | |
parent | b43a27f76fa2cdad5e9a8e74a6a028e38a415a62 (diff) |
Linux 5.0 compat: Remove incorrect ASSERT
Not all block devices, notably scsi_debug, set a root_blkg on the
request queue. Remove this assertion and allow the the existing
call to blkg_tryget() to gracefully handle the NULL (which it does).
Reviewed-by: Tomohiro Kusumi <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #8678
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/vdev_disk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c index c2312e6fa..b329ef3c2 100644 --- a/module/zfs/vdev_disk.c +++ b/module/zfs/vdev_disk.c @@ -543,7 +543,6 @@ vdev_bio_associate_blkg(struct bio *bio) struct request_queue *q = bio->bi_disk->queue; ASSERT3P(q, !=, NULL); - ASSERT3P(q->root_blkg, !=, NULL); ASSERT3P(bio->bi_blkg, ==, NULL); if (blkg_tryget(q->root_blkg)) |