linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHSET] block,libata: implement ->unlock_native_capacity()
@ 2010-05-15 18:09 Tejun Heo
  2010-05-15 18:09 ` [PATCH 1/8] buffer: make invalidate_bdev() drain all percpu LRU add caches Tejun Heo
                   ` (9 more replies)
  0 siblings, 10 replies; 31+ messages in thread
From: Tejun Heo @ 2010-05-15 18:09 UTC (permalink / raw)
  To: jeff, linux-ide, jens.axboe, linux-scsi, James.Bottomley,
	linux-kernel, ben, davem

Hello, all.

This is the evolved version of the implement-set_capacity patchset[L]
and contains the following patches.

 0001-buffer-make-invalidate_bdev-drain-all-percpu-LRU-add.patch
 0002-block-restart-partition-scan-after-resizing-a-device.patch
 0003-block-ide-simplify-bdops-set_capacity-to-unlock_nati.patch
 0004-block-use-struct-parsed_partitions-state-universally.patch
 0005-block-improve-automatic-native-capacity-unlocking.patch
 0006-SCSI-implement-sd_unlock_native_capacity.patch
 0007-libata-use-the-enlarged-capacity-after-late-HPA-unlo.patch
 0008-libata-implement-on-demand-HPA-unlocking.patch

0001-0005 fix and update partition check related code and make the
existing automatic native capacity unlocking mechanism simpler and
more robust.

0001 fixes invalidate_bdev() which seems to have been somewhat broken
for quite some time since percpu LRU add cache was introduced.

0002 makes partition code to restart from beginning after native
capacity is locked so that resize and all other stuff can be dealt
with in the usual revalidation path.

0003 renames ->set_capacity() to ->unlock_native_capacity() and drops
the spurious new capacity parameter and return value.

0004 updates partition check API for the next patch.

0005 improves automatic native capacity unlocking code so that it
covers all partition misdetection cases which can be caused by limited
disk capacity.

0006-0008 add ->unlock_native_capacity() support to libata.  0001-0005
are probably best routed through block tree if David is okay with it
(0003 modifies ide), and 0006-0008 through libata if James is okay
with the SCSI part.  What do you guys think?

This patchset is available in the following git branch.

  git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata-dev.git unlock-native-capa

diffstat follows.

 drivers/ata/libata-core.c |    6 +--
 drivers/ata/libata-scsi.c |   29 ++++++++++++++
 drivers/ide/ide-disk.c    |   40 ++++++++------------
 drivers/ide/ide-gd.c      |   11 ++---
 drivers/scsi/sd.c         |   22 +++++++++++
 fs/buffer.c               |    1 
 fs/partitions/acorn.c     |   68 ++++++++++++++++------------------
 fs/partitions/acorn.h     |   10 ++---
 fs/partitions/amiga.c     |   13 +++---
 fs/partitions/amiga.h     |    2 -
 fs/partitions/atari.c     |    8 ++--
 fs/partitions/atari.h     |    2 -
 fs/partitions/check.c     |   84 ++++++++++++++++++++++++++++++------------
 fs/partitions/check.h     |   12 ++++++
 fs/partitions/efi.c       |   91 +++++++++++++++++++++-------------------------
 fs/partitions/efi.h       |    2 -
 fs/partitions/ibm.c       |   21 +++++-----
 fs/partitions/ibm.h       |    2 -
 fs/partitions/karma.c     |    4 +-
 fs/partitions/karma.h     |    2 -
 fs/partitions/ldm.c       |   89 ++++++++++++++++++++++----------------------
 fs/partitions/ldm.h       |    2 -
 fs/partitions/mac.c       |   11 +++--
 fs/partitions/mac.h       |    2 -
 fs/partitions/msdos.c     |   85 ++++++++++++++++++------------------------
 fs/partitions/msdos.h     |    2 -
 fs/partitions/osf.c       |    4 +-
 fs/partitions/osf.h       |    2 -
 fs/partitions/sgi.c       |    6 +--
 fs/partitions/sgi.h       |    2 -
 fs/partitions/sun.c       |    6 +--
 fs/partitions/sun.h       |    2 -
 fs/partitions/sysv68.c    |    6 +--
 fs/partitions/sysv68.h    |    2 -
 fs/partitions/ultrix.c    |    4 +-
 fs/partitions/ultrix.h    |    2 -
 include/linux/blkdev.h    |    3 -
 include/linux/ide.h       |    2 -
 include/linux/libata.h    |    2 +
 include/scsi/scsi_host.h  |    8 ++++
 40 files changed, 375 insertions(+), 297 deletions(-)

Thanks.

--
tejun

[L] http://thread.gmane.org/gmane.linux.scsi/58925

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

end of thread, other threads:[~2010-06-02 17:50 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-15 18:09 [PATCHSET] block,libata: implement ->unlock_native_capacity() Tejun Heo
2010-05-15 18:09 ` [PATCH 1/8] buffer: make invalidate_bdev() drain all percpu LRU add caches Tejun Heo
2010-05-16  7:11   ` David Miller
2010-05-15 18:09 ` [PATCH 2/8] block: restart partition scan after resizing a device Tejun Heo
2010-05-16  7:15   ` David Miller
2010-05-15 18:09 ` [PATCH 3/8] block,ide: simplify bdops->set_capacity() to ->unlock_native_capacity() Tejun Heo
2010-05-15 18:48   ` Bartlomiej Zolnierkiewicz
2010-05-15 18:58     ` Tejun Heo
2010-05-16  7:15   ` David Miller
2010-05-15 18:09 ` [PATCH 4/8] block: use struct parsed_partitions *state universally in partition check code Tejun Heo
2010-05-16  7:16   ` David Miller
2010-05-15 18:09 ` [PATCH 5/8] block: improve automatic native capacity unlocking Tejun Heo
2010-05-16  7:17   ` David Miller
2010-05-15 18:09 ` [PATCH 6/8] SCSI: implement sd_unlock_native_capacity() Tejun Heo
2010-05-16  7:18   ` David Miller
2010-05-16 13:39   ` James Bottomley
2010-05-16 15:07     ` Ben Hutchings
2010-05-16 16:00       ` James Bottomley
2010-05-16 17:00         ` Tejun Heo
2010-05-16 19:23           ` James Bottomley
2010-05-17  5:30             ` Tejun Heo
2010-06-02 17:50   ` Jeff Garzik
2010-05-15 18:09 ` [PATCH 7/8] libata: use the enlarged capacity after late HPA unlock Tejun Heo
2010-05-15 19:22   ` Jeff Garzik
2010-05-16  7:18   ` David Miller
2010-05-15 18:09 ` [PATCH 8/8] libata: implement on-demand HPA unlocking Tejun Heo
2010-05-15 19:22   ` Jeff Garzik
2010-05-16  7:19   ` David Miller
2010-05-19  7:05 ` [PATCHSET] block,libata: implement ->unlock_native_capacity() Tejun Heo
2010-05-19  7:08   ` Jens Axboe
2010-06-02 16:37 ` Tejun Heo

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