Skip to contentSkip to conversation

s390 (6/12): qeth network driver.

PATCH New Martin Schwidefsky 1 participant 1 message Oct 8, 2004

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

PATCH 1/1 s390 (6/12): qeth network driver.

[PATCH] s390: qeth network driver.

From: Thomas Spatzier <[email protected]>

qeth network driver changes:
- Unlock queue in qeth_do_sent_packet if there is no empty buffer in packing state.

diffstat:

 drivers/s390/net/qeth_main.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/s390/net/qeth_main.c +4 -3
diff -urN linux-2.6/drivers/s390/net/qeth_main.c linux-2.6-patched/drivers/s390/net/qeth_main.c
@@ -1,6 +1,6 @@
 /*
  *
- * linux/drivers/s390/net/qeth_main.c ($Revision: 1.138 $)
+ * linux/drivers/s390/net/qeth_main.c ($Revision: 1.145 $)
  *
  * Linux on zSeries OSA Express and HiperSockets support
  *
@@ -12,7 +12,7 @@
  *			  Frank Pavlic ([email protected]) and
  *		 	  Thomas Spatzier <[email protected]>
  *
- *    $Revision: 1.138 $	 $Date: 2004/09/17 10:40:53 $
+ *    $Revision: 1.145 $	 $Date: 2004/10/08 15:08:40 $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -79,7 +79,7 @@
 #include "qeth_mpc.h"
 #include "qeth_fs.h"
 
-#define VERSION_QETH_C "$Revision: 1.138 $"
+#define VERSION_QETH_C "$Revision: 1.145 $"
 static const char *version = "qeth S/390 OSA-Express driver";
 
 /**
@@ -3835,6 +3835,7 @@
 				/* return EBUSY because we sent old packet, not
 				 * the current one */
 				rc = -EBUSY;
+				atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED);
 				goto out;
 			}
 		}