* [PATCH] scsi: remove the disable_blk_mq host flag
@ 2016-07-13 4:19 Christoph Hellwig
2016-07-13 10:40 ` Bart Van Assche
2016-07-15 19:11 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2016-07-13 4:19 UTC (permalink / raw)
To: linux-scsi
We've had scsi-mq for 2.5 years now, so we can remove the unused flag
to disable the code on a per-host basis that was put in for unexpected
emergencies during bringup.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
drivers/scsi/hosts.c | 2 --
drivers/scsi/scsi.c | 1 +
include/scsi/scsi_host.h | 6 ++----
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 1547bd9..ba9af4a 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -486,8 +486,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
else
shost->dma_boundary = 0xffffffff;
- shost->use_blk_mq = scsi_use_blk_mq && !shost->hostt->disable_blk_mq;
-
device_initialize(&shost->shost_gendev);
dev_set_name(&shost->shost_gendev, "host%d", shost->host_no);
shost->shost_gendev.bus = &scsi_bus_type;
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 1deb6ad..1f36aca 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -1160,6 +1160,7 @@ bool scsi_use_blk_mq = true;
bool scsi_use_blk_mq = false;
#endif
module_param_named(use_blk_mq, scsi_use_blk_mq, bool, S_IWUSR | S_IRUGO);
+EXPORT_SYMBOL_GPL(scsi_use_blk_mq);
static int __init init_scsi(void)
{
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 76e9d27..0dee7af 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -495,9 +495,6 @@ struct scsi_host_template {
*/
unsigned int cmd_size;
struct scsi_host_cmd_pool *cmd_pool;
-
- /* temporary flag to disable blk-mq I/O path */
- bool disable_blk_mq;
};
/*
@@ -778,7 +775,8 @@ extern bool scsi_use_blk_mq;
static inline bool shost_use_blk_mq(struct Scsi_Host *shost)
{
- return shost->use_blk_mq;
+ return scsi_use_blk_mq;
+
}
extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *);
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: remove the disable_blk_mq host flag
2016-07-13 4:19 [PATCH] scsi: remove the disable_blk_mq host flag Christoph Hellwig
@ 2016-07-13 10:40 ` Bart Van Assche
2016-07-15 19:11 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Bart Van Assche @ 2016-07-13 10:40 UTC (permalink / raw)
To: Christoph Hellwig, linux-scsi
On 07/13/2016 11:19 AM, Christoph Hellwig wrote:
> We've had scsi-mq for 2.5 years now, so we can remove the unused flag
> to disable the code on a per-host basis that was put in for unexpected
> emergencies during bringup.
Reviewed-by: bart.vanassche@sandisk.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: remove the disable_blk_mq host flag
2016-07-13 4:19 [PATCH] scsi: remove the disable_blk_mq host flag Christoph Hellwig
2016-07-13 10:40 ` Bart Van Assche
@ 2016-07-15 19:11 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2016-07-15 19:11 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-scsi
>>>>> "Christoph" == Christoph Hellwig <hch@lst.de> writes:
Christoph> We've had scsi-mq for 2.5 years now, so we can remove the
Christoph> unused flag to disable the code on a per-host basis that was
Christoph> put in for unexpected emergencies during bringup.
Applied to 4.8/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-15 19:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13 4:19 [PATCH] scsi: remove the disable_blk_mq host flag Christoph Hellwig
2016-07-13 10:40 ` Bart Van Assche
2016-07-15 19:11 ` Martin K. Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.