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/e2c0161a16fc
branches: trunk
changeset: 345720:e2c0161a16fc
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 4ea6199fe605 -r e2c0161a16fc 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