Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illumos #4950 files sometimes can't be removed from a full filesystem #2784

Closed
wants to merge 1 commit into from

Conversation

ryao
Copy link
Contributor

@ryao ryao commented Oct 10, 2014

Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com

Porting notes:

  1. ZoL currently does not log discards to zvols, so the portion of this patch that
    modifies the discard logging to mark it as freeing space has been discarded.
  2. may_delete_now had been removed from zfs_remove() in ZoL. It has been
    reintroduced.

@ryao ryao force-pushed the illumos-4950 branch 5 times, most recently from 3a7a298 to 8be2e1f Compare October 10, 2014 21:51
…esystem

Reviewed by: Adam Leventhal <adam.leventhal@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Boris Protopopov <bprotopopov@hotmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Ported-by: Richard Yao <richard.yao@clusterhq.com>

Porting notes:
1. ZoL currently does not log discards to zvols, so the portion of this patch that
modifies the discard logging to mark it as freeing space has been discarded.

2. may_delete_now had been removed from zfs_remove() in ZoL. It has been
reintroduced.

3. We do not try to emulate vnodes, so the following lines are not valid
on Linux:

	mutex_enter(&vp->v_lock);
	may_delete_now = vp->v_count == 1 && !vn_has_cached_data(vp);
	mutex_exit(&vp->v_lock);

This has been replaced with:

	mutex_enter(&zp->z_lock);
	may_delete_now = atomic_read(&ip->i_count) == 1 && !(zp->z_is_mapped);
	mutex_exit(&zp->z_lock);
kernelOfTruth pushed a commit to kernelOfTruth/zfs that referenced this pull request Dec 13, 2014
…esystem openzfs#2784

Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com

Porting notes:
1. ZoL currently does not log discards to zvols, so the portion of this patch that
modifies the discard logging to mark it as freeing space has been discarded.

may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced.
evansus referenced this pull request in openzfsonosx/zfs Dec 23, 2014
marks the transaction as a net free, helpful
if the pool is low on free space
@behlendorf behlendorf added this to the 0.6.5 milestone Feb 6, 2015
kernelOfTruth pushed a commit to kernelOfTruth/zfs that referenced this pull request Feb 14, 2015
…esystem openzfs#2784

Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com

Porting notes:
1. ZoL currently does not log discards to zvols, so the portion of this patch that
modifies the discard logging to mark it as freeing space has been discarded.

may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced.

https://illumos.org/issues/4950
kernelOfTruth pushed a commit to kernelOfTruth/zfs that referenced this pull request Feb 18, 2015
…esystem openzfs#2784

Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com

Porting notes:
1. ZoL currently does not log discards to zvols, so the portion of this patch that
modifies the discard logging to mark it as freeing space has been discarded.

may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced.

https://illumos.org/issues/4950
kernelOfTruth pushed a commit to kernelOfTruth/zfs that referenced this pull request Mar 1, 2015
…esystem openzfs#2784

Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com

Porting notes:
1. ZoL currently does not log discards to zvols, so the portion of this patch that
modifies the discard logging to mark it as freeing space has been discarded.

may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced.

https://illumos.org/issues/4950
kernelOfTruth pushed a commit to kernelOfTruth/zfs that referenced this pull request Mar 13, 2015
…esystem openzfs#2784

Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com

Porting notes:
1. ZoL currently does not log discards to zvols, so the portion of this patch that
modifies the discard logging to mark it as freeing space has been discarded.

may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced.

https://illumos.org/issues/4950
@behlendorf
Copy link
Contributor

@ryao refreshing this patch so that we'd be back in sync with illumos would be very helpful. This addresses a real user visible issue.

@behlendorf behlendorf removed this from the 0.6.5 milestone Jul 16, 2015
@kernelOfTruth
Copy link
Contributor

#3629 [buildbot, cherry-pick to master] Illumos #4950 files sometimes can't be removed from a full filesystem (#2784)

so that the newer buildbots + new tree can test it.

This is the updated commit I'm using, so why not use the opportunity and make an updated pull-request out of it =)

The only merge conflict was updated copyright comment

@behlendorf
Copy link
Contributor

Closing. Replaced by #3629.

@behlendorf behlendorf closed this Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants