Thread (31 messages) 31 messages, 5 authors, 2021-06-24

Re: [PATCH v3 1/6] block: add disk sequence number

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-06-23 14:29:29
Also in: linux-fsdevel, lkml

On Wed, Jun 23, 2021 at 03:10:21PM +0200, Matteo Croce wrote:
I just didn't want to clobber that file namespace, as that is the only
point where it's used.
It doesn't really clobber the file namespace.  Declaring it normally
at the top of the file makes it very clear we have global state.
Hiding it in a function just causes obsfucation.
quoted
Can you explain a little more why we need a global sequence count vs
a per-disk one here?
The point of the whole series is to have an unique sequence number for
all the disks.
Events can arrive to the userspace delayed or out-of-order, so this
helps to correlate events to the disk.
It might seem strange, but there isn't a way to do this yet, so I come
up with a global, monotonically incrementing number.
Maybe add a comment to explain that?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help