<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/block, branch v3.7</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.7</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.7'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2012-11-23T13:32:55Z</updated>
<entry>
<title>mtip32xx: Fix padding issue</title>
<updated>2012-11-23T13:32:55Z</updated>
<author>
<name>Selvan Mani</name>
<email>smani@micron.com</email>
</author>
<published>2012-11-14T13:16:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=836413e8c78ecbc55aa31f3cb600f8ee1aa355a2'/>
<id>urn:sha1:836413e8c78ecbc55aa31f3cb600f8ee1aa355a2</id>
<content type='text'>
Hi Jens,

Another tiny patch.

Removed __packed before the struct smart_attr and added __packed at end of
the structure to fix padding issue.

Signed-off-by: Selvan Mani  &lt;smani@micron.com&gt;
Signed-off-by: Asai Thambi S P &lt;asamymuthupa@micron.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>aoe: avoid running request handler on plugged queue</title>
<updated>2012-11-23T13:32:55Z</updated>
<author>
<name>Ed Cashin</name>
<email>ecashin@coraid.com</email>
</author>
<published>2012-11-09T00:17:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=11cfb6ff736dc89b0447b8902d6912692303f6af'/>
<id>urn:sha1:11cfb6ff736dc89b0447b8902d6912692303f6af</id>
<content type='text'>
Calling the request handler directly on a plugged queue defeats
the performance improvements provided by the plugging mechanism.
Use the __blk_run_queue function instead of calling the request
handler directly, so that we don't interfere with the block
layer's ability to plug the queue.

Signed-off-by: Ed Cashin &lt;ecashin@coraid.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>mtip32xx: fix potential NULL pointer dereference in mtip_timeout_function()</title>
<updated>2012-11-23T13:32:55Z</updated>
<author>
<name>Wei Yongjun</name>
<email>yongjun_wei@trendmicro.com.cn</email>
</author>
<published>2012-11-08T09:35:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=298d80152c895859bd128552db7a5b228e8a23f7'/>
<id>urn:sha1:298d80152c895859bd128552db7a5b228e8a23f7</id>
<content type='text'>
The dereference to port should be moved below the NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun &lt;yongjun_wei@trendmicro.com.cn&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>mtip32xx: fix shift larger than type warning</title>
<updated>2012-11-23T13:32:55Z</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@kernel.dk</email>
</author>
<published>2012-11-08T06:58:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7c5d62388e88729775b10a1748f2810e413f1e51'/>
<id>urn:sha1:7c5d62388e88729775b10a1748f2810e413f1e51</id>
<content type='text'>
If we're building a 32-bit kernel and CONFIG_LBADF isn't set,
sector_t is 32-bits wide. The shifts by 32 and 40 are thus
larger than we support.

Cast the sector offset to a u64 to avoid these warnings.

Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>mtip32xx: Fix incorrect mask used for erase mode</title>
<updated>2012-11-23T13:32:55Z</updated>
<author>
<name>Selvan Mani</name>
<email>smani@micron.com</email>
</author>
<published>2012-11-07T13:03:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4b9e884523f63f7bfd6fcbcdfe6f9f9545d98c13'/>
<id>urn:sha1:4b9e884523f63f7bfd6fcbcdfe6f9f9545d98c13</id>
<content type='text'>
Previous commit use value 3 for erasemode mask.
Changing the mask to correct value to 2

