linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 00/12] PNFS Read and Write Cleanups
@ 2014-05-20 18:08 Anna Schumaker
  2014-05-20 18:08 ` [RFC 01/12] nfs: Create a common pnfs_pageio_reset_mds() function Anna Schumaker
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Anna Schumaker @ 2014-05-20 18:08 UTC (permalink / raw)
  To: Trond.Myklebust, linux-nfs; +Cc: dros, hch

There is a lot of duplicate code in pnfs.c that can be cleaned up to
share more code.  This patch set goes through each function one at a
time and merges read and write code together wherever possible.  In the
end I'm passing around a few function pointers.  Would it be better to
use a function pointer struct instead?

These patches still need a lot of testing and are not ready for merge
yet (hence the RFC).  I just wanted to send out a preview of the changes
I've made so far.

Questions, comments and thoughts are appreciated!

Anna


Anna Schumaker (12):
  nfs: Create a common pnfs_pageio_reset_mds() function
  nfs: Create a common pnfs_generic_pg_init() function
  nfs: Create a common pnfs_ld_handle_rw_error() function
  nfs: Create a common pnfs_ld_rw_done()
  nfs: Create a common pnfs_through_mds() function
  nfs: merge pnfs_try_to_write_data() and pnfs_do_write()
  nfs: merge pnfs_try_to_read_data() and pnfs_do_read()
  nfs: create a common pnfs_do_rw() function
  nfs: create a common pnfs_pgiohdr_free function
  nfs: Split up generic_pg_pgios
  nfs: pnfs can use nfs_generic_pgios_common() too!
  nfs: Create a common pnfs_generic_rwpages() function

 fs/nfs/blocklayout/blocklayout.c |   4 +-
 fs/nfs/internal.h                |   6 +-
 fs/nfs/nfs4filelayout.c          |   4 +-
 fs/nfs/pagelist.c                |  25 +++-
 fs/nfs/pnfs.c                    | 297 ++++++++++++++-------------------------
 fs/nfs/pnfs.h                    |   1 +
 fs/nfs/read.c                    |   7 -
 fs/nfs/write.c                   |   8 --
 8 files changed, 138 insertions(+), 214 deletions(-)

-- 
1.9.2


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

end of thread, other threads:[~2014-05-21 14:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 18:08 [RFC 00/12] PNFS Read and Write Cleanups Anna Schumaker
2014-05-20 18:08 ` [RFC 01/12] nfs: Create a common pnfs_pageio_reset_mds() function Anna Schumaker
2014-05-20 18:08 ` [RFC 02/12] nfs: Create a common pnfs_generic_pg_init() function Anna Schumaker
2014-05-20 18:08 ` [RFC 03/12] nfs: Create a common pnfs_ld_handle_rw_error() function Anna Schumaker
2014-05-20 18:08 ` [RFC 04/12] nfs: Create a common pnfs_ld_rw_done() Anna Schumaker
2014-05-20 18:08 ` [RFC 05/12] nfs: Create a common pnfs_through_mds() function Anna Schumaker
2014-05-20 18:08 ` [RFC 06/12] nfs: merge pnfs_try_to_write_data() and pnfs_do_write() Anna Schumaker
2014-05-20 18:08 ` [RFC 07/12] nfs: merge pnfs_try_to_read_data() and pnfs_do_read() Anna Schumaker
2014-05-20 18:08 ` [RFC 08/12] nfs: create a common pnfs_do_rw() function Anna Schumaker
2014-05-20 18:08 ` [RFC 09/12] nfs: create a common pnfs_pgiohdr_free function Anna Schumaker
2014-05-20 18:08 ` [RFC 10/12] nfs: Split up generic_pg_pgios Anna Schumaker
2014-05-20 18:08 ` [RFC 11/12] nfs: pnfs can use nfs_generic_pgios_common() too! Anna Schumaker
2014-05-20 18:08 ` [RFC 12/12] nfs: Create a common pnfs_generic_rwpages() function Anna Schumaker
2014-05-21 14:23 ` [RFC 00/12] PNFS Read and Write Cleanups Christoph Hellwig

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).