Whamcloud - gitweb
LU-16160 osc: take ldlm lock when queue sync pages 57/48557/2
authorBobi Jam <bobijam@whamcloud.com>
Thu, 15 Sep 2022 06:46:34 +0000 (14:46 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 24 Sep 2022 20:29:08 +0000 (20:29 +0000)
commit67aca1fcc6bed20794832decdba590a758d67d8f
treea0e76ea4c4045871695bce60dc9e953c0c6c62f9
parent3201740760d241dee935e4a66935b1bc81ac6380
LU-16160 osc: take ldlm lock when queue sync pages

osc_queue_sync_pages() add osc_extent to osc_object's IO extent
list without taking ldlm locks, and then it calls
osc_io_unplug_async() to queue the IO work for the client.

This patch make sync page queuing take ldlm lock in the
osc_extent.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Idefa2981e62a2a6e10d8b8a7692c0337b61b9052
Reviewed-on: https://review.whamcloud.com/48557
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_osc.h
lustre/mdc/mdc_dev.c
lustre/osc/osc_cache.c
lustre/osc/osc_io.c
lustre/osc/osc_lock.c
lustre/tests/sanityn.sh