Whamcloud - gitweb
LU-15117 ofd: don't take lock for dt_bufs_get()
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 11 Apr 2022 08:30:44 +0000 (11:30 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Jun 2022 20:35:46 +0000 (20:35 +0000)
commit916881d9dc75deaf6798fc36b922e1d7dc673dbd
tree5fa53a2e2fd9a61e29f8a88093b59e89fe2afab0
parentc94bbdfe9e19996015ab188f475f84941af25808
LU-15117 ofd: don't take lock for dt_bufs_get()

osd_bufs_get() allocates the pages and can cause new transactions
as part of memory release procedure. this would break Lustre's
"start a transaction, then do locking" rule.

Lustre-change: https://review.whamcloud.com/47029
Lustre-commit: TBD (from 14db15b1dcea61b1c35e00f004124501ead86ab6)

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I58a52af8e2fbbc4823aafc133893e1defedf99b7
Reviewed-on: https://review.whamcloud.com/47592
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ofd/ofd_io.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_io.c