Whamcloud - gitweb
LU-13305 osc: rid of an invalid assertion 14/56914/2
authorBobi Jam <bobijam@whamcloud.com>
Thu, 7 Nov 2024 17:00:46 +0000 (01:00 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Dec 2024 06:14:19 +0000 (06:14 +0000)
commitec7cddb4f8d8a59f083034405b9f027ad9293507
treefa2dfbd75182d4daf837b2ac4019b0945b12f6c0
parent783d6a4677bad0cd85fe24510310a3844dbe13bd
LU-13305 osc: rid of an invalid assertion

When osc_cache_truncate_start() race with ldlm lock blocking ast,
they would access the same extent, and the ext would has oe_hp
set by osc_cache_writeback_range() from the data flush caused by
ldlm lock canceling.

So the EASSERT(!ext->oe_hp && !ext->oe_urgent, ext) is invalid in
this case.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I15514c54af598f2a130c0ac0a3f356468b4cdfce
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56914
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_cache.c