Commit 330694a5 authored by Bart Van Assche's avatar Bart Van Assche Committed by Nicholas Bellinger

target: Improve system responsivity during I/O

While testing ib_srpt I noticed that the target system became
rather unresponsive during intensive I/O. The patch below made
my target system responsive again during I/O without decreasing
performance.
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 0957627a
...@@ -4599,8 +4599,6 @@ static int transport_processing_thread(void *param) ...@@ -4599,8 +4599,6 @@ static int transport_processing_thread(void *param)
struct se_cmd *cmd; struct se_cmd *cmd;
struct se_device *dev = (struct se_device *) param; struct se_device *dev = (struct se_device *) param;
set_user_nice(current, -20);
while (!kthread_should_stop()) { while (!kthread_should_stop()) {
ret = wait_event_interruptible(dev->dev_queue_obj.thread_wq, ret = wait_event_interruptible(dev->dev_queue_obj.thread_wq,
atomic_read(&dev->dev_queue_obj.queue_cnt) || atomic_read(&dev->dev_queue_obj.queue_cnt) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment