From: stuart hayes <stuart.w.hayes@gmail.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] scsi: target: Allow FUA if no write cache enabled
Date: Mon, 1 Jun 2026 10:11:55 -0500 [thread overview]
Message-ID: <0a34e748-15ea-4bca-92a1-e42af023f111@gmail.com> (raw)
In-Reply-To: <yq1340cfogx.fsf@ca-mkp.ca.oracle.com>
On 4/30/2026 10:43 AM, Martin K. Petersen wrote:
>
> Stuart,
>
>> Without this patch, accesses with FUA set will be rejected, even
>> though they always go directly to the media when there's no write
>> cache.
>
> The spec allows this. However, ...
>
>> This is needed because EDK2 FAT filesystem code sets the FUA bit when
>> writing, regardless of whether the device advertises support of
>> DPOFUA.
>
> ^^^ that is clearly a spec violation. What is being done to address this
> issue?
>
I've gone through SBC and SPC, and I can't find anything that would
suggest that this is a spec violation.
And, not that what I think makes any difference, but I don't see the
point in requiring an initiator to check DPOFUA before setting FUA on a
write that needs to go straight to media... why not just set FUA
whenever needed, and if the FUA bit wasn't strictly required to ensure
that the write went straight to media, who cares, if the requested
behavior is still provided?
> Also, wrt. the patch itself, please see:
>
> https://sashiko.dev/#/patchset/20260428203938.9738-1-stuart.w.hayes%40gmail.com
>
The AI review suggests moving this fix to sbc_check_dpofua(), so that
DPOFUA behavior in the mode page is unchanged, and it just silently
allows writes with FUA set even if DPOFUA isn't set.
If there's no objection, I'll submit a new patch that does that. The
reason I didn't do that the first time around is that it breaks some of
the blktests that specifically check to make sure a command fails if FUA
is set when DPOFUA isn't.
next prev parent reply other threads:[~2026-06-01 15:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 20:39 [PATCH v2] scsi: target: Allow FUA if no write cache enabled Stuart Hayes
2026-04-30 15:43 ` Martin K. Petersen
2026-06-01 15:11 ` stuart hayes [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-06-09 20:21 Stuart Hayes
2026-06-09 20:39 ` sashiko-bot
2026-06-10 20:43 ` stuart hayes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a34e748-15ea-4bca-92a1-e42af023f111@gmail.com \
--to=stuart.w.hayes@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=target-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox