]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: ignore pool overlay and cache logic on redirects
authorJerry Lee <leisurelysw24@gmail.com>
Mon, 18 May 2020 08:03:09 +0000 (16:03 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 27 May 2020 10:43:35 +0000 (12:43 +0200)
commit3377a58d92608a7bbe8ee83549280640307407e7
tree8940994342c4755c95d399d597cd2fb0add12c3f
parentae1635a76aa66d84790309cee01dfbe51e92a9b8
libceph: ignore pool overlay and cache logic on redirects

OSD client should ignore cache/overlay flag if got redirect reply.
Otherwise, the client hangs when the cache tier is in forward mode.

[ idryomov: Redirects are effectively deprecated and no longer
  used or tested.  The original tiering modes based on redirects
  are inherently flawed because redirects can race and reorder,
  potentially resulting in data corruption.  The new proxy and
  readproxy tiering modes should be used instead of forward and
  readforward.  Still marking for stable as obviously correct,
  though. ]

Cc: stable@vger.kernel.org
URL: https://tracker.ceph.com/issues/23296
URL: https://tracker.ceph.com/issues/36406
Signed-off-by: Jerry Lee <leisurelysw24@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c