aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/nvme-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index 40908a06bd5e..358d17700c20 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -1291,7 +1291,7 @@ static int nvme_kthread(void *data)
1291 struct nvme_dev *dev; 1291 struct nvme_dev *dev;
1292 1292
1293 while (!kthread_should_stop()) { 1293 while (!kthread_should_stop()) {
1294 __set_current_state(TASK_RUNNING); 1294 set_current_state(TASK_INTERRUPTIBLE);
1295 spin_lock(&dev_list_lock); 1295 spin_lock(&dev_list_lock);
1296 list_for_each_entry(dev, &dev_list, node) { 1296 list_for_each_entry(dev, &dev_list, node) {
1297 int i; 1297 int i;
@@ -1308,7 +1308,6 @@ static int nvme_kthread(void *data)
1308 } 1308 }
1309 } 1309 }
1310 spin_unlock(&dev_list_lock); 1310 spin_unlock(&dev_list_lock);
1311 set_current_state(TASK_INTERRUPTIBLE);
1312 schedule_timeout(round_jiffies_relative(HZ)); 1311 schedule_timeout(round_jiffies_relative(HZ));
1313 } 1312 }
1314 return 0; 1313 return 0;