Re: [PATCH rc8-mm1] hotfix libata-scsi corruption

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Bottomley <James.Bottomley@...>
Cc: Andrew Morton <akpm@...>, Jeff Garzik <jeff@...>, Alan Stern <stern@...>, <linux-kernel@...>, <linux-ide@...>, linux-scsi <linux-scsi@...>
Date: Tuesday, January 22, 2008 - 6:59 pm

On Tue, 22 Jan 2008, James Bottomley wrote:

I don't remember the various SLAB and SLOB and SLUB rules offhand:
I'm not sure it's safe to rely on such alignment on all of them ....


.... but this would trump it: yes, we don't need 512-byte alignment
for this, and it is okay to cross a page boundary, just so long as
the start of the next page really belongs to our buffer not somebody
else's.

There doesn't seem much likelihood of anyone vmalloc'ing the buffer
in which that IDENTIFY_DEVICE gets done.  Though this discussion
does make me wonder whether ata_pio_sector ought to have a BUG_ON
(and yes, a BUG_ON rather than a WARN_ON) against the possibility.

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

Messages in current thread:
[PATCH rc8-mm1] hotfix libata-scsi corruption, Hugh Dickins, (Tue Jan 22, 1:11 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, James Bottomley, (Tue Jan 22, 1:29 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Alan Cox, (Tue Jan 22, 6:12 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Hugh Dickins, (Tue Jan 22, 6:41 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Hugh Dickins, (Tue Jan 22, 2:36 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, James Bottomley, (Tue Jan 22, 3:43 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Jeff Garzik, (Tue Jan 22, 4:32 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, James Bottomley, (Tue Jan 22, 7:00 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Hugh Dickins, (Tue Jan 22, 4:20 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, James Bottomley, (Tue Jan 22, 6:12 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Hugh Dickins, (Tue Jan 22, 6:59 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, Matt Mackall, (Tue Jan 22, 7:58 pm)
Re: [PATCH rc8-mm1] hotfix libata-scsi corruption, James Bottomley, (Tue Jan 22, 7:19 pm)