libata: expose AN to user space
PATCH 7/10 libata: expose AN to user space
From: Kristen Carlson Accardi <[email protected]>
If Asynchronous Notification of media change events is supported, pass that information up to the SCSI layer.
Signed-off-by Kristen Carlson Accardi <[email protected]>
Cc Jeff Garzik <[email protected]>
Cc Tejun Heo <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/ata/libata-scsi.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/ata/libata-scsi.c renamed from drivers/ata/libata-scsi.c~libata-expose-an-to-user-space +3 -0
@@ -773,6 +773,9 @@ static void ata_scsi_dev_config(struct sblk_queue_max_hw_segments (q, q->max_hw_segments -1 ); } +if (dev->flags &ATA_DFLAG_AN ) + sdev->media_change_notify =1 ; +if (dev->flags &ATA_DFLAG_NCQ ) {int depth;
_