Skip to contentSkip to conversation

dasd: Use default recovery for SNSS requests

S390 Martin Schwidefsky 1 participant 1 message Mar 5, 2007

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

From: Stefan Weinhuber <[email protected]>

[S390] dasd: Use default recovery for SNSS requests

For extended error reporting we sometimes have to start an Sense Subsystem Status request (SNSS). When this request needs to be recovered for some reason, the recovery request will fail with 'command reject'.
Our usual recovery procedure will retry the failed request by creating a new request and chaining the failed request from that one. SNSS requests, though, must not be chained from anything, so the recovery request will fail permanently.
Use the default recovery for SNSS request, which will just restart the original request without further ado.

---

 drivers/s390/block/dasd_eer.c |    1 +
 1 files changed, 1 insertion(+)
drivers/s390/block/dasd_eer.c +1 -0
diff -urpN linux-2.6/drivers/s390/block/dasd_eer.c linux-2.6-patched/drivers/s390/block/dasd_eer.c
@@ -461,6 +461,7 @@ int dasd_eer_enable(struct dasd_device *
 	cqr->device = device;
 	cqr->retries = 255;
 	cqr->expires = 10 * HZ;
+	clear_bit(DASD_CQR_FLAGS_USE_ERP, &cqr->flags);
 
 	cqr->cpaddr->cmd_code = DASD_ECKD_CCW_SNSS;
 	cqr->cpaddr->count = SNSS_DATA_SIZE;