diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-03-16 16:45:49 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 15:53:00 -0400 |
commit | 3cb967c03926edd2c414082f4cc0feb7b372edae (patch) | |
tree | bb754d4758929d05e161dcafdab2d914b4361c60 /drivers/block | |
parent | 7523d834dd1573610078eb1ac0933f6490232f90 (diff) |
NVMe: Remove the kthread from the wait queue
Once there are no more bios on the congestion list, we can stop waking
up the nvme kthread every time a completion happens.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index cf89db8c41ee..8d3c0b79ac2b 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -1162,6 +1162,9 @@ static void nvme_resubmit_bios(struct nvme_queue *nvmeq) | |||
1162 | bio_list_add_head(&nvmeq->sq_cong, bio); | 1162 | bio_list_add_head(&nvmeq->sq_cong, bio); |
1163 | break; | 1163 | break; |
1164 | } | 1164 | } |
1165 | if (bio_list_empty(&nvmeq->sq_cong)) | ||
1166 | remove_wait_queue(&nvmeq->sq_full, | ||
1167 | &nvmeq->sq_cong_wait); | ||
1165 | } | 1168 | } |
1166 | } | 1169 | } |
1167 | 1170 | ||