Whamcloud - gitweb
LU-3536 osd: allocate it for each iteration. 23/13223/8
authorwang di <di.wang@intel.com>
Mon, 22 Dec 2014 23:08:41 +0000 (15:08 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 28 Jan 2015 17:48:38 +0000 (17:48 +0000)
commit62a579a7795f2570cc6c8f4480303a71bfe9989f
treef9f4a1540bad1752eb538b083cb73746857232d8
parent88c8560727253eb04811cad643a3dcca5a553788
LU-3536 osd: allocate it for each iteration.

Add osd iteration structure(osd_it_ea) to specific SLAB,
and allocate new osd_it_ea for each iteration, so iteration
can be nested, which will help DNE and LFSCK.

Since iteration for iam and quota are not so often,
we just allocate them with normal OBD_ALLOC_PTR.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I6402259708264f9341f314e7a2f6afe16cc66481
Reviewed-on: http://review.whamcloud.com/13223
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_quota.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_handler.c
lustre/osd-zfs/osd_index.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_quota.c