Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/iscsi use correct comparison of serial numbers



details:   https://anonhg.NetBSD.org/src/rev/df631970ff21
branches:  trunk
changeset: 815862:df631970ff21
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 05 15:04:31 2016 +0000

description:
use correct comparison of serial numbers

diffstat:

 sys/dev/iscsi/iscsi_ioctl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 917d17006223 -r df631970ff21 sys/dev/iscsi/iscsi_ioctl.c
--- a/sys/dev/iscsi/iscsi_ioctl.c       Sun Jun 05 14:13:57 2016 +0000
+++ b/sys/dev/iscsi/iscsi_ioctl.c       Sun Jun 05 15:04:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsi_ioctl.c,v 1.20 2016/06/05 13:45:56 mlelstv Exp $ */
+/*     $NetBSD: iscsi_ioctl.c,v 1.21 2016/06/05 15:04:31 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -875,7 +875,7 @@
                /* if we get an error on reassign, restart the original request */
                if (rc && ccb->pdu_waiting != NULL) {
                        mutex_enter(&session->lock);
-                       if (ccb->CmdSN < session->ExpCmdSN) {
+                       if (sn_a_lt_b(ccb->CmdSN, session->ExpCmdSN)) {
                                pdu = ccb->pdu_waiting;
                                sn = get_sernum(session, !(pdu->pdu.Opcode & OP_IMMEDIATE));
 



Home | Main Index | Thread Index | Old Index