2.5.43 s390 (6/6): dasd stuff.
Subsystems (2)
PATCH 1/1 2.5.43 s390 (6/6): dasd stuff.
Add module license statements to dasd driver. Add XRC support. Fix possible endless loop in dasd_term_IO and check range of device numbers.
drivers/s390/block/dasd.c +5 -3
@@ -80,6 +82,7 @@MODULE_SUPPORTED_DEVICE ("dasd" ); MODULE_PARM(dasd, "1-" __MODULE_STRING(256) "s"); MODULE_PARM(dasd_disciplines, "1-" __MODULE_STRING(8) "s"); +MODULE_LICENSE ("GPL" );/* * SECTION: prototypes for static functions of dasd.c
@@ -1190,6 +1196,7 @@BUG ();break ; } + retries++; }dasd_schedule_bh (device);return rc;
@@ -1554,7 +1567,7 @@ goto restart; } -/* Rechain request on device device request queue */ +/* Rechain finished requests to final queue */ cqr->endclk =get_clock ();list_move_tail (&cqr->list, final_queue); }
@@ -1641,7 +1654,7 @@/* * Take a look at the first request on the ccw queue and check -* if it reached its expire time. +* if it reached its expire time. If so, terminate the IO. */ static inline void __dasd_check_expire (dasd_device_t * device)
@@ -1766,7 +1779,7 @@ }/* -* Schedules a call to dasd_process_queues over the device tasklet. +* Schedules a call to dasd_tasklet over the device tasklet. */ void dasd_schedule_bh (dasd_device_t * device)
drivers/s390/block/dasd_3990_erp.c +3 -0
@@ -1122,6 +1124,9 @@break ;default :/* unknown message format - should not happen */ +DEV_MESSAGE (KERN_WARNING , device, +"unknown message format %02x" , + msg_format);break ; }/* end switch message format */
drivers/s390/block/dasd_devmap.c +6 -1
@@ -87,6 +90,8 @@int dasd_devno (char *str,char **endp) { +int val; +/* remove leading '0x' */ if (*str =='0' ) { str++;
@@ -96,7 +101,10 @@/* We require at least one hex digit */ if (!isxdigit (*str))return -EINVAL ; -return simple_strtoul (str, endp,16 ); + val =simple_strtoul (str, endp,16 ); +if ((val >0xFFFF ) || (val <0 )) +return -EINVAL ; +return val; }/*
drivers/s390/block/dasd_diag.c +2 -0
@@ -40,6 +42,8 @@#endif /* PRINTK_HEADER */ #define PRINTK_HEADER "dasd(diag):" +MODULE_LICENSE ("GPL" ); +static dasd_discipline_t dasd_diag_discipline; typedef struct dasd_diag_private_t {
drivers/s390/block/dasd_eckd.c +41 -0
111 lines not on this page · raw message
drivers/s390/block/dasd_eckd.h +19 -1
@@ -1,3 +1,16 @@ +/* +* File...........: linux/drivers/s390/block/dasd_eckd.h +* Author(s)......: Holger Smolinski <[email protected]> +* Horst Hummel <[email protected]> +* Bugreports.to..: <[email protected]> +* (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000 +* +* $Revision: 1.4 $ +* +* History of changes +* +*/ +#ifndef DASD_ECKD_H #define DASD_ECKD_H
@@ -102,6 +115,10 @@__u8 ga_extended;/* Global Attributes Extended */ ch_t beg_ext;ch_t end_ext; +unsigned long long ep_sys_time;/* Extended Parameter - System Time Stamp */ +__u8 ep_format;/* Extended Parameter format byte */ +__u8 ep_prio;/* Extended Parameter priority I/O byte */ +__u8 ep_reserved[6 ];/* Extended Parameter Reserved */ } __attribute__ ((packed)) DE_eckd_data_t; typedef struct LO_eckd_data_t {
@@ -141,7 +158,8 @@ unsigned char reserved2:4; unsigned char reserved3:8; unsigned char defect_wr:1; - unsigned char reserved4:2; + unsigned char XRC_supported:1; + unsigned char reserved4:1; unsigned char striping:1; unsigned char reserved5:4; unsigned char cfw:1;
drivers/s390/block/dasd_fba.c +2 -0
@@ -38,6 +41,8 @@#define DASD_FBA_CCW_LOCATE 0x43#define DASD_FBA_CCW_DEFINE_EXTENT 0x63 +MODULE_LICENSE ("GPL" ); +static dasd_discipline_t dasd_fba_discipline; typedef struct dasd_fba_private_t {
drivers/s390/block/dasd_proc.c +1 -4
@@ -195,10 +198,7 @@break ;case DASD_STATE_READY :case DASD_STATE_ONLINE : -if (device->state <DASD_STATE_ONLINE ) - len +=sprintf (str + len,"fenced " ); -else - len +=sprintf (str + len,"active " ); + len +=sprintf (str + len,"active " );if (dasd_check_blocksize (device->bp_block)) len +=sprintf (str + len,"n/f " );else
include/asm-s390/dasd.h +2 -2
@@ -8,6 +8,8 @@* any future changes wrt the API will result in a change of the APIVERSION reported * to userspace by the DASDAPIVER-ioctl * +* $Revision: 1.3 $ +* * History of changes (starts July 2000) * 05/04/01 created by moving the kernel interface to drivers/s390/block/dasd_int.h * 12/06/01 DASD_API_VERSION 2 - binary compatible to 0 (new BIODASDINFO2)
@@ -224,8 +226,6 @@#define BIODASDSLCK _IO(DASD_IOCTL_LETTER,4)/* steal lock */ /* reset profiling information of a device */ #define BIODASDPRRST _IO(DASD_IOCTL_LETTER,5) -/* enable PAV */ -#define BIODASDENAPAV _IO(DASD_IOCTL_LETTER,6)/* retrieve API version number */
include/asm-s390x/dasd.h +2 -2
@@ -8,6 +8,8 @@* any future changes wrt the API will result in a change of the APIVERSION reported * to userspace by the DASDAPIVER-ioctl * +* $Revision: 1.3 $ +* * History of changes (starts July 2000) * 05/04/01 created by moving the kernel interface to drivers/s390/block/dasd_int.h * 12/06/01 DASD_API_VERSION 2 - binary compatible to 0 (new BIODASDINFO2)
@@ -224,8 +226,6 @@#define BIODASDSLCK _IO(DASD_IOCTL_LETTER,4)/* steal lock */ /* reset profiling information of a device */ #define BIODASDPRRST _IO(DASD_IOCTL_LETTER,5) -/* enable PAV */ -#define BIODASDENAPAV _IO(DASD_IOCTL_LETTER,6)/* retrieve API version number */