Re: [PATCH] write barriers for 2.4.x

Chris Mason
2002-02-14T16:02:13Z

On Thursday, February 14, 2002 03:31:08 PM +0100 Matthias Andree <ma@dt.e-technik.uni-dortmund.de> wrote:

[ barrier support for sym53c8xx_2?]

I can only promise this compiles against 2.4.18-pre9, and looks right
to me. l-k and Jens brought into cc in hopes of a little verification.

-chris

--- a/drivers/scsi/sym53c8xx_2/sym_glue.c Thu, 13 Dec 2001 11:06:51 -0500
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.c Thu, 14 Feb 2002 10:43:01 -0500
@@ -729,7 +729,14 @@
* Select tagged/untagged.
*/
lp = sym_lp(np, tp, ccb->lun);
- order = (lp && lp->s.reqtags) ? M_SIMPLE_TAG : 0;
+ if (lp && lp->s.reqtags) {
+ if (ccb->request.cmd_flags & RQ_WRITE_ORDERED)
+ order = M_ORDERED_TAG;
+ else
+ order = M_SIMPLE_TAG;
+ } else {
+ order = 0 ;
+ }

/*
* Queue the SCSI IO.