)]}'
{
  "commit": "627cdcbc2a2eceb0452078a0c14370f9f1f17a91",
  "tree": "1a7b7df2320df4d87b638afae5e4e8fb89423b3e",
  "parents": [
    "c206cdfee6c037b829178bb7e17e6e37ddc9aa35"
  ],
  "author": {
    "name": "Chris Mason",
    "email": "mason@kernel.org",
    "time": "Thu Oct 29 19:03:19 2026 +0100"
  },
  "committer": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Fri Oct 30 15:54:59 2026 +0100"
  },
  "message": "backing-file: always end a queued write\n\nWrites to a loop device with direct I/O on an overlay file make the\nnext freeze of the upper filesystem hang for ever.\n\nEvery kiocb_start_write() needs a kiocb_end_write(). For a write that\nis queued, vfs_iocb_iter_write() leaves the end to the completion, and\nbacking_aio_rw_complete() only calls kiocb_end_write() when IOCB_WRITE\nis set in the flags copied from the submitter. In-kernel submitters\nsuch as loop do not set that flag, so each queued write keeps the\nfreeze protection of the backing filesystem.\n\nDirect writes to a loop device with direct I/O backed by an overlay\nfile left fsfreeze of the ext4 upper filesystem, and a later touch\nthere, blocked in D state. It takes write access to the node of the\nloop device, which root has by default, to attach the file and to write.\n\nThe fix used here is to mark a write in struct backing_aio and to call\nkiocb_end_write() on completion of every marked write.\n\nReproduced under qemu without KVM, on v7.3-rc6-21-g602042bf29f6 with\nearlier fixes of this series applied, with and without this change,\nonce each. The kernel was not changed for the run. With this change\nfsfreeze finished in about a second. Not run: the nvmet and LIO file\nbackends, which do not set IOCB_WRITE either, FUSE passthrough, and an\nxfs upper filesystem.\n\nFixes: 2406a307ac7d (\"ovl: implement async IO routines\")\nCc: stable@vger.kernel.org\nSigned-off-by: Chris Mason \u003cmason@kernel.org\u003e\n[amir: use aio-\u003eis_write to explicitly mark a write aio]\nSigned-off-by: Amir Goldstein \u003camir73il@gmail.com\u003e\nLink: https://patch.msgid.link/20261029180319.2852090-1-amir73il@gmail.com\nSigned-off-by: Christian Brauner (Amutable) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2424dc38d21ac7e2ee6e1cb078f3df1a4922f254",
      "old_mode": 33188,
      "old_path": "fs/backing-file.c",
      "new_id": "ad573f5153c7c7ebf1e91ef66e431b08fdde3626",
      "new_mode": 33188,
      "new_path": "fs/backing-file.c"
    }
  ]
}
