summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.h
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2006-07-12 16:39:50 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2006-07-12 16:39:50 +0200
commit6ab4879a0d074c938fd17dba141dce042fc17bee (patch)
tree62e413692d4c55ae322c3201c36ded4808806cb5 /drivers/s390/cio/css.h
parent63f4f9e1281ea9b9a2304bd13d657ba9d401c9a7 (diff)
downloadtalos-op-linux-6ab4879a0d074c938fd17dba141dce042fc17bee.tar.gz
talos-op-linux-6ab4879a0d074c938fd17dba141dce042fc17bee.zip
[S390] subchannel register/unregister mutex.
Add a reg_mutex to prevent unregistering a subchannel before it has been registered. Since 2.6.17, we've seen oopses in kslowcrw when a device is found to be not operational during sense id when doing initial device recognition; it is not clear yet why that particular problem was not (yet) observed with earlier kernels... Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/css.h')
-rw-r--r--drivers/s390/cio/css.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.h b/drivers/s390/cio/css.h
index e210f89a2449..15f7f7cb0ec2 100644
--- a/drivers/s390/cio/css.h
+++ b/drivers/s390/cio/css.h
@@ -136,6 +136,8 @@ extern struct bus_type css_bus_type;
extern struct css_driver io_subchannel_driver;
extern int css_probe_device(struct subchannel_id);
+extern int css_sch_device_register(struct subchannel *);
+extern void css_sch_device_unregister(struct subchannel *);
extern struct subchannel * get_subchannel_by_schid(struct subchannel_id);
extern int css_init_done;
extern int for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *);
OpenPOWER on IntegriCloud