]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/bsg.c
bsg: update check for rq based driver for blk-mq
[mirror_ubuntu-bionic-kernel.git] / block / bsg.c
index 420a5a9f1b23f72963dc928b2dd009be443e3337..e5214c1480962e5d53c0f0ced44af571051d9654 100644 (file)
@@ -1008,7 +1008,7 @@ int bsg_register_queue(struct request_queue *q, struct device *parent,
        /*
         * we need a proper transport to send commands, not a stacked device
         */
-       if (!q->request_fn)
+       if (!queue_is_rq_based(q))
                return 0;
 
        bcd = &q->bsg_dev;