[PATCH] MAINTAINERS: zfcp

2007-12-18 Thread Swen Schillig
=== --- scsi-misc.orig/MAINTAINERS +++ scsi-misc/MAINTAINERS @@ -3246,8 +3246,10 @@ W: http://www.ibm.com/developerworks/lin S: Supported S390 ZFCP DRIVER -P: Swen Schillig -M: [EMAIL PROTECTED] +P: Christof Schmitt +M: [EMAIL PROTECTED] +P: Martin Peschke +M

Re: [PATCH] zfcp: add some internal zfcp adapter statistics

2007-12-06 Thread Swen Schillig
On Monday 26 November 2007 11:23, Swen Schillig wrote: On Sunday 25 November 2007 12:16, James Bottomley wrote: On Wed, 2007-10-31 at 11:33 +0100, Swen Schillig wrote: From: Swen Schillig [EMAIL PROTECTED] add some statistics provided by the zFCP adapter to the sysfs The new

Re: [PATCH] zfcp: add some internal zfcp adapter statistics

2007-11-26 Thread Swen Schillig
On Sunday 25 November 2007 12:16, James Bottomley wrote: On Wed, 2007-10-31 at 11:33 +0100, Swen Schillig wrote: From: Swen Schillig [EMAIL PROTECTED] add some statistics provided by the zFCP adapter to the sysfs The new zFCP adapter statistics provide a variety of information

[PATCH] zfcp: fix use after free bug

2007-11-23 Thread Swen Schillig
PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_def.h | 14 ++ drivers/s390/scsi/zfcp_erp.c |3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) Index: SHIP_OCT2005/drivers/s390/scsi/zfcp_def.h

Re: [PATCH UPDATE] zfcp: add some internal zfcp adapter statistics

2007-11-21 Thread Swen Schillig
James can you give me the status of the below patch ? Is there anything missing from my side or is the patch still in review by you ? Cheers Swen On Friday 09 November 2007 14:07, Swen Schillig wrote: Updated the statistics patch to cover the issues pointed out by Heiko. James, could you

Re: [PATCH] zfcp: add some internal zfcp adapter statistics

2007-11-05 Thread Swen Schillig
On Saturday 03 November 2007 10:40, Heiko Carstens wrote: + if (!(adapter-adapter_features FSF_FEATURE_MEASUREMENT_DATA)) { + ZFCP_LOG_NORMAL(error: Enhanced measurement feature not + supported); + return -EOPNOTSUPP; + } Btw. any user

Re: [PATCH] zfcp: add some internal zfcp adapter statistics

2007-11-05 Thread Swen Schillig
On Saturday 03 November 2007 10:17, Heiko Carstens wrote: +static void zfcp_fsf_req_latency(struct zfcp_fsf_req *fsf_req) +{ + struct fsf_qual_latency_info *lat_inf; + struct zfcp_unit *unit; + + lat_inf = fsf_req-qtcb-prefix.prot_status_qual.latency_info; + unit =

[PATCH] zfcp: add some internal zfcp adapter statistics

2007-10-31 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] add some statistics provided by the zFCP adapter to the sysfs The new zFCP adapter statistics provide a variety of information about the virtual adapter (subchannel). In order to collect this information the zFCP driver is extended on one side to query

[PATCH 2/2] zfcp: zfcp: add statistics and other zfcp relatedinformation to sysfs

2007-09-07 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] add statistics and other zfcp related information to sysfs The zfcp adapter provides a variety of information which was never published to the external world. This patch adds a few of those statistics to the sysfs tree structure. These are reflected

[PATCH 1/2] zfcp: whitespace cleanup

2007-09-07 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] Cleanup the whitepace from the entire zfcp driver to prevent to have those changes in future feature or function patches. Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_aux.c|4 - drivers/s390/scsi/zfcp_def.h

[PATCH 0/2] zfcp: cleanup and add statistics

2007-09-07 Thread Swen Schillig
James please drop my first attempt for the zfcp add statistics patch and instead use the 2 which are following. Patch 1: whitespace cleanup. Patch 2: the modified zfcp add statistics patch This patchset was created due to the comments from Heiko Carstens pointing out a few things which could

Re: [RFC] zfcp: add statistics and other zfcp related information to sysfs

