From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 8/8] libata: implement on-demand HPA unlocking Date: Sun, 16 May 2010 00:19:03 -0700 (PDT) Message-ID: <20100516.001903.67915868.davem@davemloft.net> References: <1273946974-29131-1-git-send-email-tj@kernel.org> <1273946974-29131-9-git-send-email-tj@kernel.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1273946974-29131-9-git-send-email-tj@kernel.org> Sender: linux-ide-owner@vger.kernel.org To: tj@kernel.org Cc: jeff@garzik.org, linux-ide@vger.kernel.org, jens.axboe@oracle.com, linux-scsi@vger.kernel.org, James.Bottomley@suse.de, linux-kernel@vger.kernel.org, ben@decadent.org.uk, bzolnier@gmail.com List-Id: linux-scsi@vger.kernel.org From: Tejun Heo Date: Sat, 15 May 2010 20:09:34 +0200 > Implement ata_scsi_unlock_native_capacity() which will be called > through SCSI layer when block layer notices that partitions on a > device extend beyond the end of the device. It requests EH to unlock > HPA, waits for completion and returns the current device capacity. > > This allows libata to unlock HPA on demand instead of having to decide > whether to unlock upfront. Unlocking on demand is safer than > unlocking by upfront because some BIOSes write private data to the > area beyond HPA limit. This was suggested by Ben Hutchings. > > Signed-off-by: Tejun Heo > Suggested-by: Ben Hutchings Acked-by: David S. Miller