Re: [PATCH 1/4] disk-protect: Add disk shock protection helpers to libata

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Thursday, March 20, 2008 - 7:13 am

> +	err_mask = ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);

We assume you never use ata_exec_internal on a "live" to block layer
device, so this doesn't work for the general case. In the EH handler for
unparking it should be fine as the EH thread runs with the drive queue
shut down.



Probably wise and we can fix that once it is obvious what reality is
using.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/4] disk-protect: Add disk shock protection he ..., Alan Cox, (Thu Mar 20, 7:13 am)