eb1ddcb664
At the start of time all of values of io_unit_index[] array in the chunk maps are FF's. When a partial chunk is written, only some of the io_unit_index[] vals will be assigned values from the allocated_backing_io_units bit array. When that chunk is written again, it is not done so in place and at that time in when _write_write_done() is called, the io_unit_index[] values are set to FF again and the bit array bits are cleared for the old chunk so that it is fresh again for use by another write. This change removes code from an early stage of the write process where a 'fresh' chuck in allocated. Because of points made earlier, it is not possible for any of the io_unit_index[] values to be assigned or have a corresponding bit set in the bit array. The prev version of this patch cleared the bit array because the io_unit_index[] array was being cleared however after further investigation, and for the reasons stated earlier, the io_unit_index[] did not have a valid value so clearing the bit array was simply wrong. Removing this dead code clears things up and leaves it to one place to clear the io_unit_index[], when a chunk is overwritten. Well, 2 places including init time. Change-Id: I5c4e5360c9c13817d2fa7d3c7d004b44537af7f4 Signed-off-by: paul luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458520 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
reduce.c |