2017-03-31 22:16 GMT+02:00 Thor Lancelot Simon <t...@panix.com>: > It's not obvious, but in fact ORDERED gets set for writes > as a default, I believe -- in sd.c, I think? > > This confused me for some time when I last looked at it.
It confused me also, that's why I changed the code a while back to be less confusing :) It used to be easy to draw conclusion that we use ORDERED all the time, as that was default if tag flag was unset. But in fact sd(4) and cd(4) always set XS_CTL_SIMPLE_TAG explicitely, so it was actually always SIMPLE. scsipi_base.c revision 1.166 date: 2016-10-02 21:40:35 +0200; author: jdolecek; state: Exp; lines: +4 -4; commitid: iiAGFJk9looTyBoz; 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 Jaromir