2007-09-05 Thread Swen Schillig
On Monday 03 September 2007 14:40, Matthew Wilcox wrote: On Mon, Sep 03, 2007 at 02:16:21PM +0200, Swen Schillig wrote: /sys/bus/ccw/drivers/zfcp/0.0.1707 /* information for the virtual adapter */ statistic_services/ requests megabytes

[PATCH] zfcp: add statistics and other zfcp relatedinformation to sysfs

2007-09-05 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] add statistics and other zfcp related information to sysfs The zfcp adapter provides a variety of information which was never published to the external world. This patch adds a few of those statistics to the sysfs tree structure. These are reflected

[RFC] zfcp: add statistics and other zfcp related information to sysfs

2007-09-03 Thread Swen Schillig
The zfcp adapter provides a variety of information which was never published to the external world. This patch adds a few of those statistics to the sysfs tree structure. These are reflected in the following attributes /sys/bus/ccw/drivers/zfcp/0.0.1707 /* information for the virtual adapter */

[PATCH 1/10] zfcp: fix memory leak.

2007-08-28 Thread Swen Schillig
Subject: [PATCH] zfcp: fix memory leak. From: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Singed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_scsi.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -urpN linux-2.6

[PATCH 4/10] zfcp: avoid if (whatever) ; constructs.

2007-08-28 Thread Swen Schillig
From: Heiko Carstens [EMAIL PROTECTED] Avoid if (whatever) ; constructs since they seem to confuse people, even if there is a comment. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_erp.c |4 ++-- 1 file changed, 2

PATCH 5/10] zfcp: Remove unnecessary assignment

2007-08-28 Thread Swen Schillig
From: Christof Schmitt [EMAIL PROTECTED] zfcp_adapter_enqueue initialized adapter-ccw_device twice with the same value. Remove the second assignment, since it is not necessary. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390

[PATCH 3/10] zfcp: correct indentation for nested if-else

2007-08-28 Thread Swen Schillig
From: Christof Schmitt [EMAIL PROTECTED] correct indentation for nested if-else Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_fsf.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions

[PATCH 8/10] Introduce disable_target_scan flag in FC transport class

2007-08-28 Thread Swen Schillig
From: Christof Schmitt [EMAIL PROTECTED] This change has already been discussed on linux-scsi: http://marc.info/?t=11877109643 http://marc.info/?t=11876091315 Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/scsi

[PATCH 6/10] zfcp: Remove braces for only one statement

2007-08-28 Thread Swen Schillig
From: Christof Schmitt [EMAIL PROTECTED] Remove braces for only one statement Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_scsi.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff -urpN linux-2.6

[PATCH 7/10] zfcp: cleanup, separation of ERP, non ERP-version for exchange_ functions

