commit | d0d2d8ba0494655a01b97542c083e51b29cf8637 | [log] [tgz] |
---|---|---|
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | Mon Dec 23 10:49:02 2019 +0100 |
committer | Song Liu <songliubraving@fb.com> | Mon Jan 13 11:44:10 2020 -0800 |
tree | 685b048c60c1bb7d88873645ebe3a46f0207eed7 | |
parent | 025471f9f50fede6527c70336484becbcb2aff28 [diff] |
md/raid1: introduce wait_for_serialization Previously, we call check_and_add_serial when serialization is enabled for write IO, but it could allocate and free memory back and forth. Now, let's just get an element from memory pool with the new function, then insert node to rb tree if no collision happens. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Song Liu <songliubraving@fb.com>