All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] libceph: handle notarget requests.
@ 2013-07-16  7:45 majianpeng
  0 siblings, 0 replies; only message in thread
From: majianpeng @ 2013-07-16  7:45 UTC (permalink / raw)
  To: sage; +Cc: ceph-devel

In func ceph_osdc_start_request,there are two types:
A:nofail which mean if met error, the request will retry to do.
B:fail which mean if met error, the caller handle the error,like realse those relative pages.

But now, the code don't distinguish between them.
For caller which can met error, it must call __unregister_request if met error.It don't make any sense to retry to do because the caller
alreay handle failed routine like release papges.
For requests which in req_notarget,they only remap in func ceph_osdc_handle_map which update the epoch of osdmap.
But for reaseon which cause __map_request failed like ENOMEM,it won't update the epoch of osdmap,so notarget-requests won't remap for ever.



Jianpeng Ma (2):
  libceph: For nofail == false, if __map_request failed,it should unregister.
  libceph: Remap notarget requests in handle_timeout.

 net/ceph/osd_client.c | 39 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-16  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16  7:45 [PATCH 0/2] libceph: handle notarget requests majianpeng

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.