2007-08-28 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] cleanup, using ERP request mempool for all ERP versions of the exchange functions (exchange_config (ECD), exchange_port (EPD) ) providing individual versions of the ECD, EPD functions for ERP and other purposes (_sync). Signed-off-by: Swen Schillig [EMAIL

[PATCH 9/10] zfcp: Disable LUN scanning from the FC transport class

2007-08-28 Thread Swen Schillig
From: Christof Schmitt [EMAIL PROTECTED] zfcp manages the valid SCSI units currently on its own. So we don't want the FC transport class to issue scans for units. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_scsi.c

Re: [PATCH 3/4] zfcp: Avoid race condition on link up event

2007-08-09 Thread Swen Schillig
On Wednesday 08 August 2007 10:47, Swen Schillig wrote: From: Christoph Schmitt [EMAIL PROTECTED] Symptom: zfcp receives a response to a status read request that is no longer valid in zfcp. This leads to a kernel panic, since some memory has been overwritten

[PATCH 1/4] zfcp: fix memory leak

2007-08-08 Thread Swen Schillig
From: Heiko Carstens [EMAIL PROTECTED] fix memory leak. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Martin Schwidefsky [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_scsi.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH 2/4] zfcp: allocate gid_pn_data objects from gid_pn_cache

2007-08-08 Thread Swen Schillig
-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_aux.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -urpN linux-2.6/drivers/s390/scsi/zfcp_aux.c linux-2.6-patched/drivers/s390/scsi/zfcp_aux.c --- linux-2.6/drivers/s390/scsi/zfcp_aux.c 2007-08-08 10:13

[PATCH 3/4] zfcp: Avoid race condition on link up event

2007-08-08 Thread Swen Schillig
-by: Martin Schwidefsky [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_fsf.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff -urpN linux-2.6/drivers/s390/scsi/zfcp_fsf.c linux-2.6-patched/drivers/s390/scsi/zfcp_fsf.c

[PATCH 4/4] zfcp: fix the data buffer accessor patch

2007-08-08 Thread Swen Schillig
From: Heiko Carstens [EMAIL PROTECTED] Fix the data buffer accessor patch. For request without a data buffer nothing was written into a SBALE. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_qdio.c | 10 +++--- 1

Re: [PATCH] zfcp: convert to use the data buffer accessors

2007-07-31 Thread Swen Schillig
Replying to the mailing-list as well. ACK On Sunday 29 July 2007 09:46, FUJITA Tomonori wrote: The patch is only compile tested. --- From: FUJITA Tomonori [EMAIL PROTECTED] Subject: [PATCH] zfcp: convert to use the data buffer accessors - remove the unnecessary map_single path. -

[PATCH 2/3] zfcp: NULL vs 0 usage

2007-07-18 Thread Swen Schillig
Subject: [PATCH] zfcp: NULL vs 0 usage From: Heiko Carstens [EMAIL PROTECTED] Get rid of two 'warning: Using plain integer as NULL pointer'. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_aux.c |9

[PATCH] zfcp: Report FCP LUN to SCSI midlayer

2007-06-19 Thread Swen Schillig
-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_aux.c | 22 -- drivers/scsi/scsi_scan.c |3 ++- include/scsi/scsi_device.h |1 + 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi

Re: [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack

2007-06-18 Thread Swen Schillig
On Monday 18 June 2007 10:47, Hannes Reinecke wrote: James Bottomley wrote: On Tue, 2007-05-29 at 15:29 +0200, Swen Schillig wrote: From: Christof Schmitt [EMAIL PROTECTED] zfcp reported units to the SCSI stack starting with number 0. LUN 0 reported to the SCSI stack is usually

[PATCH] zfcp: Replace kmalloc/memset with kzalloc

2007-06-14 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] Memory allocated with kmalloc is always initialzed to 0 with memset. Replace the two calls with kzalloc, that already does both steps. Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_erp.c |3 +-- 1 files changed, 1 insertion

missing patches

2007-06-14 Thread Swen Schillig
James on the 29th of may I posted 3 patches for the zfcp driver named [PATCH 2/3] zfcp: clear adapter status flags during adapter shutdown [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack unfortunately I can't find them in the tree so far, is there any reason for that ? Thanks

Re: [PATCH 1/3] zfcp: IO stall after path checker changes

2007-05-30 Thread Swen Schillig
On Tuesday 29 May 2007 17:54, James Bottomley wrote: On Tue, 2007-05-29 at 10:51 -0500, James Bottomley wrote: On Tue, 2007-05-29 at 15:55 +0200, Swen Schillig wrote: I just saw that I posted this patch on 9th already, but todays git pull from your tree didn't show the inclusion

[PATCH 1/3] zfcp: IO stall after path checker changes

2007-05-29 Thread Swen Schillig
. The host is set to block on 'offline'. Host online is only removing the blocked status and everything works as expected again. Signed-off-by: Michael Loehr [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_aux.c |1 + drivers/s390/scsi/zfcp_ccw.c

[PATCH 2/3] zfcp: clear adapter status flags during adapter shutdown

2007-05-29 Thread Swen Schillig
From: Volker Sameske [EMAIL PROTECTED] zfcp: clear adapter status flags during adapter shutdown In some cases we did not reset some adapter status flags properly. This patch clears these flags during FCP adapter shutdown. Signed-off-by: Volker Sameske [EMAIL PROTECTED] Signed-off-by: Swen

[PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack

2007-05-29 Thread Swen Schillig
not want the SCSI stack to scan for devices, since they are configured explicitly via sysfs. This patch changes the numbering to always start with LUN 1 and therefore prevent the SCSI stack sending REPORT LUN command. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL

Re: [PATCH 1/3] zfcp: IO stall after path checker changes

2007-05-29 Thread Swen Schillig
any other reason for this patch to not be included please let me know. Thanks Swen On Tuesday 29 May 2007 15:29, Swen Schillig wrote: From: Michael Loehr [EMAIL PROTECTED] Devices corresponding to a deleted unit are never freed. This has the effect that slave_destroy is never called

[PATCH 1/2] zfcp: avoid clutter in erp_dbf

2007-05-09 Thread Swen Schillig
PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_fsf.c | 40 +--- 1 file changed, 13 insertions(+), 27 deletions(-) --- linux_jb_patched.orig/drivers/s390/scsi/zfcp_fsf.c 2007-05-08 14:47:17.0 +0200

[PATCH 2/2] zfcp: IO stall after deleting and path checker changes after reenabling zfcp devices

2007-05-09 Thread Swen Schillig
is not called correctly and the unit is not enabled properly. Do not delete rport and the sdev. Just set the host to block on 'offline'. Setting host online again will then remove the blocked status and everything is fine again. Signed-off-by: Michael Loehr [EMAIL PROTECTED] Signed-off-by: Swen

[PATCH 0/5] zfcp: print S_ID and D_ID with 3 bytes

2007-05-08 Thread Swen Schillig
From: Christof Schmitt [EMAIL PROTECTED] S_ID and D_ID are defined in the FCP spec as 3 byte fields. Change the output in zfcp print statements accordingly to print them with only 3 bytes. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED

[PATCH 1/5] zfcp: Locking for req_no and req_seq_no

2007-05-08 Thread Swen Schillig
zfcp_fsf_req_sbal_get that acquires the lock, then read and increment the unique ids. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_fsf.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) --- linux-2.6.orig

[PATCH 2/5] zfcp: Fix deadlock between zfcp ERP and SCSI

2007-05-08 Thread Swen Schillig
call is pending. 3) Replace scsi_flush_work with scsi_target_unblock. This avoids blocking and has the same result. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_aux.c |2 + drivers/s390/scsi/zfcp_def.h

[PATCH 4/5] zfcp: clear adapter failed flag if an fsf request times out.

2007-05-08 Thread Swen Schillig
that is issued on fsf request timeout has no effect if the local link is down. Might lead to locked up system if the SCSI stack is waiting for abort completion. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_erp.c |2 +- 1

[PATCH 5/5] zfcp: clear boxed flag on unit reopen.

2007-05-08 Thread Swen Schillig
From: Heiko Carstens [EMAIL PROTECTED] The boxed flag for units was never cleared. This doesn't hurt, but on ACL updates the error recovery could reopen more units than needed. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi

[PATCH] zfcp: Stop system after memory corruption

2007-05-07 Thread Swen Schillig
the system with a panic. Signed-off-by: Christof Schmitt [EMAIL PROTECTED] Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390/scsi/zfcp_qdio.c | 32 +--- 1 files changed, 5 insertions(+), 27 deletions(-) diff -urpN linux-2.6/drivers/s390/scsi/zfcp_qdio.c

[PATCH] zfcp: use of uninitialized variable

2007-02-09 Thread Swen Schillig
commit 988d955c3314336d716a9208f3d565b06f262e07 Author: Swen Schillig [EMAIL PROTECTED] Date: Fri Feb 9 09:40:11 2007 +0100 Use of uninitialized variable. ERP action might not be finished accordingly. Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- diff --git a/drivers/s390/scsi

[PATCH] zfcp: removed wrong comment

2007-02-09 Thread Swen Schillig
commit 07a105136f07f0cf1b476383e43033b8a65e13ff Author: Swen Schillig [EMAIL PROTECTED] Date: Fri Feb 9 09:58:09 2007 +0100 removed wrong comment Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c index cbe47a2

[PATCH] zfcp: Invalid locking order

2007-02-07 Thread Swen Schillig
From: Swen Schillig [EMAIL PROTECTED] Invalid locking order. Kernel hangs after trying to take two locks which are dependend on each other. Introducing temporary variable to free requests. Free lock after requests are copied. Signed-off-by: Swen Schillig [EMAIL PROTECTED] --- drivers/s390

Re: [PATCH] zfcp: Invalid locking order

2007-02-07 Thread Swen Schillig
Hi Andreas No, not those. We got a possible recursive locking on the adapter-request_queue.queue_lock Cheers Swen On Wednesday 07 February 2007 17:06, Andreas Herrmann wrote: On Wed, Feb 07, 2007 at 01:17:57PM +0100, Swen Schillig wrote: From: Swen Schillig [EMAIL PROTECTED] Invalid