History

scsi: bsg: Simplify device registration

Use the per-device cdev_device_interface to store the bsg data in the char device inode, and thus remove the need to embedd the bsg_class_device structure in the request_queue.

Christoph Hellwig committed 5 years ago

Commit ead09dd1 parent ba51bda9 files · +108 −277Browse files

Showing the changes to include/linux/blkdev.h (1 of 9 files). Show all

Unified · Split

include/linux/blkdev.h+0−6
@@ -18,7 +18,6 @@ · 17 unmodified lines
1818 #include <linux/bio.h>
1919 #include <linux/stringify.h>
2020 #include <linux/gfp.h>
21−#include <linux/bsg.h>
2221 #include <linux/smp.h>
2322 #include <linux/rcupdate.h>
2423 #include <linux/percpu-refcount.h>
@@ -33,7 +32,6 @@ struct elevator_queue; · 8 unmodified lines
3332 struct blk_trace;
3433 struct request;
3534 struct sg_io_hdr;
36−struct bsg_job;
3735 struct blkcg_gq;
3836 struct blk_flush_queue;
3937 struct pr_ops;
@@ -535,10 +533,6 @@ struct request_queue { · 495 unmodified lines
535533
536534 int mq_freeze_depth;
537535
538−#if IS_ENABLED(CONFIG_BLK_DEV_BSG_COMMON)
539− struct bsg_class_device bsg_dev;
540−#endif
541−
542536 #ifdef CONFIG_BLK_DEV_THROTTLING
543537 /* Throttle data */
544538 struct throtl_data *td;