Akinobu Mita
34f2fd8dfe
bio: fix argument of __bio_add_page() for max_sectors > 0xffff
...
The data type of max_sectors and max_hw_sectors in queue settings are
unsigned int. But these values are passed to __bio_add_page() as an
argument whose data type is unsigned short. In the worst case such as
max_sectors is 0x10000, bio_add_page() can't add a page and IOs can't
proceed.
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-11-18 12:31:27 -07:00
..
2013-11-13 15:34:18 +09:00
2013-10-24 23:43:27 -04:00
2013-09-12 15:38:02 -07:00
2013-10-28 19:36:46 -04:00
2013-10-24 23:43:27 -04:00
2013-10-24 23:34:50 -04:00
2013-09-12 15:38:02 -07:00
2013-11-16 11:57:05 -08:00
2013-11-13 15:34:18 +09:00
2013-09-27 18:40:25 +01:00
2013-11-16 16:19:31 -08:00
2013-11-09 00:16:21 -05:00
2013-07-14 11:42:26 -07:00
2013-11-13 12:09:12 +09:00
2013-11-13 12:09:24 +09:00
2013-11-13 12:09:36 +09:00
2013-10-16 10:32:42 -05:00
2013-11-15 09:32:21 +09:00
2013-07-14 17:48:35 +04:00
2013-08-24 12:10:22 -04:00
2013-09-12 15:38:02 -07:00
2013-11-09 00:16:38 -05:00
2013-11-05 11:26:47 +01:00
2013-11-13 15:25:47 +09:00
2013-11-14 17:19:58 +09:00
2013-11-11 09:36:32 +09:00
2013-10-24 23:43:28 -04:00
2013-06-29 12:56:53 +04:00
2013-11-14 12:08:14 +09:00
2013-11-13 15:34:18 +09:00
2013-11-13 15:34:18 +09:00
2013-11-13 12:09:32 +09:00
2013-11-15 09:32:23 +09:00
2013-09-07 10:38:29 +02:00
2013-11-09 00:16:44 -05:00
2013-07-03 16:07:41 -07:00
2013-08-24 12:10:17 -04:00
2013-10-24 23:34:59 -04:00
2013-10-31 20:37:15 +01:00
2013-08-28 14:59:58 -04:00
2013-10-27 16:27:07 -07:00
2013-10-22 09:01:11 +01:00
2013-08-05 15:03:46 -04:00
2013-07-02 09:39:34 -07:00
2013-09-16 18:20:25 -07:00
2013-10-24 23:43:28 -04:00
2013-11-16 13:14:56 -08:00
2013-02-13 06:15:14 -08:00
2013-11-16 12:04:02 -08:00
2013-09-30 14:31:02 -07:00
2013-07-09 10:33:20 -07:00
2013-11-09 00:16:31 -05:00
2013-11-15 09:32:21 +09:00
2013-09-12 15:38:02 -07:00
2013-06-29 12:56:32 +04:00
2013-11-15 09:32:20 +09:00
2013-09-16 09:28:29 -07:00
2013-11-09 00:16:32 -05:00
2013-06-29 12:56:39 +04:00
2013-11-04 14:16:55 +01:00
2013-09-11 15:59:37 -07:00
2013-09-24 11:24:21 +02:00
2013-06-29 12:56:29 +04:00
2013-09-06 04:57:54 +01:00
2013-11-07 20:47:28 +09:00
2013-09-29 22:02:02 -04:00
2013-11-13 15:34:18 +09:00
2013-10-18 22:39:07 +02:00
2013-09-12 15:38:02 -07:00
2013-11-14 17:16:35 +09:00
2013-11-13 07:30:53 -05:00
2013-11-09 00:16:28 -05:00
2013-11-09 00:16:44 -05:00
2013-06-29 12:57:04 +04:00
2013-11-09 00:16:26 -05:00
2013-11-09 00:16:30 -05:00
2013-11-09 00:16:30 -05:00
2013-10-24 23:34:54 -04:00
2013-04-29 15:40:23 -04:00
2013-04-30 17:04:03 -07:00
2013-09-22 15:00:11 -07:00
2013-11-18 12:31:27 -07:00
2013-09-13 23:06:40 -04:00
2013-10-16 21:35:53 -07:00
2013-11-14 12:08:14 +09:00
2013-10-24 23:34:54 -04:00
2013-06-29 12:57:05 +04:00
2013-11-09 00:16:29 -05:00
2013-11-14 16:30:30 +09:00
2013-03-03 23:00:23 -05:00
2013-09-09 10:47:42 -07:00
2013-09-10 18:56:31 -04:00
2013-11-13 15:45:43 +09:00
2013-11-13 15:45:43 +09:00
2013-10-24 23:34:54 -04:00
2013-11-13 15:34:18 +09:00
2013-05-01 17:31:42 -04:00
2013-03-03 19:36:31 -08:00
2013-11-06 12:40:26 +01:00
2013-11-13 15:45:43 +09:00
2013-11-09 00:16:44 -05:00
2013-11-09 00:16:20 -05:00
2013-10-24 23:34:54 -04:00
2013-04-17 13:25:09 +01:00
2013-04-30 17:04:04 -07:00
2013-11-09 00:16:27 -05:00
2013-11-13 07:30:53 -05:00
2013-05-01 17:51:54 -07:00
2013-09-10 18:56:31 -04:00
2013-11-09 00:16:19 -05:00
2013-11-13 15:34:18 +09:00
2013-11-09 00:16:19 -05:00
2013-11-09 00:16:44 -05:00
2013-05-07 20:16:25 -07:00
2013-10-24 23:35:00 -04:00
2013-08-26 18:42:15 -07:00
2013-10-24 23:34:59 -04:00
2013-10-24 23:34:54 -04:00
2013-10-24 23:34:54 -04:00
2013-11-13 15:34:18 +09:00
2013-11-15 09:32:20 +09:00
2013-03-03 22:58:46 -05:00
2013-10-24 23:34:54 -04:00
2013-11-09 00:16:31 -05:00
2013-10-12 13:12:31 -07:00
2013-11-09 00:16:20 -05:00
2013-11-13 15:45:43 +09:00
2013-05-29 12:57:34 -07:00
2013-11-09 00:16:44 -05:00