All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] Needed: insight on obd_set_info_async()
@ 2009-10-02 22:06 Nicolas Williams
  2009-10-04  7:34 ` Andreas Dilger
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Williams @ 2009-10-02 22:06 UTC (permalink / raw)
  To: lustre-devel

I'm trying to find out which uses of obd_set_info_async() involve values
that come from a PTLRPC message buffer, and which ones don't.  It would
help to know what obd_set_info_async() is for...  It seems it's a
glorified ioctl()...

I'm tempted to augment it to always take a struct ptlrpc_request *req
argument, so that req == NULL || val == NULL, and when req != NULL the
value will be obtained using req_capsule_*_get().  Between that and
enhancements to req_capsule_extend() and what not we might be able to
ensure that 'val' is always swabbed by capsule code.

But if the uses of obd_set_info_async() are very clearly distinguishable
it might be better to introduce a variant that takes a struct
ptlrpc_request *req _instead_ of val/vallen.

Comments?

Nico
-- 

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

end of thread, other threads:[~2009-10-05 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02 22:06 [Lustre-devel] Needed: insight on obd_set_info_async() Nicolas Williams
2009-10-04  7:34 ` Andreas Dilger
2009-10-04 17:11   ` Nicolas Williams
2009-10-05 17:15     ` Andreas Dilger
2009-10-05 19:00       ` Nicolas Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.