)]}'
{
  "commit": "2cd2003f7b360bb2ed9cafe5b81827b64a42b16a",
  "tree": "ba301ce5dd758a18ae228bcaf70385a49816504d",
  "parents": [
    "1fe39f50304121db1e4ff9f37bda5d43c747b969"
  ],
  "author": {
    "name": "Damien Le Moal",
    "email": "dlemoal@kernel.org",
    "time": "Mon Jan 05 10:11:02 2026 -0500"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Thu Jan 08 10:15:04 2026 +0100"
  },
  "message": "block: handle zone management operations completions\n\n[ Upstream commit efae226c2ef19528ffd81d29ba0eecf1b0896ca2 ]\n\nThe functions blk_zone_wplug_handle_reset_or_finish() and\nblk_zone_wplug_handle_reset_all() both modify the zone write pointer\noffset of zone write plugs that are the target of a reset, reset all or\nfinish zone management operation. However, these functions do this\nmodification before the BIO is executed. So if the zone operation fails,\nthe modified zone write pointer offsets become invalid.\n\nAvoid this by modifying the zone write pointer offset of a zone write\nplug that is the target of a zone management operation when the\noperation completes. To do so, modify blk_zone_bio_endio() to call the\nnew function blk_zone_mgmt_bio_endio() which in turn calls the functions\nblk_zone_reset_all_bio_endio(), blk_zone_reset_bio_endio() or\nblk_zone_finish_bio_endio() depending on the operation of the completed\nBIO, to modify a zone write plug write pointer offset accordingly.\nThese functions are called only if the BIO execution was successful.\n\nFixes: dd291d77cc90 (\"block: Introduce zone write plugging\")\nCc: stable@vger.kernel.org\nSigned-off-by: Damien Le Moal \u003cdlemoal@kernel.org\u003e\nReviewed-by: Christoph Hellwig \u003chch@lst.de\u003e\nReviewed-by: Johannes Thumshirn \u003cjohannes.thumshirn@wdc.com\u003e\nReviewed-by: Chaitanya Kulkarni \u003ckch@nvidia.com\u003e\nReviewed-by: Hannes Reinecke \u003chare@suse.de\u003e\nReviewed-by: Martin K. Petersen \u003cmartin.petersen@oracle.com\u003e\nSigned-off-by: Jens Axboe \u003caxboe@kernel.dk\u003e\n[ adapted bdev_zone_is_seq() check to disk_zone_is_conv() ]\nSigned-off-by: Sasha Levin \u003csashal@kernel.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "aac5ae9292b60a5248b1fcc1fa7f078d272d9b9b",
      "old_mode": 33188,
      "old_path": "block/blk-zoned.c",
      "new_id": "e29e41f86c4a2f16c88992977f3bc950643fbf15",
      "new_mode": 33188,
      "new_path": "block/blk-zoned.c"
    },
    {
      "type": "modify",
      "old_id": "e91012247ff296b7305dc4c1702e659f4522c2d4",
      "old_mode": 33188,
      "old_path": "block/blk.h",
      "new_id": "63c92db0a507978bfa6970d0ae38c38f22643b6c",
      "new_mode": 33188,
      "new_path": "block/blk.h"
    }
  ]
}
