[LU-13196] Remove inode mutex for DIO reads Created: 04/Feb/20 Updated: 17/Jul/20 Resolved: 17/Jul/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Patrick Farrell | Assignee: | Patrick Farrell |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
When the range lock was added to Lustre, inode mutex in the DIO path was removed. This was replaced with range lock usage, but then the entire area of code was accidentally replaced with a backport from the Linux kernel staging tree. This backport still had the inode mutex usage, which is unnecessary. It looks like this was added back by mistake (sigh) when James Simmons backported some patches from the upstream kernel. Quoting from https://review.whamcloud.com/#/c/32416/26 : The history is basically this - When the range lock was added, this was removed. I then added the range lock for DIO reads because two DIO reads can't safely operate on the same pages. Then, around when I added the range lock for DIO reads, James back ported some older patches which still had the pre-range lock locking. Here's the history. Introduction of the range lock, removing the inode mutex here: http://review.whamcloud.com/6672 Adding range lock for DIO reads (because James' backport, which used older code w/the inode mutex: http://review.whamcloud.com/14665 It looks like my "add range lock" and James' backport were in flight at the same time. I'm pretty sure this lock can be removed. I'll push a quick patch. |
| Comments |
| Comment by Gerrit Updater [ 04/Feb/20 ] |
|
Patrick Farrell (farr0186@gmail.com) uploaded a new patch: https://review.whamcloud.com/37419 |
| Comment by Gerrit Updater [ 17/Jul/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37419/ |
| Comment by Peter Jones [ 17/Jul/20 ] |
|
Landed for 2.14 |