Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757716Ab2FTSrn (ORCPT ); Wed, 20 Jun 2012 14:47:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65276 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757597Ab2FTSrj (ORCPT ); Wed, 20 Jun 2012 14:47:39 -0400 From: Jeff Moyer To: Dima Tisnek Cc: Alan Stern , Alexander Viro , Jens Axboe , USB list , , Kernel development list Subject: Re: mount stuck, khubd blocked References: X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Wed, 20 Jun 2012 14:47:31 -0400 In-Reply-To: (Alan Stern's message of "Tue, 19 Jun 2012 10:45:10 -0400 (EDT)") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1191 Lines: 39 Alan Stern writes: > On Tue, 19 Jun 2012, Dima Tisnek wrote: > >> I made a microsd flash with 2 partitions, sdb1 is data partition, and >> sdb2 is a sentinel partition, 1 block in size. >> >> I attached the usb-microsd reader with that card in it and by mistake >> tried to mount the sentinel partition, I ran: >> mount /dev/sdb2 /mnt/flash/ >> >> mount got stuck, I was not able to kill or strace it, I pulled the usb >> reader from the port, mount was still stuck, here's the dmesg log: Hi, Dima, Could you try the following patch? Thanks, Jeff diff --git a/fs/buffer.c b/fs/buffer.c index 838a9cf..769b30b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -930,7 +930,7 @@ init_page_buffers(struct page *page, struct block_device *bdev, bh->b_blocknr = block; if (uptodate) set_buffer_uptodate(bh); - if (block < end_block) + if (block <= end_block) set_buffer_mapped(bh); } block++; -- 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/