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. Link: https://lore.kernel.org/r/20210729064845.1044147-2-hch@lst.de Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>
Showing
- block/bsg-lib.c 6 additions, 5 deletionsblock/bsg-lib.c
- block/bsg.c 72 additions, 232 deletionsblock/bsg.c
- drivers/scsi/scsi_bsg.c 3 additions, 2 deletionsdrivers/scsi/scsi_bsg.c
- drivers/scsi/scsi_priv.h 2 additions, 9 deletionsdrivers/scsi/scsi_priv.h
- drivers/scsi/scsi_sysfs.c 16 additions, 8 deletionsdrivers/scsi/scsi_sysfs.c
- include/linux/blkdev.h 0 additions, 6 deletionsinclude/linux/blkdev.h
- include/linux/bsg-lib.h 1 addition, 0 deletionsinclude/linux/bsg-lib.h
- include/linux/bsg.h 6 additions, 15 deletionsinclude/linux/bsg.h
- include/scsi/scsi_device.h 2 additions, 0 deletionsinclude/scsi/scsi_device.h
Loading
Please register or sign in to comment