mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge branch 'v3.1-rc10' into for-3.2/core
Conflicts: block/blk-core.c include/linux/blkdev.h Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
commit
5c04b426f2
1367 changed files with 24058 additions and 15020 deletions
|
|
@ -249,6 +249,7 @@ static int dasd_ioctl_reset_profile(struct dasd_block *block)
|
|||
static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
|
||||
{
|
||||
struct dasd_profile_info_t *data;
|
||||
int rc = 0;
|
||||
|
||||
data = kmalloc(sizeof(*data), GFP_KERNEL);
|
||||
if (!data)
|
||||
|
|
@ -279,11 +280,14 @@ static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
|
|||
spin_unlock_bh(&block->profile.lock);
|
||||
} else {
|
||||
spin_unlock_bh(&block->profile.lock);
|
||||
return -EIO;
|
||||
rc = -EIO;
|
||||
goto out;
|
||||
}
|
||||
if (copy_to_user(argp, data, sizeof(*data)))
|
||||
return -EFAULT;
|
||||
return 0;
|
||||
rc = -EFAULT;
|
||||
out:
|
||||
kfree(data);
|
||||
return rc;
|
||||
}
|
||||
#else
|
||||
static int dasd_ioctl_reset_profile(struct dasd_block *block)
|
||||
|
|
|
|||
|
|
@ -383,8 +383,10 @@ static int sclp_attach_storage(u8 id)
|
|||
switch (sccb->header.response_code) {
|
||||
case 0x0020:
|
||||
set_bit(id, sclp_storage_ids);
|
||||
for (i = 0; i < sccb->assigned; i++)
|
||||
sclp_unassign_storage(sccb->entries[i] >> 16);
|
||||
for (i = 0; i < sccb->assigned; i++) {
|
||||
if (sccb->entries[i])
|
||||
sclp_unassign_storage(sccb->entries[i] >> 16);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
rc = -EIO;
|
||||
|
|
|
|||
|
|
@ -654,8 +654,8 @@ static struct io_subchannel_private console_priv;
|
|||
static int console_subchannel_in_use;
|
||||
|
||||
/*
|
||||
* Use tpi to get a pending interrupt, call the interrupt handler and
|
||||
* return a pointer to the subchannel structure.
|
||||
* Use cio_tpi to get a pending interrupt and call the interrupt handler.
|
||||
* Return non-zero if an interrupt was processed, zero otherwise.
|
||||
*/
|
||||
static int cio_tpi(void)
|
||||
{
|
||||
|
|
@ -667,6 +667,10 @@ static int cio_tpi(void)
|
|||
tpi_info = (struct tpi_info *)&S390_lowcore.subchannel_id;
|
||||
if (tpi(NULL) != 1)
|
||||
return 0;
|
||||
if (tpi_info->adapter_IO) {
|
||||
do_adapter_IO(tpi_info->isc);
|
||||
return 1;
|
||||
}
|
||||
irb = (struct irb *)&S390_lowcore.irb;
|
||||
/* Store interrupt response block to lowcore. */
|
||||
if (tsch(tpi_info->schid, irb) != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue