linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fuse-io-uring: We need to keep the tag/index
@ 2024-10-02 21:54 Bernd Schubert
  2024-10-03  9:50 ` Miklos Szeredi
  0 siblings, 1 reply; 10+ messages in thread
From: Bernd Schubert @ 2024-10-02 21:54 UTC (permalink / raw)
  To: linux-fsdevel@vger.kernel.org, Miklos Szeredi; +Cc: Joanne Koong, Josef Bacik

Hi Miklos,

in the discussion we had you asked to avoid an entry tag/index,
in the mean time I don't think we can. 
In fuse_uring_cmd(), i.e. the function that gets 
'struct io_uring_cmd *cmd' we need identify the corresponding fuse
data structure ('struct fuse_ring_ent'). Basically same as in
as in do_write(), which calls request_find() and does a list search.
With a large queue size that would be an issue (and even for smaller
queue sizes not beautiful, imho).

I'm now rewriting code to create an index in
FUSE_URING_REQ_FETCH and return that later on with the request
to userspace. That needs to do realloc the array as we do know the
exact queue size anymore.


Please let me know if you should have another suggestion.


Thanks,
Bernd


PS: In code review Joanne didn't like 'tag' too much (I took that 
over from ublk). I personally find index/idx too generic - any naming
suggestion is appreciated :)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-10-03 14:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02 21:54 fuse-io-uring: We need to keep the tag/index Bernd Schubert
2024-10-03  9:50 ` Miklos Szeredi
2024-10-03 10:10   ` Bernd Schubert
2024-10-03 12:02     ` Miklos Szeredi
2024-10-03 13:19       ` Bernd Schubert
2024-10-03 13:56         ` Bernd Schubert
2024-10-03 14:02           ` Miklos Szeredi
2024-10-03 14:04             ` Miklos Szeredi
2024-10-03 14:09               ` Bernd Schubert
2024-10-03 14:26                 ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).