Whamcloud - gitweb
LU-5794 osd: additional checks to verify credits calculation 69/12169/46
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Thu, 2 Oct 2014 10:10:44 +0000 (14:10 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 10 Jul 2015 03:05:20 +0000 (03:05 +0000)
commit92d28a7f35bcdc718e2bdcec48bcdeacd0e8f4fe
tree8268216842514557ee5d6bc5e6880458e7393b78
parente7ab554c1ca887e1a3fa9da5250b2debb4eee2d6
LU-5794 osd: additional checks to verify credits calculation

every operation counts credits consumed, so we can check when
credits are exceeded. now the number of declarations doesn't
matter for the checks, it's only credits. i.e. it's OK to
declare a single write for a specific range and then make many
writes to that range within a single transaction.

the patch fixes few issues on osd-zfs making it impossible to
declare change to an object being created in a same transaction.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I714ccae7ce957e639938df3bed0c4e8fb49d3454
Reviewed-on: http://review.whamcloud.com/12169
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/local_storage.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_index.c