LOLi
f763c3d1df
Fix range locking in ZIL commit codepath
...
Since OpenZFS 7578 (1b7c1e5 ) if we have a ZVOL with logbias=throughput
we will force WR_INDIRECT itxs in zvol_log_write() setting itx->itx_lr
offset and length to the offset and length of the BIO from
zvol_write()->zvol_log_write(): these offset and length are later used
to take a range lock in zillog->zl_get_data function: zvol_get_data().
Now suppose we have a ZVOL with blocksize=8K and push 4K writes to
offset 0: we will only be range-locking 0-4096. This means the
ASSERTion we make in dbuf_unoverride() is no longer valid because now
dmu_sync() is called from zilog's get_data functions holding a partial
lock on the dbuf.
Fix this by taking a range lock on the whole block in zvol_get_data().
Reviewed-by: Chunwei Chen <tuxoko@gmail.com >
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov >
Signed-off-by: loli10K <ezomori.nozomu@gmail.com >
Closes #6238
Closes #6315
Closes #6356
Closes #6477
2017-08-21 08:59:48 -07:00
..
2017-05-02 10:06:18 -07:00
2017-08-14 10:36:48 -07:00
2017-08-02 21:16:12 -07:00
2015-01-16 14:41:26 -08:00
2017-05-26 11:42:10 -07:00
2017-08-14 10:36:48 -07:00
2017-06-26 14:36:49 -07:00
2017-08-02 21:16:12 -07:00
2017-08-14 10:36:48 -07:00
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2016-09-13 09:58:33 -07:00
2017-08-08 08:38:53 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-08 08:38:53 -07:00
2016-12-12 10:46:26 -08:00
2017-08-21 08:59:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-06-30 11:11:01 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-07-08 20:35:35 -07:00
2016-08-31 14:35:34 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2015-05-04 09:41:10 -07:00
2017-07-08 20:35:35 -07:00
2016-11-29 14:34:27 -08:00
2017-08-02 21:16:12 -07:00
2017-03-22 17:58:47 -07:00
2017-05-19 13:45:46 -07:00
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2017-04-09 16:12:35 -07:00
2017-08-11 08:51:44 -07:00
2017-03-20 18:36:00 -07:00
2016-04-21 09:49:25 -07:00
2017-01-22 13:25:40 -08:00
2017-04-25 17:41:58 -07:00
2017-03-22 17:58:47 -07:00
2016-08-31 14:35:34 -07:00
2017-02-28 16:10:18 -08:00
2017-01-03 11:31:18 -06:00
2017-04-14 11:11:28 -07:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-11 08:56:24 -07:00
2017-08-14 10:36:48 -07:00
2017-04-09 16:12:35 -07:00
2017-01-12 09:42:11 -08:00
2016-05-26 10:11:51 -07:00
2017-08-11 08:51:44 -07:00
2017-07-13 13:54:00 -04:00
2016-08-31 14:35:34 -07:00
2017-03-28 11:06:22 -07:00
2017-08-02 21:16:12 -07:00
2017-05-12 17:28:03 -07:00
2017-08-02 21:16:12 -07:00
2017-05-12 17:28:03 -07:00
2017-05-12 17:28:03 -07:00
2017-06-27 10:09:16 -07:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-12-15 17:31:33 -08:00
2016-12-12 10:46:26 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2017-01-22 13:25:40 -08:00
2017-08-14 10:36:48 -07:00
2017-05-12 17:28:03 -07:00
2017-08-14 10:36:48 -07:00
2017-08-02 21:16:12 -07:00
2017-08-08 08:38:53 -07:00
2017-08-02 21:16:12 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2017-08-02 21:16:12 -07:00
2017-07-25 23:09:48 -07:00
2017-03-10 09:51:33 -08:00
2017-08-14 10:36:48 -07:00
2017-03-10 09:51:33 -08:00
2017-08-14 10:36:48 -07:00
2017-06-09 09:15:37 -07:00
2015-06-22 17:02:13 -07:00
2017-08-09 15:31:08 -07:00
2017-03-10 09:51:33 -08:00
2017-01-03 11:31:18 -06:00
2017-08-11 08:51:44 -07:00
2017-08-17 14:28:17 -07:00
2017-08-21 08:59:48 -07:00
2017-08-08 08:38:53 -07:00
2017-08-14 10:36:48 -07:00
2017-08-14 10:36:48 -07:00
2016-11-29 14:34:27 -08:00
2017-08-14 10:36:48 -07:00
2017-08-14 15:17:15 -07:00
2017-08-14 15:17:15 -07:00
2017-05-10 09:30:48 -07:00
2016-12-12 10:46:26 -08:00
2017-03-10 09:51:33 -08:00
2017-05-10 09:30:48 -07:00
2017-03-10 09:51:41 -08:00
2017-05-10 09:30:48 -07:00
2017-01-23 10:35:58 -08:00
2017-08-21 08:59:48 -07:00