Whamcloud - gitweb
LU-15117 ofd: don't take lock for dt_bufs_get() 29/47029/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 11 Apr 2022 08:30:44 +0000 (11:30 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 27 Jun 2022 04:57:10 +0000 (04:57 +0000)
commit7c4a7c59ed9c6185da326d6df6223f4818b57769
treed4d2d7382410d9e8634c186753ce5c6f1b71977c
parent7b8449e8f9ed310376a191ec8dfa2f1cb6233377
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.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I58a52af8e2fbbc4823aafc133893e1defedf99b7
Reviewed-on: https://review.whamcloud.com/47029
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_io.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_io.c