mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-20 23:14:18 +00:00
Small performance optimization: wake up IO/processing threads in LIFO order.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -974,7 +974,7 @@ int istrd(void *arg)
|
||||
init_waitqueue_entry(&wait, current);
|
||||
|
||||
if (!test_rd_list()) {
|
||||
add_wait_queue_exclusive(&iscsi_rd_waitQ, &wait);
|
||||
add_wait_queue_exclusive_head(&iscsi_rd_waitQ, &wait);
|
||||
for (;;) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
if (test_rd_list())
|
||||
@@ -1662,7 +1662,7 @@ int istwr(void *arg)
|
||||
init_waitqueue_entry(&wait, current);
|
||||
|
||||
if (!test_wr_list()) {
|
||||
add_wait_queue_exclusive(&iscsi_wr_waitQ, &wait);
|
||||
add_wait_queue_exclusive_head(&iscsi_wr_waitQ, &wait);
|
||||
for (;;) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
if (test_wr_list())
|
||||
|
||||
Reference in New Issue
Block a user