From mboxrd@z Thu Jan 1 00:00:00 1970 From: Akinobu Mita Subject: [PATCH v2 0/7] scsi_debug: several bug fixes and enable clustering support Date: Sun, 19 Jan 2014 22:51:36 +0900 Message-ID: <1390139503-11519-1-git-send-email-akinobu.mita@gmail.com> Return-path: Received: from mail-pd0-f170.google.com ([209.85.192.170]:40192 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbaASNvy (ORCPT ); Sun, 19 Jan 2014 08:51:54 -0500 Received: by mail-pd0-f170.google.com with SMTP id p10so1569104pdj.1 for ; Sun, 19 Jan 2014 05:51:54 -0800 (PST) Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org Cc: Akinobu Mita , "James E.J. Bottomley" , Douglas Gilbert , "Martin K. Petersen" This patch set includes several bug fixes and patches for enabling clustering support for scsi_debug. The reason why I would like to enable clustering is to test commands with huge transfer length. Without enabling clustering support, the transfer length for read and write scsi commands is limited upto 8MB when page size is 4KB and sg_tablesize is 2048 (= SCSI_MAX_SG_CHAIN_SEGMENTS). Changes from v1: - remove unnecessary irqsave/irqrestore while iterating sg mapping - protect device access with atomic_rw lock - make clustering module parameter writable Akinobu Mita (7): scsi_debug: fix false positive logical block reference tag check fail scsi_debug: make pseudo_primary static scsi_debug: fix duplicate dif_errors increment scsi_debug: fix resp_xdwriteread() return value when running out of memory scsi_debug: prepare to enable clustering scsi_debug: protect device access with atomic_rw lock scsi_debug: add ability to enable clustering drivers/scsi/scsi_debug.c | 141 +++++++++++++++++++++++++++------------------- 1 file changed, 82 insertions(+), 59 deletions(-) Cc: "James E.J. Bottomley" Cc: Douglas Gilbert Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org -- 1.8.3.2