File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16263,7 +16263,9 @@ int BlueStore::_do_alloc_write(
1626316263 if (!g_conf()->bluestore_debug_omit_block_device_write) {
1626416264 if (data_size < prefer_deferred_size_snapshot) {
1626516265 dout(20) << __func__ << " deferring 0x" << std::hex
16266- << l->length() << std::dec << " write via deferred" << dendl;
16266+ << l->length() << " write via deferred, pds=0x"
16267+ << prefer_deferred_size_snapshot
16268+ << std::dec<< dendl;
1626716269 bluestore_deferred_op_t *op = _get_deferred_op(txc, l->length());
1626816270 op->op = bluestore_deferred_op_t::OP_WRITE;
1626916271 int r = wi.b->get_blob().map(
Original file line number Diff line number Diff line change @@ -7097,6 +7097,15 @@ TEST_P(DeferredWriteTest, NewData) {
70977097 SetVal (g_conf (), " bluestore_min_alloc_size" , stringify (t.min_alloc_size ).c_str ());
70987098 SetVal (g_conf (), " bluestore_max_blob_size" , stringify (t.max_blob_size ).c_str ());
70997099 SetVal (g_conf (), " bluestore_prefer_deferred_size" , stringify (t.prefer_deferred_size ).c_str ());
7100+ // bluestore_prefer_deferred_size set to 0 is a special case
7101+ // when hdd-/ssd-specific settings applied.
7102+ // Need to adjust them as well if we want to have no deferred ops at all
7103+ // Fixes: https://tracker.ceph.com/issues/64443
7104+ //
7105+ if (0 == t.prefer_deferred_size ) {
7106+ SetVal (g_conf (), " bluestore_prefer_deferred_size_hdd" , " 0" );
7107+ SetVal (g_conf (), " bluestore_prefer_deferred_size_ssd" , " 0" );
7108+ }
71007109 g_conf ().apply_changes (nullptr );
71017110 DeferredSetup ();
71027111
You can’t perform that action at this time.
0 commit comments