Commit 502cd96f authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Drop the runlist lock after the vcn has been read in

      fs/ntfs/lcnalloc.c::__ntfs_cluster_free().
Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent a56bd547
...@@ -70,6 +70,8 @@ ToDo/Notes: ...@@ -70,6 +70,8 @@ ToDo/Notes:
error handling code path that resulted in a BUG() due to trying to error handling code path that resulted in a BUG() due to trying to
unmap an extent mft record when the mapping of it had failed and it unmap an extent mft record when the mapping of it had failed and it
thus was not mapped. (Thanks to Ken MacFerrin for the bug report.) thus was not mapped. (Thanks to Ken MacFerrin for the bug report.)
- Drop the runlist lock after the vcn has been read in
fs/ntfs/lcnalloc.c::__ntfs_cluster_free().
2.1.21 - Fix some races and bugs, rewrite mft write code, add mft allocator. 2.1.21 - Fix some races and bugs, rewrite mft write code, add mft allocator.
......
...@@ -903,8 +903,8 @@ s64 __ntfs_cluster_free(struct inode *vi, const VCN start_vcn, s64 count, ...@@ -903,8 +903,8 @@ s64 __ntfs_cluster_free(struct inode *vi, const VCN start_vcn, s64 count,
* Attempt to map runlist, dropping runlist lock for * Attempt to map runlist, dropping runlist lock for
* the duration. * the duration.
*/ */
up_read(&ni->runlist.lock);
vcn = rl->vcn; vcn = rl->vcn;
up_read(&ni->runlist.lock);
err = ntfs_map_runlist(ni, vcn); err = ntfs_map_runlist(ni, vcn);
if (err) { if (err) {
if (!is_rollback) if (!is_rollback)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment