]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
SCSI: implement sd_unlock_native_capacity()
authorTejun Heo <tj@kernel.org>
Sat, 15 May 2010 18:09:32 +0000 (20:09 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 2 Jun 2010 17:50:04 +0000 (13:50 -0400)
commit72ec24bd7725545bc149d80cbd21a7578d9aa206
treea67f8fdda3b0dd69bb45ca19508b68431f1b69d8
parented4e2f801cf1484a68c4b41878353f26e6554c6a
SCSI: implement sd_unlock_native_capacity()

Implement sd_unlock_native_capacity() method which calls into
hostt->unlock_native_capacity() if implemented.  This will be invoked
by block layer if partitions extend beyond the end of the device and
can be used to implement, for example, on-demand ATA host protected
area unlocking.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/scsi/sd.c
include/scsi/scsi_host.h