{"push_id":843359455,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"a22c4d7e34402ccdf3414f64c50365436eba7b93","before":"23d88271b4f97f66de521ac9b2c1471e6311cf26","commits":[{"sha":"a22c4d7e34402ccdf3414f64c50365436eba7b93","author":{"email":"fadbe773cfced45e7763caa86543d79c2234c953@ssi.samsung.com","name":"Ming Lin"},"message":"block: re-add discard_granularity and alignment checks\n\nIn commit b49a087(\"block: remove split code in\nblkdev_issue_{discard,write_same}\"), discard_granularity and alignment\nchecks were removed. Ideally, with bio late splitting, the upper layers\nshouldn't need to depend on device's limits.\n\nChristoph reported a discard regression on the HGST Ultrastar SN100 NVMe\ndevice when mkfs.xfs. We have not found the root cause yet.\n\nThis patch re-adds discard_granularity and alignment checks by reverting\nthe related changes in commit b49a087. The good thing is now we can\nremove the 2G discard size cap and just use UINT_MAX to avoid bi_size\noverflow.\n\nReviewed-by: Christoph Hellwig <hch@lst.de>\nTested-by: Christoph Hellwig <hch@lst.de>\nSigned-off-by: Ming Lin <ming.l@ssi.samsung.com>\nReviewed-by: Mike Snitzer <snitzer@redhat.com>\nSigned-off-by: Jens Axboe <axboe@fb.com>","distinct":true,"url":"https://api.github.com/repos/torvalds/linux/commits/a22c4d7e34402ccdf3414f64c50365436eba7b93"}]}