[PATCH 5.12 318/384] md/raid1: properly indicate failure when ending a failed write request