Whamcloud - gitweb
LU-15117 ofd: don't take lock for dt_bufs_get() 29/47029/4
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 11 Apr 2022 08:30:44 +0000 (11:30 +0300)
committerPeter Jones <pjones@whamcloud.com>
Fri, 3 Jun 2022 23:14:59 +0000 (23:14 +0000)
commit14db15b1dcea61b1c35e00f004124501ead86ab6
tree06bd911f3ec73b0979ed8d16a7e64ae272b90c03
parent10a29ad7616aeaadabf6d96146f52ef348a3a6f1
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
lustre/ofd/ofd_io.c
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_io.c