change scsipi_execute_xs() to default to simple tags for !XS_CTL_URGENT
if not specified by caller; this is mostly for documentation purposes only, as sd(4) and cd(4) explicitly use simple tags already
This commit is contained in:
parent
da90486716
commit
c7b1f4eb42
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scsipi_base.c,v 1.165 2015/08/24 23:13:15 pooka Exp $ */
|
||||
/* $NetBSD: scsipi_base.c,v 1.166 2016/10/02 19:40:35 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.165 2015/08/24 23:13:15 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.166 2016/10/02 19:40:35 jdolecek Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_scsi.h"
|
||||
@ -1923,14 +1923,14 @@ scsipi_execute_xs(struct scsipi_xfer *xs)
|
||||
} else {
|
||||
/*
|
||||
* If the request doesn't specify a tag, give Head
|
||||
* tags to URGENT operations and Ordered tags to
|
||||
* tags to URGENT operations and Simple tags to
|
||||
* everything else.
|
||||
*/
|
||||
if (XS_CTL_TAGTYPE(xs) == 0) {
|
||||
if (xs->xs_control & XS_CTL_URGENT)
|
||||
xs->xs_control |= XS_CTL_HEAD_TAG;
|
||||
else
|
||||
xs->xs_control |= XS_CTL_ORDERED_TAG;
|
||||
xs->xs_control |= XS_CTL_SIMPLE_TAG;
|
||||
}
|
||||
|
||||
switch (XS_CTL_TAGTYPE(xs)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user