From 39e9dbf3241f8cbe3b9af2917659b9d5152ead25 Mon Sep 17 00:00:00 2001 From: Sebastian Ott Date: Mon, 7 Dec 2009 12:51:38 +0100 Subject: [PATCH] --- yaml --- r: 173249 b: refs/heads/master c: 6e9a0f67deeca90c433ac40b887cee8da3bdcea2 h: refs/heads/master i: 173247: f7262f63b10476fec5fcfae880323a3b60b9b450 v: v3 --- [refs] | 2 +- trunk/drivers/s390/cio/device.c | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 213328fd6346..0e98697d2c1f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0c609fca243d456af014e92ad1caca045072dfe8 +refs/heads/master: 6e9a0f67deeca90c433ac40b887cee8da3bdcea2 diff --git a/trunk/drivers/s390/cio/device.c b/trunk/drivers/s390/cio/device.c index af500aac24ef..bd6e8cf77fad 100644 --- a/trunk/drivers/s390/cio/device.c +++ b/trunk/drivers/s390/cio/device.c @@ -1059,6 +1059,8 @@ static int io_subchannel_probe(struct subchannel *sch) return 0; } +static void io_subchannel_quiesce(struct subchannel *); + static int io_subchannel_remove (struct subchannel *sch) { @@ -1068,6 +1070,7 @@ io_subchannel_remove (struct subchannel *sch) cdev = sch_get_cdev(sch); if (!cdev) goto out_free; + io_subchannel_quiesce(sch); /* Set ccw device to not operational and drop reference. */ spin_lock_irqsave(cdev->ccwlock, flags); sch_set_cdev(sch, NULL); @@ -1150,7 +1153,7 @@ static int io_subchannel_chp_event(struct subchannel *sch, return 0; } -static void io_subchannel_shutdown(struct subchannel *sch) +static void io_subchannel_quiesce(struct subchannel *sch) { struct ccw_device *cdev; int ret; @@ -1182,6 +1185,11 @@ static void io_subchannel_shutdown(struct subchannel *sch) spin_unlock_irq(sch->lock); } +static void io_subchannel_shutdown(struct subchannel *sch) +{ + io_subchannel_quiesce(sch); +} + static int device_is_disconnected(struct ccw_device *cdev) { if (!cdev)