]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: block: Remove the remaining SG_IO-related fields from struct request_queue
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Jul 2021 06:48:44 +0000 (08:48 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 31 Jul 2021 02:22:36 +0000 (22:22 -0400)
commitefc0491dd7fb015a454fd6eb9d3d38e6f718fac9
treef58256f8f18088bb619a2eaded3877750f7c4bcf
parentdb8487a87f02538e347e7575fd3163c67e9a641d
scsi: block: Remove the remaining SG_IO-related fields from struct request_queue

Move the sg_timeout and sg_reserved_size fields into the bsg_device and
scsi_device structures as they have nothing to do with generic block I/O.
Note that these values are now separate for bsg vs. SCSI device node
access, but that just matches how /dev/sg vs the other nodes has always
behaved.

Link: https://lore.kernel.org/r/20210729064845.1044147-4-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/blk-mq.c
block/bsg.c
drivers/scsi/scsi_ioctl.c
drivers/scsi/scsi_scan.c
include/linux/blkdev.h
include/scsi/scsi_device.h