From patchwork Wed Jun 16 13:42:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nicholas A. Bellinger" X-Patchwork-Id: 106489 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5GDgsUV013770 for ; Wed, 16 Jun 2010 13:42:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758769Ab0FPNmo (ORCPT ); Wed, 16 Jun 2010 09:42:44 -0400 Received: from smtp104.sbc.mail.gq1.yahoo.com ([67.195.15.63]:41212 "HELO smtp104.sbc.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758725Ab0FPNmm (ORCPT ); Wed, 16 Jun 2010 09:42:42 -0400 Received: (qmail 86093 invoked from network); 16 Jun 2010 13:42:42 -0000 Received: from adsl-70-231-239-201.dsl.snfc21.sbcglobal.net (nab@70.231.239.201 with login) by smtp104.sbc.mail.gq1.yahoo.com with SMTP; 16 Jun 2010 06:42:41 -0700 PDT X-Yahoo-SMTP: fzDSGlOswBCWnIOrNw7KwwK1j9PqyNbe5PtLKiS4dDU.UNl_t6bdEZu9tTLW X-YMail-OSG: oesFVq8VM1ljL9eUCn0STjEBwTGzxZ6xjRLmsbJsvP_F1.d1.02EBV4otvQjaiskLz3LKg3w4JARKBdOBS.QI54_JUqNOeiDH.giPpXfidwfC3ZxEAsGW0HFPwtqprLZQnrMTF2sI3bqTTxVU31MHKpUvqo_PRIF4QqUeajIxOUtgKcbMMxt4bGUYUNBDYH05vGvfr7RoS2Cx_rt6eXZ_UML0u9zK41X7HK5LHI4ImYQmJfoV.fkwy3vWF8LMNjFJlqsLIGmVmfJcNwgeVJ1PqERRlcucxIOrcrLMJkxTqalM3f.arAz5PfIHyZ5LaDQYHA2aTzzR5qDqNXurDwP3OOtFkvVLMUlFPdrL2BBqFUHyQ-- X-Yahoo-Newman-Property: ymail-3 From: "Nicholas A. Bellinger" To: Kevin Wolf Cc: Gerd Hoffmann , Hannes Reinecke , Paul Brook , Christoph Hellwig , FUJITA Tomonori , kvm-devel , qemu-devel , Nicholas Bellinger Subject: [PATCH 1/2] [scsi-bus]: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup Date: Wed, 16 Jun 2010 06:42:58 -0700 Message-Id: <1276695778-16607-1-git-send-email-nab@linux-iscsi.org> X-Mailer: git-send-email 1.5.6.5 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 16 Jun 2010 13:42:58 +0000 (UTC) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index b8e4b71..7a5fa48 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -389,6 +389,7 @@ static void scsi_req_xfer_mode(SCSIRequest *req) case MEDIUM_SCAN: case SEND_VOLUME_TAG: case WRITE_LONG_2: + case PERSISTENT_RESERVE_OUT: req->cmd.mode = SCSI_XFER_TO_DEV; break; default: