public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/3] Ugliness in struct pnfs_layout_segment and possible uselessness of the device cache
@ 2010-09-12 17:01 Boaz Harrosh
  2010-09-12 17:03 ` [RFC 1/3] SQUASHME: Generalize the device cache so it can be used by all layouts Boaz Harrosh
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Boaz Harrosh @ 2010-09-12 17:01 UTC (permalink / raw)
  To: NFS list, Benny Halevy, Andy Adamson, Fred Isaman

Struct pnfs_layout_segment is the generic part of the pnfs-getlayout (segment) operation
and should not hold any layout specific part.

So what is the 	struct nfs4_deviceid *deviceid; member doing there. This is a files
only useful member that has no meaning in objects and blocks. (The later have multiple
devices per layout)

I've hacked up a possible fix. Please review. These will need more work done:
- Actual testing. They are compiled only.
- Adjusted to multiple pending changes from the changes to the layout segment allocation
  to all these latest Fred changes.
- I wish the relevant parts get into the first batch of submission in the final form
  presented here, instead of changing later. Note the cleanup it gives to the files
  layout driver. Which can even be driven deeper. So they'll need to be integrated
  down deeper. (And code rebased above it)
- So I've actually attempted using the generic cache in the objects driver. And it
  should be usable once all the code changes settle down, and I fix that FIXME: which
  is there now (See [RFC 3/3])

Andy? (Fred)? would you want to take the generic and file-layout parts out of my hands
and see them through. For one they need testing which I don't have readily available.
That is if you like them and they make any sense.

[RFC 1/3] SQUASHME: Generalize the device cache so it can be used by all layouts
[RFC 2/3] SQUASHME: fileslayout: Adjust to device_cache API changes
[RFC 3/3] SQUASHME: pnfs-obj: Use the generic device cache

Thanks
Boaz

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

end of thread, other threads:[~2010-09-13 12:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-12 17:01 [RFC 0/3] Ugliness in struct pnfs_layout_segment and possible uselessness of the device cache Boaz Harrosh
2010-09-12 17:03 ` [RFC 1/3] SQUASHME: Generalize the device cache so it can be used by all layouts Boaz Harrosh
2010-09-12 19:42   ` Trond Myklebust
2010-09-13  9:50     ` Boaz Harrosh
2010-09-13 12:16       ` Fred Isaman
2010-09-13 12:45         ` Boaz Harrosh
2010-09-12 17:05 ` [RFC 2/3] SQUASHME: fileslayout: Adjust to device_cache API changes Boaz Harrosh
2010-09-12 17:06 ` [RFC 3/3] SQUASHME: pnfs-obj: Use the generic device cache Boaz Harrosh
2010-09-12 17:31   ` Boaz Harrosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox