All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] rbd: consolidate request operation creation
@ 2012-11-20 19:52 Alex Elder
  2012-11-20 19:54 ` [PATCH 1/6] rbd: don't assign extent info in rbd_do_request() Alex Elder
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alex Elder @ 2012-11-20 19:52 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

I'm working on getting data structures for every rbd image request
initialized in one place, and similarly getting all osd object
requests for rbd images initialized at once at well. This series
addresses an issue I bumped into while trying to do this, and
then goes a little further to implement the centralized op
initialization.

For read or write osd operations, their offset and length fields
as well as the operation's payload length field are assigned
fairly late, as the osd request is getting built up in
rbd_do_request().  This is sort of strange; all of the other
request types get all their fields assigned right after
their osd op structure gets created.

This series moves those late assignments for read and write
ops earlier, ultimately into the existing "create op" function.
It then creates a new function that fully initializes the
op with provided arguments for all op types.

We end up with a single function that fully initializes
osd ops of any type, as desired.

					-Alex

[PATCH 1/6] rbd: don't assign extent info in rbd_do_request()
[PATCH 2/6] rbd: don't assign extent info in rbd_req_sync_op()
[PATCH 3/6] rbd: initialize off and len in rbd_create_rw_op()
[PATCH 4/6] rbd: define generalized osd request op routines
[PATCH 5/6] rbd: move call osd op setup into rbd_osd_req_op_create()
[PATCH 6/6] rbd: move remaining osd op setup into rbd_osd_req_op_create()

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

end of thread, other threads:[~2012-11-20 20:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 19:52 [PATCH 0/6] rbd: consolidate request operation creation Alex Elder
2012-11-20 19:54 ` [PATCH 1/6] rbd: don't assign extent info in rbd_do_request() Alex Elder
2012-11-20 19:56 ` [PATCH 2/6] rbd: don't assign extent info in rbd_req_sync_op() Alex Elder
2012-11-20 19:57 ` [PATCH 3/6] rbd: initialize off and len in rbd_create_rw_op() Alex Elder
2012-11-20 19:58 ` [PATCH 4/6] rbd: define generalized osd request op routines Alex Elder
2012-11-20 19:58 ` [PATCH 5/6] rbd: move call osd op setup into rbd_osd_req_op_create() Alex Elder
2012-11-20 19:59 ` [PATCH 6/6] rbd: move remaining " Alex Elder

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.