]> granicus.if.org Git - zfs/commit
Fixes subtle bug in zio_handle_io_delay()
authorMarcel Huber <marcelhuberfoo@gmail.com>
Wed, 11 May 2016 19:23:42 +0000 (21:23 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 17 May 2016 18:03:11 +0000 (11:03 -0700)
commit2587cd8f93ec2ec774e49aafbf536b918f77cff2
tree1058870475566adc1c02ab3fdd9a773cd663a150
parentebecfcd6991bebe71511cb8fd409112798f203b2
Fixes subtle bug in zio_handle_io_delay()

Fixed bug introduced in commit #c35b1882.  Hinted by gcc:

zio_inject.c: In function ‘zio_handle_io_delay’:
zio_inject.c:382:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if (handler->zi_record.zi_freq != 0 &&
      ^~
      zio_inject.c:384:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
          continue;
      ^~~~~~~~

Signed-off-by: Marcel Huber <marcelhuberfoo@gmail.com>
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4632
module/zfs/zio_inject.c