login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
5
Re: [PATCH 1/2] MEMSTICK: fix hangs on unexpected device removal in mspro_blk
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Maxim Levitsky
Subject:
Re: [PATCH 1/2] MEMSTICK: fix hangs on unexpected device removal in mspro_blk
Date: Thursday, August 5, 2010 - 10:48 am
On Thu, 2010-08-05 at 01:43 -0700, Alex Dubov wrote:
quoted text
> > From: Maxim Levitsky <maximlevitsky@gmail.com> > > Subject: Re: [PATCH 1/2] MEMSTICK: fix hangs on unexpected device removal in mspro_blk > > > > > > > > > Now that del_gendisk syncs, we better > > > > > start rejecting requests right away. > > > > > > > > > > > > I don't quite see why this change is needed. My > > understanding is, user > > > > accessible interface should be marked as removed > > as early, as possible. > > > > > > The problem here is that del_gendisk, syncs the > > device. > > > This is new change, made after you did your drivers. > > > > > > I have this problem on jMicron too (which otherwise > > works fine). > > The problem is that card check thread explicitly calls > > ->stop before > > removing the device. > > In case of mspro_blk.c that stops the request queue. > > Attempt to call del_gendisk with stopped request queue > > hangs due to > > syncing. > > Well, ok. Sounds good. > > > > > > > > I have a copy of your ms_block.c. > > > I would would be very happy if you share with me, what > > problems does it > > > still have (besides need of trivial port for changes > > in block system, > > > because I want to push it upstream too. > > > > > > I have MS DUO 64M to test it against. > > > > > I've got two rather different implementations of ms_block, if I remember > correctly. Both suffer from random data corruptions, thanks to my > inexplicable desire to write the state machine as tightly, as possible. > Only the later one does the spec mandated geometry correctly - I actually > wrote the first version before I've seen the spec for the first time.
By 'spec mandated geometry' you mean the fact the card needs to be broken into zones, somewhat like XD? Best regards, Maxim Levitsky --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: [PATCH 1/2] MEMSTICK: fix hangs on unexpected device r ...
, Alex Dubov
, (Thu Aug 5, 1:43 am)
Re: [PATCH 1/2] MEMSTICK: fix hangs on unexpected device r ...
, Maxim Levitsky
, (Thu Aug 5, 10:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Colocation donated by:
Syndicate