Skip to contentSkip to conversation

s390: qeth driver fixes [5/6]

PATCH In review Frank Pavlic 1 participant 1 message Sep 15, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 8/9 s390: qeth driver fixes [5/6]

[PATCH 8/9] s390: qeth driver fixes [5/6]

From: Frank Pavlic <[email protected]>
fix kernel panic in qdio queue handling. qeth_qdio_clear_card() could be invoked by 2 CPUs simultaneously (for example reboot event and recovery).

---

 drivers/s390/net/qeth.h      |    3 +-
 drivers/s390/net/qeth_main.c |   71 +++++++++++++++++++++++++-----------------
 2 files changed, 44 insertions(+), 30 deletions(-)

146a24d1aeba1ad3b16e98a5553693ccc0799349

drivers/s390/net/qeth.h +2 -1
index 22a7ffb..821383d 100644
@@ -463,6 +463,7 @@ enum qeth_qdio_info_states {
 	QETH_QDIO_UNINITIALIZED,
 	QETH_QDIO_ALLOCATED,
 	QETH_QDIO_ESTABLISHED,
+	QETH_QDIO_CLEANING
 };
 
 struct qeth_buffer_pool_entry {
@@ -537,7 +538,7 @@ struct qeth_qdio_out_q {
 } __attribute__ ((aligned(256)));
 
 struct qeth_qdio_info {
-	volatile enum qeth_qdio_info_states state;
+	atomic_t state;
 	/* input */
 	struct qeth_qdio_q *in_q;
 	struct qeth_qdio_buffer_pool in_buf_pool;
drivers/s390/net/qeth_main.c +42 -29

139 lines not on this page · raw message

Signature · 1 line
1.2.4