Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754098Ab3JXHsy (ORCPT ); Thu, 24 Oct 2013 03:48:54 -0400 Received: from mail-oa0-f45.google.com ([209.85.219.45]:37759 "EHLO mail-oa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753308Ab3JXHsu (ORCPT ); Thu, 24 Oct 2013 03:48:50 -0400 From: "Nicholas A. Bellinger" To: target-devel Cc: linux-scsi , linux-kernel , Thomas Glanzmann , Douglas Gilbert , Nicholas Bellinger Subject: [PATCH 0/3] target: Miscellaneous XCOPY bugfixes for v3.12-rc7 code Date: Thu, 24 Oct 2013 07:30:56 +0000 Message-Id: <1382599859-13204-1-git-send-email-nab@daterainc.com> X-Mailer: git-send-email 1.7.2.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1657 Lines: 42 From: Nicholas Bellinger Hi folks, The following series is a handful XCOPY related fixes for v3.12-rc7 code based upon a recent bug-report from Thomas + Doug wrt to XCOPY local I/O operations across source + destination devices with non-matching block_sizes. The first patch adds the missing XCOPY I/O operation sense_buffer setup that was triggering the original OOPs. The second patch addresses the case where a non-zero scsi_status was incorrectly returning GOOD status for locally generated XCOPY I/O exceptions. The final patch adds an explicit check + failure for XCOPY operations across source + destination devices with non-matching block_sizes. Note this limitiation is currently due to the fact that the scatterlist memory allocated for the XCOPY READ operation is passed zero-copy for use by the subsequent XCOPY WRITE operation. For v3.12 code it makes sense to go ahead and explicitly prevent this from occurring, and the plan is to add a slow-path memcpy to address this special case in post v3.12 code. Thanks! --nab Nicholas Bellinger (3): target: Add missing XCOPY I/O operation sense_buffer target: Generate failure for XCOPY I/O with non-zero scsi_status target: Fail XCOPY for non matching source + destination block_size drivers/target/target_core_xcopy.c | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/