Re: [PATCH v2] scsi: bsg: read io_uring command fields once

"Martin K. Petersen" <[email protected]> Sun, 12 Jul 2026 17:33:14 -0400
Newsgroups org.kernel.vger.io-uring,org.kernel.vger.linux-block,org.kernel.vger.linux-scsi
Message-ID <[email protected]>
Jens,

> It'll fix the issue, but it also just applies READ_ONCE() everywhere.
> Which is fine, but most of them don't really matter. For example, yes
> you could race on the timeout if the application is being stupid or
> silly, but it doesn't matter one bit. Similarly with a bunch of others.
>
> I'll leave that up to the SCSI folks to decide how they want to do it.

I'd prefer to limit READ_ONCE() to the places where it is necessary.

-- 
Martin K. Petersen