Signed-off-by: Selvan Mani &lt;smani@micron.com&gt;
Signed-off-by: Asai Thambi S P &lt;asamymuthupa@micron.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>mtip32xx: Fix to make lba address correct in big-endian systems</title>
<updated>2012-11-23T13:32:55Z</updated>
<author>
<name>Selvan Mani</name>
<email>smani@micron.com</email>
</author>
<published>2012-11-07T13:03:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=eda45314922f500f3547d36d317efc05ed823e3e'/>
<id>urn:sha1:eda45314922f500f3547d36d317efc05ed823e3e</id>
<content type='text'>
Earlier lba address was assigned directly to lba_low and lba_low_ex,
which would result in a different number (bytes reversed) in
big-endian systems. Now assigning lba address byte-by-byte to fis.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Selvan Mani &lt;smani@micron.com&gt;
Signed-off-by: Asai Thambi S P &lt;asamymuthupa@micron.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>mtip32xx: fix potential crash on SEC_ERASE_UNIT</title>
<updated>2012-11-23T13:32:54Z</updated>
<author>
<name>Selvan Mani</name>
<email>smani@micron.com</email>
</author>
<published>2012-11-07T13:03:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3208795e612406df04a32b46eb5ea5fccfa51d69'/>
<id>urn:sha1:3208795e612406df04a32b46eb5ea5fccfa51d69</id>
<content type='text'>
The mtip driver lifted this code from elsewhere and then added a special
handling check for SEC_ERASE_UNIT. If the caller tries to do a security
erase but passes no output data for the command then outbuf is not
allocated and the driver duly explodes.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Alan Cox &lt;alan@linux.intel.com&gt;
Signed-off-by: Selvan Mani &lt;smani@micron.com&gt;
Signed-off-by: Asai Thambi S P &lt;asamymuthupa@micron.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>floppy: destroy floppy workqueue before cleaning up the queue</title>
<updated>2012-11-23T13:32:54Z</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.cz</email>
</author>
<published>2012-11-06T10:47:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=eac7cc52c6b410e542af431b2ee93f3d7dbfb6af'/>
<id>urn:sha1:eac7cc52c6b410e542af431b2ee93f3d7dbfb6af</id>
<content type='text'>
We need to first destroy the floppy_wq workqueue before cleaning up
the queue. Otherwise we might race with still pending work with the
workqueue, but all the block queue already gone. This might lead to
various oopses, such as

 CPU 0
 Pid: 6, comm: kworker/u:0 Not tainted 3.7.0-rc4 #1 Bochs Bochs
 RIP: 0010:[&lt;ffffffff8134eef5&gt;]  [&lt;ffffffff8134eef5&gt;] blk_peek_request+0xd5/0x1c0
 RSP: 0000:ffff88000dc7dd88  EFLAGS: 00010092
 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000
 RDX: ffff88000f602688 RSI: ffffffff81fd95d8 RDI: 6b6b6b6b6b6b6b6b
 RBP: ffff88000dc7dd98 R08: ffffffff81fd95c8 R09: 0000000000000000
 R10: ffffffff81fd9480 R11: 0000000000000001 R12: 6b6b6b6b6b6b6b6b
 R13: ffff88000dc7dfd8 R14: ffff88000dc7dfd8 R15: 0000000000000000
 FS:  0000000000000000(0000) GS:ffffffff81e21000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
 CR2: 0000000000000000 CR3: 0000000001e11000 CR4: 00000000000006f0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
 Process kworker/u:0 (pid: 6, threadinfo ffff88000dc7c000, task ffff88000dc5ecc0)
 Stack:
  0000000000000000 0000000000000000 ffff88000dc7ddb8 ffffffff8134efee
  ffff88000dc7ddb8 0000000000000000 ffff88000dc7dde8 ffffffff814aef3c
  ffffffff81e75d80 ffff88000dc0c640 ffff88000fbfb000 ffffffff814aed90
 Call Trace:
  [&lt;ffffffff8134efee&gt;] blk_fetch_request+0xe/0x30
  [&lt;ffffffff814aef3c&gt;] redo_fd_request+0x1ac/0x400
  [&lt;ffffffff814aed90&gt;] ? start_motor+0x130/0x130
  [&lt;ffffffff8106b526&gt;] process_one_work+0x136/0x450
  [&lt;ffffffff8106af65&gt;] ? manage_workers+0x205/0x2e0
  [&lt;ffffffff8106bb6d&gt;] worker_thread+0x14d/0x420
  [&lt;ffffffff8106ba20&gt;] ? rescuer_thread+0x1a0/0x1a0
  [&lt;ffffffff8107075a&gt;] kthread+0xba/0xc0
  [&lt;ffffffff810706a0&gt;] ? __kthread_parkme+0x80/0x80
  [&lt;ffffffff818b553a&gt;] ret_from_fork+0x7a/0xb0
  [&lt;ffffffff810706a0&gt;] ? __kthread_parkme+0x80/0x80
 Code: 0f 84 c0 00 00 00 83 f8 01 0f 85 e2 00 00 00 81 4b 40 00 00 80 00 48 89 df e8 58 f8 ff ff be fb ff ff ff
 fe ff ff &lt;49&gt; 8b 1c 24 49 39 dc 0f 85 2e ff ff ff 41 0f b6 84 24 28 04 00
 RIP  [&lt;ffffffff8134eef5&gt;] blk_peek_request+0xd5/0x1c0
  RSP &lt;ffff88000dc7dd88&gt;

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Tested-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>loop: Make explicit loop device destruction lazy</title>
<updated>2012-10-30T07:37:31Z</updated>
<author>
<name>Dave Chinner</name>
<email>dchinner@redhat.com</email>
</author>
<published>2012-09-28T08:42:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a1ecac3b0656a68259927c234e505804d33a7b83'/>
<id>urn:sha1:a1ecac3b0656a68259927c234e505804d33a7b83</id>
<content type='text'>
xfstests has always had random failures of tests due to loop devices
failing to be torn down and hence leaving filesytems that cannot be
unmounted. This causes test runs to immediately stop.

Over the past 6 or 7 years we've added hacks like explicit unmount
-d commands for loop mounts, losetup -d after unmount -d fails, etc,
but still the problems persist.  Recently, the frequency of loop
related failures increased again to the point that xfstests 259 will
reliably fail with a stray loop device that was not torn down.

That is despite the fact the test is above as simple as it gets -
loop 5 or 6 times running mkfs.xfs with different paramters:

        lofile=$(losetup -f)
        losetup $lofile "$testfile"
        "$MKFS_XFS_PROG" -b size=512 $lofile &gt;/dev/null || echo "mkfs failed!"
        sync
        losetup -d $lofile

And losteup -d $lofile is failing with EBUSY on 1-3 of these loops
every time the test is run.

Turns out that blkid is running simultaneously with losetup -d, and
so it sees an elevated reference count and returns EBUSY.  But why
is blkid running? It's obvious, isn't it? udev has decided to try
and find out what is on the block device as a result of a creation
notification. And it is racing with mkfs, so might still be scanning
the device when mkfs finishes and we try to tear it down.

So, make losetup -d force autoremove behaviour. That is, when the
last reference goes away, tear down the device. xfstests wants it
*gone*, not causing random teardown failures when we know that all
the operations the tests have specifically run on the device have
completed and are no longer referencing the loop device.

Signed-off-by: Dave Chinner &lt;dchinner@redhat.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>mtip32xx:Added appropriate timeout value for secure erase</title>
<updated>2012-10-30T07:37:27Z</updated>
<author>
<name>Selvan Mani</name>
<email>smani@micron.com</email>
</author>
<published>2012-09-27T12:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4453bc88f0f7be6d84b50b2e1c1ed239c45fb14a'/>
<id>urn:sha1:4453bc88f0f7be6d84b50b2e1c1ed239c45fb14a</id>
<content type='text'>
Added appropriate timeout value for secure erase based on identify device data

Signed-off-by: Asai Thambi S P &lt;asamymuthupa@micron.com&gt;
Signed-off-by: Selvan Mani &lt;smani@micron.com&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
</feed>
