linux_dsm_epyc7002/fs/nfs/objlayout
Boaz Harrosh b6c05f1693 pnfs-obj: objio_osd device information retrieval and caching
When a new layout is received in objio_alloc_lseg all device_ids
referenced are retrieved. The device information is queried for from MDS
and then the osd_device is looked-up from the osd-initiator library. The
devices are cached in a per-mount-point list, for later use. At unmount
all devices are "put" back to the library.

objlayout_get_deviceinfo(), objlayout_put_deviceinfo() middleware
API for retrieving device information given a device_id.

TODO: The device cache can get big. Cap its size. Keep an LRU and start
      to return devices which were not used, when list gets to big, or
      when new entries allocation fail.

[pnfs-obj: Bugs in new global-device-cache code]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
[gfp_flags]
[use global device cache]
[use layout driver in global device cache]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
2011-05-29 20:53:33 +03:00
..
Kbuild pnfs-obj: decode layout, alloc/free lseg 2011-05-29 20:53:06 +03:00
objio_osd.c pnfs-obj: objio_osd device information retrieval and caching 2011-05-29 20:53:33 +03:00
objlayout.c pnfs-obj: objio_osd device information retrieval and caching 2011-05-29 20:53:33 +03:00
objlayout.h pnfs-obj: objio_osd device information retrieval and caching 2011-05-29 20:53:33 +03:00
pnfs_osd_xdr_cli.c pnfs-obj: pnfs_osd XDR client implementation 2011-05-29 20:52:36 +03:00