mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
scsi: core: Remove scsi_sdb_cache
After commit f664a3cc17
("scsi: kill off the legacy IO path"),
scsi_sdb_cache is not used anymore. Remove it.
Link: https://lore.kernel.org/r/20200619154117.10262-2-huobean@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
da3f28da1c
commit
71df6fb976
3 changed files with 0 additions and 19 deletions
|
@ -754,9 +754,6 @@ static int __init init_scsi(void)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
error = scsi_init_queue();
|
|
||||||
if (error)
|
|
||||||
return error;
|
|
||||||
error = scsi_init_procfs();
|
error = scsi_init_procfs();
|
||||||
if (error)
|
if (error)
|
||||||
goto cleanup_queue;
|
goto cleanup_queue;
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
#define SCSI_INLINE_SG_CNT 2
|
#define SCSI_INLINE_SG_CNT 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct kmem_cache *scsi_sdb_cache;
|
|
||||||
static struct kmem_cache *scsi_sense_cache;
|
static struct kmem_cache *scsi_sense_cache;
|
||||||
static struct kmem_cache *scsi_sense_isadma_cache;
|
static struct kmem_cache *scsi_sense_isadma_cache;
|
||||||
static DEFINE_MUTEX(scsi_sense_cache_mutex);
|
static DEFINE_MUTEX(scsi_sense_cache_mutex);
|
||||||
|
@ -1955,24 +1954,10 @@ void scsi_unblock_requests(struct Scsi_Host *shost)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(scsi_unblock_requests);
|
EXPORT_SYMBOL(scsi_unblock_requests);
|
||||||
|
|
||||||
int __init scsi_init_queue(void)
|
|
||||||
{
|
|
||||||
scsi_sdb_cache = kmem_cache_create("scsi_data_buffer",
|
|
||||||
sizeof(struct scsi_data_buffer),
|
|
||||||
0, 0, NULL);
|
|
||||||
if (!scsi_sdb_cache) {
|
|
||||||
printk(KERN_ERR "SCSI: can't init scsi sdb cache\n");
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void scsi_exit_queue(void)
|
void scsi_exit_queue(void)
|
||||||
{
|
{
|
||||||
kmem_cache_destroy(scsi_sense_cache);
|
kmem_cache_destroy(scsi_sense_cache);
|
||||||
kmem_cache_destroy(scsi_sense_isadma_cache);
|
kmem_cache_destroy(scsi_sense_isadma_cache);
|
||||||
kmem_cache_destroy(scsi_sdb_cache);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -93,7 +93,6 @@ extern struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev);
|
||||||
extern void scsi_start_queue(struct scsi_device *sdev);
|
extern void scsi_start_queue(struct scsi_device *sdev);
|
||||||
extern int scsi_mq_setup_tags(struct Scsi_Host *shost);
|
extern int scsi_mq_setup_tags(struct Scsi_Host *shost);
|
||||||
extern void scsi_mq_destroy_tags(struct Scsi_Host *shost);
|
extern void scsi_mq_destroy_tags(struct Scsi_Host *shost);
|
||||||
extern int scsi_init_queue(void);
|
|
||||||
extern void scsi_exit_queue(void);
|
extern void scsi_exit_queue(void);
|
||||||
extern void scsi_evt_thread(struct work_struct *work);
|
extern void scsi_evt_thread(struct work_struct *work);
|
||||||
struct request_queue;
|
struct request_queue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue