linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] fs, block: handle end of life
@ 2016-01-06  4:56 Dan Williams
  2016-01-06  4:56 ` [PATCH v2 1/4] block: prepare for del_gendisk_queue() Dan Williams
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dan Williams @ 2016-01-06  4:56 UTC (permalink / raw)
  To: xfs
  Cc: linux-block, linux-nvdimm, Dave Chinner, Jens Axboe,
	Alexander Viro, Jan Kara, linux-fsdevel, Matthew Wilcox,
	Ross Zwisler

Changes since v1 [1]:

1/ move the del_gendisk() refactoring to its own patch (Dave)

2/ add unmap_dax_inodes to the xfs shutdown path (Dave)

3/ kill the unnecessary ->quiesce super operation and rename ->bdi_gone
   to ->force_failure. (Dave)

4/ rework tricky call to get_super() with a NULL bdev parameter. (Dave)

[1]: https://lists.01.org/pipermail/linux-nvdimm/2016-January/003797.html

---

As mentioned in [PATCH v2 2/4] "block: introduce del_gendisk_queue()" ,
historically we have waited for filesystem specific heuristics to
attempt to guess when a block device is gone.  Sometimes this works, but
in other cases the system can hang waiting for the fs to trigger its
shutdown protocol.

Now with DAX we need new actions, like unmapping all inodes, to be taken
upon a device loss event or fs corruption event.

For now, the approach taken in the following patches only affects xfs
and block drivers that are converted to use del_gendisk_queue().  We can
add more filesystems and driver support over time.

---

Dan Williams (4):
      block: prepare for del_gendisk_queue()
      block: introduce del_gendisk_queue()
      xfs: unmap dax at shutdown (force_failure)
      block, xfs: implement 'force_failure' notifications


 block/genhd.c                |   87 +++++++++++++++++++++++++++++++++++-------
 drivers/block/brd.c          |    9 +---
 drivers/nvdimm/pmem.c        |    3 -
 drivers/s390/block/dcssblk.c |    6 +--
 fs/block_dev.c               |   22 +++++++++++
 fs/inode.c                   |   28 ++++++++++++++
 fs/xfs/xfs_fsops.c           |    9 ++++
 fs/xfs/xfs_super.c           |    8 ++++
 include/linux/fs.h           |    3 +
 include/linux/genhd.h        |    1 
 10 files changed, 150 insertions(+), 26 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-01-08  0:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06  4:56 [PATCH v2 0/4] fs, block: handle end of life Dan Williams
2016-01-06  4:56 ` [PATCH v2 1/4] block: prepare for del_gendisk_queue() Dan Williams
2016-01-06  4:56 ` [PATCH v2 2/4] block: introduce del_gendisk_queue() Dan Williams
2016-01-08  0:15   ` Dave Chinner
2016-01-06  4:56 ` [PATCH v2 3/4] xfs: unmap dax at shutdown (force_failure) Dan Williams
2016-01-08  0:16   ` Dave Chinner
2016-01-06  4:56 ` [PATCH v2 4/4] block, xfs: implement 'force_failure' notifications Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).