Skip to contentSkip to conversation

loop: don't update discard limits from loop_set_status

PATCH RESEND Applied Christoph Hellwig 2 participants 2 messages Dec 27, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 loop: don't update discard limits from loop_set_status

loop_set_status doesn't change anything relevant to the discard and write_zeroes setting, so don't bother calling loop_config_discard.

---

Resend without the other patch from the previous series

 drivers/block/loop.c | 2 --
 1 file changed, 2 deletions(-)
drivers/block/loop.c +0 -2
index 371a318e691d02..794bc92da165c3 100644
@@ -1303,8 +1303,6 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
 		loop_set_size(lo, new_size);
 	}
 
-	loop_config_discard(lo);
-
 	/* update dio if lo_offset or transfer is changed */
 	__loop_update_dio(lo, lo->use_dio);
 
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Christoph Hellwig

loop_set_status doesn't change anything relevant to the discard and write_zeroes setting, so don't bother calling loop_config_discard.

Applied, thanks!

[1/1] loop: don't update discard limits from loop_set_status

      commit: 34c7db44b4edccda315edcf02b9669aa173e090b

Best regards,

Signature · 1 line
Jens Axboe