Submit #2438

TRIM fixes

Added by Anonymous almost 2 years ago. Updated 4 months ago.

Status:FeedbackStart date:
Priority:NormalDue date:
Assignee:tuxillo% Done:

0%

Category:VFS subsystem
Target version:3.8.0

Description

This patch is to fix bugs associated with TRIM.

If trim is on as a option, display that when typing "mount".

Change post-trim ffs_blkfree_cg() to use taskqueue_swi_mp and get mp token when modifying freemap.

Make sure TRIM works with softdep. Stash a copy of that vnode's mount point in the ufs inode so that if we are using softdep, we can get access to the mount point through the faked up inode (created in freeblocks). The original mount point path (ip->i_devvp->v_mount->mnt_flag) doesn't have the mount point options.

Tim

0001-TRIM-fixes.patch Magnifier (4.46 KB) Anonymous, 10/21/2012 09:59 PM

History

#1 Updated by tuxillo 4 months ago

  • Description updated (diff)
  • Category set to VFS subsystem
  • Status changed from New to Feedback
  • Assignee set to tuxillo
  • Target version set to 3.8.0

Tim,

Apparently Venk contacted you about a couple issues with regards to this patch.

<tuxillo> 03:16 <@vsrinivas> tuxillo: yes, i reported two parts of the issues
to tim.
<tuxillo> 03:17 <@vsrinivas> there's still one confusing but correct bit of
there -- ffs_blkfree looks like it queues a double ffs_blkfree_cg,
but because of other bugs in the system propagating CANFREE, it's
okay.

Did you look at them? Is there additional information we're missing here?

Thanks,
Antonio Huete

Also available in: Atom PDF