ceph: flush cap releases when the session is flushed
authorXiubo Li <xiubli@redhat.com>
Tue, 7 Feb 2023 05:04:52 +0000 (13:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:18:03 +0000 (19:18 +0100)
commitbeb1cefa3ccd1c331e7ba13d04bf7728079bb54e
tree08a535fcf70ea05048c414b6c00e7710d0c0952f
parent86733ab23933b4f546895378c291e82f2a229e28
ceph: flush cap releases when the session is flushed

commit e7d84c6a1296d059389f7342d9b4b7defb518d3a upstream.

MDS expects the completed cap release prior to responding to the
session flush for cache drop.

Cc: stable@vger.kernel.org
Link: http://tracker.ceph.com/issues/38009
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/mds_client.c