]> git.ipfire.org Git - people/ms/linux.git/blobdiff - drivers/s390/block/dasd_int.h
s390/dasd: fix data corruption for ESE devices
[people/ms/linux.git] / drivers / s390 / block / dasd_int.h
index 3b7af00a7825fecc8aeade5102ea0f7c56bdc98e..07f9670ea61e798bae3cada43fa2b1e0293e3bd3 100644 (file)
@@ -756,6 +756,18 @@ dasd_check_blocksize(int bsize)
        return 0;
 }
 
+/*
+ * return the callback data of the original request in case there are
+ * ERP requests build on top of it
+ */
+static inline void *dasd_get_callback_data(struct dasd_ccw_req *cqr)
+{
+       while (cqr->refers)
+               cqr = cqr->refers;
+
+       return cqr->callback_data;
+}
+
 /* externals in dasd.c */
 #define DASD_PROFILE_OFF        0
 #define DASD_PROFILE_ON         1