aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/s390/cio/chp.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/s390/cio/chp.c b/drivers/s390/cio/chp.c
index d3b72eab2b8f..e96aced58627 100644
--- a/drivers/s390/cio/chp.c
+++ b/drivers/s390/cio/chp.c
@@ -47,8 +47,6 @@ static DEFINE_MUTEX(info_lock);
47/* Time after which channel-path status may be outdated. */ 47/* Time after which channel-path status may be outdated. */
48static unsigned long chp_info_expires; 48static unsigned long chp_info_expires;
49 49
50/* Workqueue to perform pending configure tasks. */
51static struct workqueue_struct *chp_wq;
52static struct work_struct cfg_work; 50static struct work_struct cfg_work;
53 51
54/* Wait queue for configure completion events. */ 52/* Wait queue for configure completion events. */
@@ -717,7 +715,7 @@ static void cfg_func(struct work_struct *work)
717 wake_up_interruptible(&cfg_wait_queue); 715 wake_up_interruptible(&cfg_wait_queue);
718 return; 716 return;
719 } 717 }
720 queue_work(chp_wq, &cfg_work); 718 schedule_work(&cfg_work);
721} 719}
722 720
723/** 721/**
@@ -735,7 +733,7 @@ void chp_cfg_schedule(struct chp_id chpid, int configure)
735 cfg_set_task(chpid, configure ? cfg_configure : cfg_deconfigure); 733 cfg_set_task(chpid, configure ? cfg_configure : cfg_deconfigure);
736 cfg_busy = 1; 734 cfg_busy = 1;
737 mutex_unlock(&cfg_lock); 735 mutex_unlock(&cfg_lock);
738 queue_work(chp_wq, &cfg_work); 736 schedule_work(&cfg_work);
739} 737}
740 738
741/** 739/**
@@ -769,11 +767,6 @@ static int __init chp_init(void)
769 ret = crw_register_handler(CRW_RSC_CPATH, chp_process_crw); 767 ret = crw_register_handler(CRW_RSC_CPATH, chp_process_crw);
770 if (ret) 768 if (ret)
771 return ret; 769 return ret;
772 chp_wq = create_singlethread_workqueue("cio_chp");
773 if (!chp_wq) {
774 crw_unregister_handler(CRW_RSC_CPATH);
775 return -ENOMEM;
776 }
777 INIT_WORK(&cfg_work, cfg_func); 770 INIT_WORK(&cfg_work, cfg_func);
778 init_waitqueue_head(&cfg_wait_queue); 771 init_waitqueue_head(&cfg_wait_queue);
779 if (info_update()) 772 if (info_update())