summaryrefslogtreecommitdiff
path: root/drivers/scsi/st.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-16 16:19:03 +0300
committerJens Axboe <axboe@kernel.dk>2021-08-23 21:54:30 +0300
commit45938335d0a9773d65a82a7ca722bb76e4b997a8 (patch)
tree5140a7f97a4e8f47b8b8081f4738992a7dc163f0 /drivers/scsi/st.h
parent5f432cceb3e9de5223fa50d882c4a43cab39a3ee (diff)
downloadlinux-45938335d0a9773d65a82a7ca722bb76e4b997a8.tar.xz
st: do not allocate a gendisk
st is a character driver and thus does not need to allocate a gendisk, which is only used for file system-like block layer I/O on block devices. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210816131910.615153-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi/st.h')
-rw-r--r--drivers/scsi/st.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/st.h b/drivers/scsi/st.h
index 9d3c38bb0794..c0ef0d9aaf8a 100644
--- a/drivers/scsi/st.h
+++ b/drivers/scsi/st.h
@@ -187,7 +187,7 @@ struct scsi_tape {
unsigned char last_cmnd[6];
unsigned char last_sense[16];
#endif
- struct gendisk *disk;
+ char name[DISK_NAME_LEN];
struct kref kref;
struct scsi_tape_stats *stats;
};